Cookie Clicker

Cookie Clicker

Wrinkler Cookie Bank
getSuckedPerSec function can be simpler
just this gives the right number

getSuckedPerSec:function()
{
return Game.cpsSucked;
}
< >
Showing 1-4 of 4 comments
syfrl 6 Apr @ 12:38pm 
nvm, but your current method causes the number to jump up and down after a frenzy. i tried to fix that, but now it doesn't account for frenzies.. and never moves

delet this if you like
syfrl 6 Apr @ 1:53pm 
getSuckedPerSec: function() {
let cookiesPerSec = Game.cookiesPs;
let witheredPercent = parseFloat(Beautify(Math.round(Game.cpsSucked*100),1));
this.suckedPerSec = (cookiesPerSec / 100) * witheredPercent;
}
syfrl 6 Apr @ 3:08pm 
final iteration:
getSuckedPerSec: function() {
this.suckedPerSec = Game.cookiesPs * Game.cpsSucked;
}

imho better than the setTimeout method. do with it what you want.
thanks for the mod and i wouldn't have spent time on rewriting that function if i didn't really like it. i was just very bothered by the bug that causes the 'per second' value to change after a clot or frenzy. it's stable and displays the value you'd expect now.

<3
paulsy  [developer] 23 Sep @ 1:29pm 
Thank you for your suggestion, I have implemented the change :steamthumbsup:
< >
Showing 1-4 of 4 comments
Per page: 1530 50