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
+6
View File
@@ -33,6 +33,12 @@ export class NukeExecution implements Execution {
) {}
init(mg: Game, ticks: number): void {
if (!mg.hasPlayer(this.senderID)) {
console.warn(`NukeExecution: sender ${this.senderID} not found`);
this.active = false;
return;
}
this.mg = mg;
this.player = mg.player(this.senderID);
this.random = new PseudoRandom(ticks);