Added Game.runModHookOnValue in CalcGains #170

Added Game.runModHookOnValue in CalcGains #170
This commit is contained in:
DanielNoord
2020-11-30 08:49:06 +01:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -4027,11 +4027,12 @@ CM.Sim.CalculateGains = function() {
}
// Removed debug upgrades
// TODO: Check if this is handled correctly
CM.Sim.cookiesPs = Game.runModHookOnValue('cps', CM.Sim.cookiesPs);
mult *= CM.Sim.getCPSBuffMult();
// TODO: Handle ModHooks, see Game code
CM.Sim.cookiesPs *= mult;
// if (Game.hasBuff('Cursed finger')) Game.cookiesPs = 0;

View File

@@ -435,11 +435,12 @@ CM.Sim.CalculateGains = function() {
}
// Removed debug upgrades
// TODO: Check if this is handled correctly
CM.Sim.cookiesPs = Game.runModHookOnValue('cps', CM.Sim.cookiesPs);
mult *= CM.Sim.getCPSBuffMult();
// TODO: Handle ModHooks, see Game code
CM.Sim.cookiesPs *= mult;
// if (Game.hasBuff('Cursed finger')) Game.cookiesPs = 0;