Changed to Version 2.001.1 and fixed for Version 2.001 Beta (mostly) (Issue #77)

This commit is contained in:
Aktanusa
2016-04-28 00:22:56 -04:00
parent 881f5233e9
commit 05278149c5
5 changed files with 274 additions and 204 deletions

View File

@@ -22,6 +22,7 @@ CM.Sim.BuildingGetPrice = function(basePrice, start, free, increase) {
if (Game.Has('Faberge egg')) price *= 0.99;
if (Game.Has('Divine discount')) price *= 0.99;
if (Game.hasAura('Fierce Hoarder')) price *= 0.98;
if (Game.hasBuff('Everything must go')) price *= 0.95;
price = Math.ceil(price);
moni+=price;
start++;
@@ -55,6 +56,7 @@ CM.Sim.BuildingSell = function(basePrice, start, free, amount, emuAura) {
if (Game.Has('Faberge egg')) price *= 0.99;
if (Game.Has('Divine discount')) price *= 0.99;
if (Game.hasAura('Fierce Hoarder')) price *= 0.98;
if (Game.hasBuff('Everything must go')) price *= 0.95;
price = Math.ceil(price);
var giveBack = 0.5;
if (Game.hasAura('Earth Shatterer') || emuAura) giveBack=0.85;
@@ -97,6 +99,18 @@ eval('CM.Sim.GetTieredCpsMult = ' + Game.GetTieredCpsMult.toString().split('Game
eval('CM.Sim.getGrandmaSynergyUpgradeMultiplier = ' + Game.getGrandmaSynergyUpgradeMultiplier.toString().split('Game.Objects[\'Grandma\']').join('CM.Sim.Objects[\'Grandma\']'));
CM.Sim.getCPSBuffMult = function() {
var mult = 1;
var buffs = ['Frenzy', 'Elder frenzy', 'Clot', 'Dragon Harvest'];
for (var i in Game.goldenCookieBuildingBuffs) {
buffs.push(Game.goldenCookieBuildingBuffs[i][0], Game.goldenCookieBuildingBuffs[i][1]);
}
for (var i in buffs) {
if (Game.hasBuff(buffs[i]) && Game.buffs[buffs[i]].power) mult *= Game.buffs[buffs[i]].power;
}
return mult;
}
CM.Sim.InitData = function() {
// Buildings
CM.Sim.Objects = [];
@@ -234,8 +248,8 @@ CM.Sim.CalculateGains = function() {
if (rawCookiesPs >= Game.CpsAchievements[i].threshold) CM.Sim.Win(Game.CpsAchievements[i].name);
}
if (Game.frenzy > 0) mult *= Game.frenzyPower;
mult *= CM.Sim.getCPSBuffMult();
// Pointless?
name = Game.bakeryName.toLowerCase();
if (name == 'orteil') mult *= 0.99;
@@ -254,7 +268,9 @@ CM.Sim.CalculateGains = function() {
mult *= goldenSwitchMult;
}
CM.Sim.cookiesPs *= mult;
CM.Sim.cookiesPs *= mult;
if (Game.hasBuff('Cursed finger')) Game.cookiesPs = 0;
};
CM.Sim.CheckOtherAchiev = function() {