Feature Request: Make ship AI a separate equippable item for NPCs

Aperta
#727 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
game-dev

Direzione di ricerca

Inizia con i percorsi di esempio core/assets/items/ai/imperialAI/imperialAI.json e systemsConfig.json, poi traccia come vengono configurati l’equipaggiamento degli NPC e l’AI delle navi. Il lavoro è completo quando un oggetto AI può definire parametri comportamentali, può essere equipaggiato su un NPC tramite la configurazione del sistema e non è disponibile per essere raccolto o acquistato dal giocatore.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement Enhancement-architectural
Why?

Currently, the game's AI is fixed functionality that acts the same regardless of the ship. While in many cases this is fine, allowing it to be a separate equippable item (e.g. core\assets\items\ai\imperialAI\imperialAI.json) with parameters that define it's accuracy, firing frequency, preferred distance from player, etc. can open possibilities for adjustable difficulty levels, as well as unique ship behavior characteristics from different ships, especially within the context of factions having ships whose AI behaves distinctly from other factions.

How?

Make moduleName\assets\items\ai\nameAI\nameAI.json a valid example, whose config file may look something like this, but may include more parameters for more detailed behavior definition:

{ "fixedGunAccuracy": 0.5, "firingFrequency": 0.7, "preferredDistanceFromPlayer": 100 }

Where:

  • fixedGunAccuracy refers to a value between 0 and 1 that determines the percentage of it's aiming accuracy with fixed guns
  • firingFrequency refers to a value between 0 and 1 that determines the percentage of how willingly it will fire, 1 being always, whenever it is aimed at the player
  • preferredDistanceFromPlayer refers to how much of a unit measurement of distance in which it will try to achieve before firing at the player

Equipping on NPC
It should not be an item the player can pick up or buy, but can be equipped on an NPC within a config file such as systemsConfig.json. Example:
{ "hull": "core:imperialBig", "items": "core:fixedGun core:fixedShotGun core:mediumArmor+core:heavyArmor core:shield+core:bigShield core:imperialAI", "density": 3 }

Lingua principale
Java
Stelle
351
Fork
125
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MovingBlocks/DestinationSol

Tutte le issue di MovingBlocks/DestinationSol

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.