diff --git a/src/css/ingame_hud/shop.scss b/src/css/ingame_hud/shop.scss index d27c98de..0d073ce9 100644 --- a/src/css/ingame_hud/shop.scss +++ b/src/css/ingame_hud/shop.scss @@ -258,7 +258,6 @@ align-self: end; justify-self: center; color: $colorGreenBright; - text-transform: uppercase; @include S(margin-top, 20px); } } diff --git a/src/js/game/hud/parts/shop.js b/src/js/game/hud/parts/shop.js index 0445e604..bf2ae8e5 100644 --- a/src/js/game/hud/parts/shop.js +++ b/src/js/game/hud/parts/shop.js @@ -63,6 +63,7 @@ export class HUDShop extends BaseHUDPart { const { tiers } = UPGRADES[upgradeId]; const currentTier = this.root.hubGoals.getUpgradeLevel(upgradeId); + const currentTierMultiplier = this.root.hubGoals.upgradeImprovements[upgradeId]; const tierHandle = tiers[currentTier]; // Set tier @@ -87,15 +88,17 @@ export class HUDShop extends BaseHUDPart { if (!tierHandle) { // Max level - handle.elemDescription.innerText = T.ingame.shop.maximumLevel; + handle.elemDescription.innerText = T.ingame.shop.maximumLevel.replace( + "", + currentTierMultiplier.toString() + ); continue; } // Set description - handle.elemDescription.innerText = T.shopUpgrades[upgradeId].description.replace( - "", - Math.floor(tierHandle.improvement * 100.0) - ); + handle.elemDescription.innerText = T.shopUpgrades[upgradeId].description + .replace("", currentTierMultiplier.toString()) + .replace("", (currentTierMultiplier + tierHandle.improvement).toString()); tierHandle.required.forEach(({ shape, amount }) => { const container = makeDiv(handle.elemRequirements, null, ["requirement"]); diff --git a/translations/base-en.yaml b/translations/base-en.yaml index 60fd7ccb..0baa7f7d 100644 --- a/translations/base-en.yaml +++ b/translations/base-en.yaml @@ -288,7 +288,7 @@ ingame: # The roman number for each tier tierLabels: [I, II, III, IV, V, VI, VII, VIII, IX, X] - maximumLevel: Maximum level + maximumLevel: MAXIMUM LEVEL (Speed x) # The "Statistics" window statistics: @@ -352,16 +352,16 @@ ingame: shopUpgrades: belt: name: Belts, Distributor & Tunnels - description: Speed +% + description: Speed x → x miner: name: Extraction - description: Speed +% + description: Speed x → x processors: name: Cutting, Rotating & Stacking - description: Speed +% + description: Speed x → x painting: name: Mixing & Painting - description: Speed +% + description: Speed x → x # Buildings and their name / description buildings: