From 66ae8cd9bbda7edcae64151d5e7182df33835e53 Mon Sep 17 00:00:00 2001 From: Aotumuri Date: Mon, 15 Dec 2025 08:13:40 +0900 Subject: [PATCH] Remove troop ratio slider and description (#2617) ## Description: Removed unused translation strings and code. ## 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: aotumuri --- resources/lang/en.json | 1 - src/client/UserSettingModal.ts | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/resources/lang/en.json b/resources/lang/en.json index 5be58f591..2c8766f18 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -357,7 +357,6 @@ "left_click_menu": "Left Click Menu", "attack_ratio_label": "⚔️ Attack Ratio", "attack_ratio_desc": "What percentage of your troops to send in an attack (1–100%)", - "troop_ratio_desc": "Adjust the balance between troops (for combat) and workers (for gold production) (1–100%)", "territory_patterns_label": "🏳️ Territory Skins", "territory_patterns_desc": "Choose whether to display territory skin designs in game", "performance_overlay_label": "Performance Overlay", diff --git a/src/client/UserSettingModal.ts b/src/client/UserSettingModal.ts index cde017aeb..3fa54b34d 100644 --- a/src/client/UserSettingModal.ts +++ b/src/client/UserSettingModal.ts @@ -180,16 +180,6 @@ export class UserSettingModal extends LitElement { } } - private sliderTroopRatio(e: CustomEvent<{ value: number }>) { - const value = e.detail?.value; - if (typeof value === "number") { - const ratio = value / 100; - localStorage.setItem("settings.troopRatio", ratio.toString()); - } else { - console.warn("Slider event missing detail.value", e); - } - } - private toggleTerritoryPatterns(e: CustomEvent<{ checked: boolean }>) { const enabled = e.detail?.checked; if (typeof enabled !== "boolean") return;