Sometimes you feel like a wrath cookie and sometimes you don’t.
Here is a function that I created that will run on an interval, so all I have to do is set a boolean when I want to switch between Wrath + Gold cookies and just Gold cookies.
// allows me to turn on and off the clicking of the Wrath Cookies var wrathCookieSwitchOn = false; var SpecialCookieClicker = setInterval(function() { if (wrathCookieSwitchOn){ Game.shimmers.forEach(function(shimmer) { if (shimmer.type == "golden") { shimmer.pop() } }) } else { Game.shimmers.forEach(function(shimmer) { if(shimmer.type == "golden" && shimmer.wrath == 0) { shimmer.pop() } }) } }, 500);
All I have to do is change the variable value in the Developer Console in order to affect this code.
How could I do this a little better?