Change to Version 2.022.1 and fixed for Version 2.022 of Cookie Clicker (Issues #276)

This commit is contained in:
Aktanusa
2019-10-20 17:43:12 -04:00
parent a920e9e5fb
commit a13efd0c5b
3 changed files with 10 additions and 8 deletions

View File

@@ -299,6 +299,6 @@ CM.ConfigDefault = {
};
CM.ConfigPrefix = 'CMConfig';
CM.VersionMajor = '2.021';
CM.VersionMinor = '2';
CM.VersionMajor = '2.022';
CM.VersionMinor = '1';

View File

@@ -65,8 +65,9 @@ CM.Sim.BuildingSell = function(build, basePrice, start, free, amount, emuAura) {
}
CM.Sim.Has = function(what) {
if (Game.ascensionMode == 1 && Game.Upgrades[what].pool == 'prestige') return 0;
return (CM.Sim.Upgrades[what] ? CM.Sim.Upgrades[what].bought : 0);
var it = CM.Sim.Upgrades[what];
if (Game.ascensionMode == 1 && (it.pool == 'prestige' || it.tier == 'fortune')) return 0;
return (it ? it.bought : 0);
}