Fix some translations and backward compatibility

This commit is contained in:
tobspr 2020-06-11 11:06:28 +02:00
parent 3e3cfe2c67
commit aa6bd04881
3 changed files with 4 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@ -46,7 +46,7 @@
color: #fff;
text-align: center;
font-weight: bold;
@include S(width, 50px);
@include S(min-width, 50px);
@include S(padding, 0px, 5px);
&[data-tier="0"] {

View File

@ -98,7 +98,9 @@ export class HUDShop extends BaseHUDPart {
// Set description
handle.elemDescription.innerText = T.shopUpgrades[upgradeId].description
.replace("<currentMult>", currentTierMultiplier.toString())
.replace("<newMult>", (currentTierMultiplier + tierHandle.improvement).toString());
.replace("<newMult>", (currentTierMultiplier + tierHandle.improvement).toString())
// Backwards compatibility
.replace("<gain>", (tierHandle.improvement * 100.0).toString());
tierHandle.required.forEach(({ shape, amount }) => {
const container = makeDiv(handle.elemRequirements, null, ["requirement"]);