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

@@ -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;