Added Game.runModHookOnValue in CalcGains

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

View File

@@ -4028,9 +4028,10 @@ CM.Sim.CalculateGains = function() {
// Removed debug upgrades // Removed debug upgrades
mult *= CM.Sim.getCPSBuffMult(); // TODO: Check if this is handled correctly
CM.Sim.cookiesPs = Game.runModHookOnValue('cps', CM.Sim.cookiesPs);
// TODO: Handle ModHooks, see Game code mult *= CM.Sim.getCPSBuffMult();
CM.Sim.cookiesPs *= mult; CM.Sim.cookiesPs *= mult;

View File

@@ -436,9 +436,10 @@ CM.Sim.CalculateGains = function() {
// Removed debug upgrades // Removed debug upgrades
mult *= CM.Sim.getCPSBuffMult(); // TODO: Check if this is handled correctly
CM.Sim.cookiesPs = Game.runModHookOnValue('cps', CM.Sim.cookiesPs);
// TODO: Handle ModHooks, see Game code mult *= CM.Sim.getCPSBuffMult();
CM.Sim.cookiesPs *= mult; CM.Sim.cookiesPs *= mult;