From 5ca3fcc9198a5e7391afcaff88e73c236615b1be Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 21 Apr 2018 12:17:48 +0200 Subject: [PATCH] Load toggles from Game instead of having an own list Signed-off-by: Knut Ahlers --- autocookieclicker.user.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/autocookieclicker.user.js b/autocookieclicker.user.js index f68a52f..a8ee739 100644 --- a/autocookieclicker.user.js +++ b/autocookieclicker.user.js @@ -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 // @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); }