diff --git a/js/game.js b/js/game.js index e6c8235..c40ce73 100644 --- a/js/game.js +++ b/js/game.js @@ -62,6 +62,7 @@ item.research = function () { if (lab.research(this.cost, this.reputation)) { this.level++; + this.cost = Math.round(this.cost * this.cost_increase); } }; }); @@ -78,6 +79,7 @@ worker.hire = function() { if (lab.buy(this.cost)) { this.hired++; + this.cost = Math.round(this.cost * this.cost_increase); } }; }); diff --git a/json/research.json b/json/research.json index d20df00..5c6a8ae 100644 --- a/json/research.json +++ b/json/research.json @@ -4,6 +4,7 @@ "description": "The W-Boson is the carrier boson of the weak force.", "reputation": 1, "cost": 10, + "cost_increase": 1.2, "histogram": {} }, { @@ -11,6 +12,7 @@ "description": "The Higgs-Boson...", "reputation": 100, "cost": 1000, + "cost_increase": 1.2, "histogram": {} } ] diff --git a/json/workers.json b/json/workers.json index 82619b3..ea3ca9e 100644 --- a/json/workers.json +++ b/json/workers.json @@ -3,14 +3,14 @@ "name": "PhD Students", "description": "Basically slaves, just with fewer rights.", "cost": 100, - "sell": 80, + "cost_increase": 1.4, "rate": 1 }, { "name": "Postdocs", "description": "Can get shit done for you.", "cost": 1000, - "sell": 700, + "cost_increase": 1.4, "rate": 10 } ]