Cookie Clicker

Cookie Clicker

Wrinkler Cookie Bank
syfrl 4 月 6 日 下午 12:32
getSuckedPerSec function can be simpler
just this gives the right number

getSuckedPerSec:function()
{
return Game.cpsSucked;
}
< >
正在显示第 1 - 4 条,共 4 条留言
syfrl 4 月 6 日 下午 12:38 
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 4 月 6 日 下午 1:53 
getSuckedPerSec: function() {
let cookiesPerSec = Game.cookiesPs;
let witheredPercent = parseFloat(Beautify(Math.round(Game.cpsSucked*100),1));
this.suckedPerSec = (cookiesPerSec / 100) * witheredPercent;
}
syfrl 4 月 6 日 下午 3:08 
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  [开发者] 9 月 23 日 下午 1:29 
Thank you for your suggestion, I have implemented the change :steamthumbsup:
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50