feat: goap ai for faction and ship
This commit is contained in:
@@ -349,6 +349,16 @@ function describeControllerTask(taskKind: string): string {
|
||||
}
|
||||
}
|
||||
|
||||
export function describeShipObjective(objective: string): string {
|
||||
switch (objective) {
|
||||
case "set-mining-objective": return "mine resources";
|
||||
case "set-patrol-objective": return "patrol";
|
||||
case "set-construction-objective": return "build station";
|
||||
case "set-idle-objective": return "idle";
|
||||
default: return objective;
|
||||
}
|
||||
}
|
||||
|
||||
export function describeShipCurrentAction(ship: ShipSnapshot): { label: string; progress: number } | undefined {
|
||||
if (!ship.currentAction) {
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user