1
0
Fork 0
mirror of https://github.com/Luzifer/automate-cookie-clicker.git synced 2024-12-22 18:21:18 +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:
Knut Ahlers 2018-04-21 12:17:48 +02:00
parent c02e6a7ba9
commit 5ca3fcc919
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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);
}