Added Game.runModHookOnValue in CalcGains

This commit is contained in:
Daniel van Noord committed 2020-11-30 08:47:29 +01:00
1 parent 0a29e2f4a0
commit 0ac966a905
2 files changed
+6 -4

No files matched your search

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