mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-17 06:01:15 +00:00
asd
This commit is contained in:
@@ -323,6 +323,12 @@ export class DefaultConfig implements Config {
|
||||
}
|
||||
|
||||
isUnitDisabled(unitType: UnitType): boolean {
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
if (this._gameConfig.gameMode === GameMode.NukeWars) {
|
||||
return unitType === UnitType.MIRV;
|
||||
}
|
||||
>>>>>>> Stashed changes
|
||||
return this._gameConfig.disabledUnits?.includes(unitType) ?? false;
|
||||
}
|
||||
|
||||
@@ -616,6 +622,16 @@ export class DefaultConfig implements Config {
|
||||
numSpawnPhaseTurns(): number {
|
||||
return this._gameConfig.gameType === GameType.Singleplayer ? 100 : 300;
|
||||
}
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
|
||||
numPreparationPhaseTurns(): number {
|
||||
if (this._gameConfig.gameMode === GameMode.NukeWars) {
|
||||
return 180 * 10; // 180 seconds * 10 ticks/sec
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
>>>>>>> Stashed changes
|
||||
numBots(): number {
|
||||
return this.bots();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user