Fix Prestige stats not taking account of extra buildings from Spontaneous Edifice (Issue #175)

This commit is contained in:
Aktanusa
2018-04-25 19:24:07 -04:00
parent 5ef7486646
commit e4de9c124e
4 changed files with 38 additions and 34 deletions

View File

@@ -245,6 +245,7 @@ CM.Cache.UpdateAvgCPS = function() {
if (Game.cpsSucked > 0) {
choEggTotal += CM.Cache.WrinkGodBank;
}
CM.Cache.RealCookiesEarned = Math.max(Game.cookiesEarned, choEggTotal);
choEggTotal *= 0.05;
if (CM.Cache.lastDate != -1) {
@@ -357,6 +358,7 @@ CM.Cache.CentEgg = 0;
CM.Cache.SellForChoEgg = 0;
CM.Cache.Title = '';
CM.Cache.HadFierHoard = false;
CM.Cache.RealCookiesEarned = -1;
CM.Cache.lastDate = -1;
CM.Cache.lastCookies = -1;
CM.Cache.lastWrinkCookies = -1;