mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-04 11:06:09 +00:00
Disable nukes option (#237)
This makes it possible to disable all nukes as well as missile silos from the game in privat lobbies and singleplayer games
This commit is contained in:
@@ -55,6 +55,7 @@ export interface Config {
|
||||
percentageTilesOwnedToWin(): number;
|
||||
numBots(): number;
|
||||
spawnNPCs(): boolean;
|
||||
disableNukes(): boolean;
|
||||
bots(): number;
|
||||
infiniteGold(): boolean;
|
||||
infiniteTroops(): boolean;
|
||||
|
||||
@@ -148,6 +148,9 @@ export class DefaultConfig implements Config {
|
||||
spawnNPCs(): boolean {
|
||||
return !this._gameConfig.disableNPCs;
|
||||
}
|
||||
disableNukes(): boolean {
|
||||
return this._gameConfig.disableNukes;
|
||||
}
|
||||
bots(): number {
|
||||
return this._gameConfig.bots;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user