From 636a6a381da35addeb657184c5cd628a57ec206f Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 20 Apr 2018 06:56:02 +0200 Subject: [PATCH] Lets manage dragons 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 6165a24..9903bad 100644 --- a/autocookieclicker.user.js +++ b/autocookieclicker.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Automate CookieClicker // @namespace https://luzifer.io/ -// @version 0.13.2 +// @version 0.14.0 // @description Automate everything! // @author Knut Ahlers // @source https://github.com/Luzifer/automate-cookie-clicker @@ -52,6 +52,11 @@ function executeAutoActions() { product.click(); note('Purchased ' + product.find('.title:first').text() + ' for you.'); } + + // Upgrade dragon if possible + if (Game.dragonLevels[Game.dragonLevel + 1].cost()) { + Game.UpgradeDragon() + } } function controlAutoClicker() {