From 476fa373798ea5ffe129a9f85ccda90443bcb11d Mon Sep 17 00:00:00 2001 From: FloPinguin <25036848+FloPinguin@users.noreply.github.com> Date: Tue, 27 Jan 2026 23:10:14 +0100 Subject: [PATCH] =?UTF-8?q?For=20v29.6:=20More=20team=20games=20?= =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=A4=9D=E2=80=8D=F0=9F=A7=91=20(#3051?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: Use ffa:teams ratio of 3:2 ## 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/server/MapPlaylist.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/server/MapPlaylist.ts b/src/server/MapPlaylist.ts index b54aa54ff..1a74ecfd3 100644 --- a/src/server/MapPlaylist.ts +++ b/src/server/MapPlaylist.ts @@ -332,6 +332,8 @@ export class MapPlaylist { const ffa1: GameMapType[] = rand.shuffleArray([...maps]); const team1: GameMapType[] = rand.shuffleArray([...maps]); const ffa2: GameMapType[] = rand.shuffleArray([...maps]); + const team2: GameMapType[] = rand.shuffleArray([...maps]); + const ffa3: GameMapType[] = rand.shuffleArray([...maps]); this.mapsPlaylist = []; for (let i = 0; i < maps.length; i++) { @@ -346,6 +348,14 @@ export class MapPlaylist { if (!this.addNextMap(this.mapsPlaylist, ffa2, GameMode.FFA)) { return false; } + if (!this.disableTeams) { + if (!this.addNextMap(this.mapsPlaylist, team2, GameMode.Team)) { + return false; + } + } + if (!this.addNextMap(this.mapsPlaylist, ffa3, GameMode.FFA)) { + return false; + } } return true; }