Added Game.runModHookOnValue in CalcGains #170

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

No files matched your search

+3 -2
View File
@@ -4028,9 +4028,10 @@ CM.Sim.CalculateGains = function() {
// 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;
+3 -2
View File
@@ -436,9 +436,10 @@ CM.Sim.CalculateGains = function() {
// 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;