mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fix some translations and backward compatibility
This commit is contained in:
parent
3e3cfe2c67
commit
aa6bd04881
BIN
artwork/itch.io/screenshots/10.png
Normal file
BIN
artwork/itch.io/screenshots/10.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 MiB |
@ -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"] {
|
||||
|
@ -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"]);
|
||||
|
Loading…
Reference in New Issue
Block a user