Added checkboxes to disable Bots and NPCs for single player and private lobbies

This commit is contained in:
NewHappyRabbit
2025-02-11 03:29:56 +02:00
parent a0b88f543c
commit 684b0bb2e0
12 changed files with 92 additions and 5 deletions
+5 -3
View File
@@ -58,9 +58,11 @@ export class GameRunner {
) {}
init() {
this.game.addExecution(
...this.execManager.spawnBots(this.game.config().numBots())
);
if (this.game.config().spawnBots()) {
this.game.addExecution(
...this.execManager.spawnBots(this.game.config().numBots())
);
}
if (this.game.config().spawnNPCs()) {
this.game.addExecution(...this.execManager.fakeHumanExecutions());
}