Added Chocolate egg stat (Issue #22)
This commit is contained in:
10
src/Sim.js
10
src/Sim.js
@@ -16,6 +16,16 @@ CM.Sim.BuildingGetPrice = function (basePrice, start, increase) {
|
||||
return totalPrice;
|
||||
}
|
||||
|
||||
CM.Sim.BuildingSell = function(basePrice, start, amount) {
|
||||
var totalMoni = 0;
|
||||
while (amount > 0) {
|
||||
totalMoni += Math.floor(CM.Sim.BuildingGetPrice(basePrice, start, 1) * 0.5);
|
||||
start--;
|
||||
amount--;
|
||||
}
|
||||
return totalMoni;
|
||||
}
|
||||
|
||||
eval('CM.Sim.Has = ' + Game.Has.toString().split('Game').join('CM.Sim'));
|
||||
|
||||
CM.Sim.Win = function(what) {
|
||||
|
||||
Reference in New Issue
Block a user