validate all intent input

This commit is contained in:
Evan
2025-02-18 16:26:49 -08:00
parent 876fb8dbf9
commit 5e6f8f5d91
16 changed files with 113 additions and 0 deletions
+5
View File
@@ -43,6 +43,11 @@ export class WarshipExecution implements Execution {
) {}
init(mg: Game, ticks: number): void {
if (!mg.hasPlayer(this.playerID)) {
console.log(`WarshipExecution: player ${this.playerID} not found`);
this.active = false;
return;
}
this.pathfinder = PathFinder.Mini(mg, 5000, false);
this._owner = mg.player(this.playerID);
this.mg = mg;