diff game/js/game.js @ 15:c1c7e4f54bf6

balance work prep
author ark
date 2026-10-19 23:36 +0200
parents 7fda634d15ad
children
line wrap: on
line diff
--- a/game/js/game.js	Mon Oct 19 22:50:52 2026 +0200
+++ b/game/js/game.js	Mon Oct 19 23:36:08 2026 +0200
@@ -199,7 +199,7 @@
     // preview or the tower cannot be afforded.
     Game.prototype.build = function () {
         if (!this.shop || !this.preview) return false;
-        var cost = cfg.tower[this.shop].cost;
+        var cost = cfg.tower[this.shop].cost[0];
         if (!this.canAfford(cost)) return false;
         this.pay(cost);
         var pv = this.preview;