Fixed Century Egg Stat was wrong (Issue #102 and #103) and Version change

This commit is contained in:
Aktanusa
2016-07-27 23:08:28 -04:00
parent 991c80d040
commit b4c0c8de2b
4 changed files with 6 additions and 6 deletions

View File

@@ -231,7 +231,7 @@ CM.Sim.CalculateGains = function() {
if (CM.Sim.Has('Century egg')) {
// The boost increases a little every day, with diminishing returns up to +10% on the 100th day
var day = Math.floor((CM.Sim.Date - Game.startDate) / 1000 / 10) * 10 / 60 / 60 / 24;
day = Math.min(day,100);
day = Math.min(day, 100);
CM.Cache.CentEgg = 1 + (1 - Math.pow(1 - day / 100, 3)) * 0.1;
eggMult *= CM.Cache.CentEgg;
}