From ad588fa531328a561c2ab963429ae71cc0f793dc Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 20 Apr 2018 09:36:16 +0200 Subject: [PATCH] Add wrinkler management Signed-off-by: Knut Ahlers --- autocookieclicker.user.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autocookieclicker.user.js b/autocookieclicker.user.js index 5ae287c..dabf0c6 100644 --- a/autocookieclicker.user.js +++ b/autocookieclicker.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Automate CookieClicker // @namespace https://luzifer.io/ -// @version 0.17.4 +// @version 0.18.0 // @description Automate everything! // @author Knut Ahlers // @source https://github.com/Luzifer/automate-cookie-clicker @@ -36,6 +36,11 @@ function executeAutoActions() { // Click all golden cookies $('.shimmer').click(); + // Get rid of wrinklers + while (Game.wrinklers.filter(obj => obj.hp > 0 && obj.phase > 0).length > 0) { + Game.PopRandomWrinkler(); + } + // Harvest sugar lumps if ((new Date() - Game.lumpT) > Game.lumpRipeAge) { Game.harvestLumps(1);