From 8634efff006fa01eb41491b07e36ee2e3d1e284d Mon Sep 17 00:00:00 2001 From: FloPinguin <25036848+FloPinguin@users.noreply.github.com> Date: Sat, 25 Apr 2026 19:51:55 +0200 Subject: [PATCH] =?UTF-8?q?Map=20playlist=20tweaks=20=F0=9F=97=BA=EF=B8=8F?= =?UTF-8?q?=20(#3765)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description: Add Luna and ArchipelagoSea to the water-nukes-boosted maps set. Bias Luna games towards 2 teams (75% chance), similar to how FourIslands is biased towards 4 teams. Restrict the FourIslands gold multiplier exclusion to team games only, since the stalemate risk is team-mode-specific. Also removes the startingGold25M exclusion that was bundled with it. Reasoning: Did some data analysis to find the root cause. 1M starting gold games accidentally had 45 seconds of PVP immunity, but thats not needed. ## 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 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/server/MapPlaylist.ts b/src/server/MapPlaylist.ts index ac025a791..b76e21871 100644 --- a/src/server/MapPlaylist.ts +++ b/src/server/MapPlaylist.ts @@ -149,6 +149,8 @@ const WATER_NUKES_BOOSTED_MAPS: ReadonlySet = new Set([ GameMapType.Baikal, GameMapType.Alps, GameMapType.TheBox, + GameMapType.Luna, + GameMapType.ArchipelagoSea, ]); // Modifiers that cannot be active at the same time. @@ -243,10 +245,9 @@ export class MapPlaylist { excludedModifiers.push("isRandomSpawn"); } - // No extreme modifiers on FourIslands - Causes 3h long stalemates - if (map === GameMapType.FourIslands) { + // No gold multi on FourIslands team games - Too high chance of 3h long stalemates + if (map === GameMapType.FourIslands && mode === GameMode.Team) { excludedModifiers.push("goldMultiplier"); - excludedModifiers.push("startingGold25M"); } // Hard nations modifier only applies when nations are present (not HvN, which is always hard) @@ -529,6 +530,9 @@ export class MapPlaylist { if (map === GameMapType.FourIslands && Math.random() < 0.75) { return 4; } + if (map === GameMapType.Luna && Math.random() < 0.75) { + return 2; + } const totalWeight = TEAM_WEIGHTS.reduce((sum, w) => sum + w.weight, 0); const roll = Math.random() * totalWeight; @@ -663,7 +667,8 @@ export class MapPlaylist { if (playerTeams === HumansVsNations) return 5 * 10; if (startingGold !== undefined && startingGold >= 25_000_000) return 150 * 10; - if (startingGold) return SAM_CONSTRUCTION_TICKS + 15 * 10; + if (startingGold !== undefined && startingGold >= 5_000_000) + return SAM_CONSTRUCTION_TICKS + 15 * 10; return 5 * 10; }