wobblyhead hg > minor_monsters
diff game/js/ui.js @ 15:c1c7e4f54bf6
balance work prep
| author | ark |
|---|---|
| date | 2026-10-19 23:36 +0200 |
| parents | 8df95050fc8b |
| children |
line wrap: on
line diff
--- a/game/js/ui.js Mon Oct 19 22:50:52 2026 +0200 +++ b/game/js/ui.js Mon Oct 19 23:36:08 2026 +0200 @@ -273,9 +273,9 @@ var bubble = game.shop !== b.tower ? "shop_bubble" : Math.floor(view.now / BUBBLE_FLIP) % 2 ? "shop_bubble_dark2" : "shop_bubble_dark"; ctx.drawImage(A.img(bubble), b.x, b.y, b.w, b.h); - ctx.globalAlpha = game.canAfford(def.cost) && !game.paused ? 1 : 0.35; + ctx.globalAlpha = game.canAfford(def.cost[0]) && !game.paused ? 1 : 0.35; fit(ctx, b.tower, cx, b.y + 28, 44, 38); - price(ctx, def.cost, cx, b.y + b.h - 15); + price(ctx, def.cost[0], cx, b.y + b.h - 15); ctx.globalAlpha = 1; } else if (b.id === "upgrade") { var cost = MM.tower.upgradeCost(game.selected);
