mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 14:12:34 +00:00
Added checkboxes to disable Bots and NPCs for single player and private lobbies
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user