mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:30:45 +00:00
Reduce spawn phase duration when random spawn is enabled ⏱️ (#3437)
## Description: Reduces `numSpawnPhaseTurns` from 300 to 100 (matching singleplayer duration) when random spawn is active. Since players can't choose their spawn location in random spawn mode, there's no need for the full 300-tick spawn phase. ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: FloPinguin
This commit is contained in:
@@ -545,7 +545,13 @@ export class DefaultConfig implements Config {
|
||||
return 3;
|
||||
}
|
||||
numSpawnPhaseTurns(): number {
|
||||
return this._gameConfig.gameType === GameType.Singleplayer ? 100 : 300;
|
||||
if (this._gameConfig.gameType === GameType.Singleplayer) {
|
||||
return 100;
|
||||
}
|
||||
if (this.isRandomSpawn()) {
|
||||
return 150;
|
||||
}
|
||||
return 300;
|
||||
}
|
||||
numBots(): number {
|
||||
return this.bots();
|
||||
|
||||
Reference in New Issue
Block a user