From f7e50826de99d9f3bb06a058b70c07456da154d3 Mon Sep 17 00:00:00 2001 From: FloPinguin <25036848+FloPinguin@users.noreply.github.com> Date: Mon, 16 Mar 2026 23:58:26 +0100 Subject: [PATCH] =?UTF-8?q?Reduce=20spawn=20phase=20duration=20when=20rand?= =?UTF-8?q?om=20spawn=20is=20enabled=20=E2=8F=B1=EF=B8=8F=20(#3437)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 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 --- src/core/configuration/DefaultConfig.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 871837f15..c77e886ac 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -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();