diff --git a/CookieMonster.js b/CookieMonster.js index f9f7a32..6e51177 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -4602,6 +4602,9 @@ CM.Sim.auraMult = function(what) { } CM.Sim.hasGod=function(what) { + if (!CM.Sim.Objects.Temple.minigameLoaded) { + return false + } var possibleGods = CM.Sim.Objects.Temple.minigame.gods var god=possibleGods[what]; for (var i=0;i<3;i++) @@ -5372,15 +5375,16 @@ CM.Sim.mouseCps = function() { } mult *= CM.Sim.eff('click'); - - if (CM.Sim.hasGod) - { - var godLvl = CM.Sim.hasGod('labor'); - if (godLvl == 1) mult *= 1.15; - else if (godLvl == 2) mult *= 1.1; - else if (godLvl == 3) mult *= 1.05; + if (CM.Sim.Objects.Temple.minigameLoaded) { + if (CM.Sim.hasGod) + { + var godLvl = CM.Sim.hasGod('labor'); + if (godLvl == 1) mult *= 1.15; + else if (godLvl == 2) mult *= 1.1; + else if (godLvl == 3) mult *= 1.05; + } } - + for (var i in Game.buffs) { if (typeof Game.buffs[i].multClick != 'undefined') mult*=Game.buffs[i].multClick; diff --git a/src/Sim.js b/src/Sim.js index 64b2004..5df2a6a 100644 --- a/src/Sim.js +++ b/src/Sim.js @@ -103,6 +103,9 @@ CM.Sim.auraMult = function(what) { } CM.Sim.hasGod=function(what) { + if (!CM.Sim.Objects.Temple.minigameLoaded) { + return false + } var possibleGods = CM.Sim.Objects.Temple.minigame.gods var god=possibleGods[what]; for (var i=0;i<3;i++) @@ -873,15 +876,16 @@ CM.Sim.mouseCps = function() { } mult *= CM.Sim.eff('click'); - - if (CM.Sim.hasGod) - { - var godLvl = CM.Sim.hasGod('labor'); - if (godLvl == 1) mult *= 1.15; - else if (godLvl == 2) mult *= 1.1; - else if (godLvl == 3) mult *= 1.05; + if (CM.Sim.Objects.Temple.minigameLoaded) { + if (CM.Sim.hasGod) + { + var godLvl = CM.Sim.hasGod('labor'); + if (godLvl == 1) mult *= 1.15; + else if (godLvl == 2) mult *= 1.1; + else if (godLvl == 3) mult *= 1.05; + } } - + for (var i in Game.buffs) { if (typeof Game.buffs[i].multClick != 'undefined') mult*=Game.buffs[i].multClick;