mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2026-01-14 13:21:12 -08:00
Fix some translations and backward compatibility
This commit is contained in:
parent
3e3cfe2c67
commit
aa6bd04881
3 changed files with 4 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue