From d070c5810cefa4cc66b4a701d95e3b4673201b70 Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Thu, 9 Oct 2025 22:56:51 +0300 Subject: [PATCH] Increase the frequency of teams games (#1809) ## Description: Updates the frequency of teams games to fix #1808. ## 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: loymdayddaud Co-authored-by: TheGiraffe3 --- src/server/MapPlaylist.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/server/MapPlaylist.ts b/src/server/MapPlaylist.ts index f264ad908..3ce5dfd65 100644 --- a/src/server/MapPlaylist.ts +++ b/src/server/MapPlaylist.ts @@ -126,16 +126,12 @@ export class MapPlaylist { const rand = new PseudoRandom(Date.now()); - const ffa1: GameMapType[] = rand.shuffleArray([...maps]); - const ffa2: GameMapType[] = rand.shuffleArray([...maps]); + const ffa: GameMapType[] = rand.shuffleArray([...maps]); const team: GameMapType[] = rand.shuffleArray([...maps]); this.mapsPlaylist = []; for (let i = 0; i < maps.length; i++) { - if (!this.addNextMap(this.mapsPlaylist, ffa1, GameMode.FFA)) { - return false; - } - if (!this.addNextMap(this.mapsPlaylist, ffa2, GameMode.FFA)) { + if (!this.addNextMap(this.mapsPlaylist, ffa, GameMode.FFA)) { return false; } if (!this.addNextMap(this.mapsPlaylist, team, GameMode.Team)) {