Changed calculation from Base Cost per Income to Return on Investment (Issue #3 (partly), #28, #52) with the formula from @svschouw and minor README edit

This commit is contained in:
Aktanusa
2016-03-06 22:21:35 -05:00
parent 306c7c24a4
commit a09602fecd
7 changed files with 148 additions and 165 deletions

View File

@@ -357,6 +357,9 @@ CM.Sim.BuyBuildings = function(amount, target) {
CM.Cache[target][i] = {};
CM.Cache[target][i].bonus = CM.Sim.cookiesPs - Game.cookiesPs;
if (amount != 1) {
CM.Cache[target][i].price = CM.Sim.BuildingGetPrice(Game.Objects[i].basePrice, Game.Objects[i].amount, Game.Objects[i].free, amount);
}
}
}