mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-11-09 22:40:08 +00:00
Use hooks instead of own intervals
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1b50491d0d
commit
493396325b
1 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Automate CookieClicker
|
// @name Automate CookieClicker
|
||||||
// @namespace https://luzifer.io/
|
// @namespace https://luzifer.io/
|
||||||
// @version 0.15.1
|
// @version 0.16.0
|
||||||
// @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
|
||||||
|
@ -97,10 +97,8 @@ function installHelper() {
|
||||||
let version = GM_info.script.version;
|
let version = GM_info.script.version;
|
||||||
note('Version ' + version + ' loaded.');
|
note('Version ' + version + ' loaded.');
|
||||||
|
|
||||||
window.controlAutoClicker = window.setInterval(controlAutoClicker, 1000);
|
Game.customChecks.push(controlAutoClicker);
|
||||||
|
Game.customLogic.push(executeAutoActions);
|
||||||
// Enable automatic purchasing of upgrades / elements
|
|
||||||
window.autoPurchase = window.setInterval(executeAutoActions, 500);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function manageDragon() {
|
function manageDragon() {
|
||||||
|
|
Loading…
Reference in a new issue