Change to Version 2.022.1 and fixed for Version 2.022 of Cookie Clicker (Issues #276)
This commit is contained in:
@@ -3018,8 +3018,8 @@ CM.ConfigDefault = {
|
||||
};
|
||||
CM.ConfigPrefix = 'CMConfig';
|
||||
|
||||
CM.VersionMajor = '2.021';
|
||||
CM.VersionMinor = '2';
|
||||
CM.VersionMajor = '2.022';
|
||||
CM.VersionMinor = '1';
|
||||
|
||||
/*******
|
||||
* Sim *
|
||||
@@ -3088,8 +3088,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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -299,6 +299,6 @@ CM.ConfigDefault = {
|
||||
};
|
||||
CM.ConfigPrefix = 'CMConfig';
|
||||
|
||||
CM.VersionMajor = '2.021';
|
||||
CM.VersionMinor = '2';
|
||||
CM.VersionMajor = '2.022';
|
||||
CM.VersionMinor = '1';
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user