From 963bc7c1863bf852a1069462e41d9c2a99fa63d9 Mon Sep 17 00:00:00 2001 From: El-Magico777 Date: Tue, 2 Dec 2025 00:09:29 +0100 Subject: [PATCH] feat: add Tech Unlocked mode to public lobby rotation - Add 50/50 rotation between normal and Tech Unlocked games in MapPlaylist - Tech Unlocked games have all technologies researched from start (researchAllTechs: true) - Display ' Tech Unlocked' badge in PublicLobby UI when game has all techs unlocked - Badge uses yellow highlight with tooltip explaining the mode - Add translation strings for tech_unlocked and tech_unlocked_tooltip Files changed: - src/server/MapPlaylist.ts: Add fastModeCounter for 50/50 rotation - src/client/PublicLobby.ts: Add Tech Unlocked badge display - resources/lang/en.json: Add translation strings --- resources/lang/en.json | 4 +++- src/client/PublicLobby.ts | 14 ++++++++++++++ src/core/configuration/DevConfig.ts | 2 +- src/server/MapPlaylist.ts | 6 ++++++ 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/resources/lang/en.json b/resources/lang/en.json index ebc955326..2dd7f8b4c 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -208,7 +208,9 @@ "teams_Duos": "Duos (teams of 2)", "teams_Trios": "Trios (teams of 3)", "teams_Quads": "Quads (teams of 4)", - "teams": "{num} teams" + "teams": "{num} teams", + "tech_unlocked": "Tech Unlocked", + "tech_unlocked_tooltip": "All technologies unlocked from the start!" }, "username": { "enter_username": "Enter your username", diff --git a/src/client/PublicLobby.ts b/src/client/PublicLobby.ts index e4dd2bb37..6b064b1d9 100644 --- a/src/client/PublicLobby.ts +++ b/src/client/PublicLobby.ts @@ -127,6 +127,20 @@ export class PublicLobby extends LitElement { ${translateText("public_lobby.join")}
+ ${ + lobby.gameConfig.researchAllTechs + ? html` + 🔓 ${translateText("public_lobby.tech_unlocked")} + ` + : "" + }