mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-11-08 14:00:12 +00:00
Load toggles from Game instead of having an own list
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
c02e6a7ba9
commit
5ca3fcc919
1 changed files with 4 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name Automate CookieClicker
|
||||
// @namespace https://luzifer.io/
|
||||
// @version 0.18.1
|
||||
// @version 0.18.2
|
||||
// @description Automate everything!
|
||||
// @author Knut Ahlers <knut@ahlers.me>
|
||||
// @source https://github.com/Luzifer/automate-cookie-clicker
|
||||
|
@ -16,11 +16,6 @@
|
|||
|
||||
let blockingUpgrades = [
|
||||
69, // Destructive upgrade: "One mind"
|
||||
85, // Revoke elders covenant
|
||||
182, 183, 184, 185, 209, // Season switchers
|
||||
331, // Golden switch
|
||||
333, // Milk selector
|
||||
414, // Background selector
|
||||
];
|
||||
let purchaseSteps = 50;
|
||||
|
||||
|
@ -106,6 +101,9 @@ function installHelper() {
|
|||
let version = GM_info.script.version;
|
||||
note('Version ' + version + ' loaded.');
|
||||
|
||||
// Do not click toggle upgrades
|
||||
blockingUpgrades = blockingUpgrades.concat(Game.UpgradesByPool['toggle'].map(obj => obj.id));
|
||||
|
||||
Game.customChecks.push(controlAutoClicker);
|
||||
Game.customLogic.push(executeAutoActions);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue