mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-12-23 02:31:18 +00:00
Trigger way slower than game ticks
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
493396325b
commit
339c2b0618
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Automate CookieClicker
|
// @name Automate CookieClicker
|
||||||
// @namespace https://luzifer.io/
|
// @namespace https://luzifer.io/
|
||||||
// @version 0.16.0
|
// @version 0.16.1
|
||||||
// @description Automate everything!
|
// @description Automate everything!
|
||||||
// @author Knut Ahlers <knut@ahlers.me>
|
// @author Knut Ahlers <knut@ahlers.me>
|
||||||
// @source https://github.com/Luzifer/automate-cookie-clicker
|
// @source https://github.com/Luzifer/automate-cookie-clicker
|
||||||
|
@ -31,6 +31,11 @@ function autoClick() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function executeAutoActions() {
|
function executeAutoActions() {
|
||||||
|
if (Game.T % (Game.fps * 0.5) != 0) {
|
||||||
|
// Game logic ticks very fast, only trigger every 0.5s
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Click all golden cookies
|
// Click all golden cookies
|
||||||
$('.shimmer').click();
|
$('.shimmer').click();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue