mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Merge branch 'master' of https://github.com/tobspr/shapez.io
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
}
|
||||
|
||||
.description {
|
||||
grid-column: 3 / 4;
|
||||
grid-column: 2 / 4;
|
||||
grid-row: 1 / 2;
|
||||
@include PlainText;
|
||||
color: #aaa;
|
||||
@@ -289,13 +289,7 @@
|
||||
display: none;
|
||||
}
|
||||
.description {
|
||||
// grid-column: 2 / 4;
|
||||
// grid-row: 2 / 3;
|
||||
align-self: end;
|
||||
justify-self: center;
|
||||
color: $colorGreenBright;
|
||||
text-transform: uppercase;
|
||||
@include S(margin-top, 20px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
"<currentMult>",
|
||||
currentTierMultiplier.toString()
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Set description
|
||||
handle.elemDescription.innerText = T.shopUpgrades[upgradeId].description.replace(
|
||||
"<gain>",
|
||||
Math.floor(tierHandle.improvement * 100.0)
|
||||
);
|
||||
handle.elemDescription.innerText = T.shopUpgrades[upgradeId].description
|
||||
.replace("<currentMult>", currentTierMultiplier.toString())
|
||||
.replace("<newMult>", (currentTierMultiplier + tierHandle.improvement).toString());
|
||||
|
||||
tierHandle.required.forEach(({ shape, amount }) => {
|
||||
const container = makeDiv(handle.elemRequirements, null, ["requirement"]);
|
||||
|
||||
Reference in New Issue
Block a user