From 8ca6a209420c20d2b85e13009e2c3806121958c0 Mon Sep 17 00:00:00 2001 From: gen BTC Date: Mon, 24 Oct 2016 15:56:01 -0400 Subject: [PATCH] v2.1.2.6 BetterAutoFight Fix BetterAutoFight will now send Trimps to fight if it takes less than 0.1 seconds to breed a new group of soldiers, even if the population limit hasn't been reached yet (exactly like new autofight from 3.811) = helps with dailys. --- AutoTrimps2.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/AutoTrimps2.js b/AutoTrimps2.js index fbb88f438..4a2f2bd0b 100644 --- a/AutoTrimps2.js +++ b/AutoTrimps2.js @@ -1,7 +1,7 @@ // ==UserScript== // @name AutoTrimpsV2+genBTC // @namespace http://tampermonkey.net/ -// @version 2.1.2.5-genbtc-9-9-2016+NewUI2 +// @version 2.1.2.6-genbtc-10-24-2016 // @description try to take over the world! // @author zininzinin, spindrjr, belaith, ishakaru, genBTC // @include *trimps.github.io* @@ -12,7 +12,7 @@ //////////////////////////////////////// //Variables///////////////////////////// //////////////////////////////////////// -var ATversion = '2.1.2.5-genbtc-9-9-2016+NewUI2'; +var ATversion = '2.1.2.6-genbtc-10-24-2016'; var AutoTrimpsDebugTabVisible = true; var enableDebug = true; //Spam console var autoTrimpSettings = {}; @@ -2683,8 +2683,13 @@ function betterAutoFight() { fightManual(); } //Click Fight if we are dead and already have enough for our breed timer, and fighting would not add a significant amount of time - if (!game.global.fighting && getBreedTime() < 2 && (game.global.lastBreedTime/1000) > autoTrimpSettings.GeneticistTimer.value && game.global.soldierHealth == 0) - fightManual(); + if (!game.global.fighting) { + if (getBreedTime() < 2 && (game.global.lastBreedTime/1000) > autoTrimpSettings.GeneticistTimer.value && game.global.soldierHealth == 0) + fightManual(); + //AutoFight will now send Trimps to fight if it takes less than 0.1 seconds to breed a new group of soldiers, even if the population limit hasn't been reached yet + else if (game.resources.trimps.owned >= game.resources.trimps.realMax() || getBreedTime() <= 0.1) + fightManual(); + } } //Exits the Spire after completing the specified cell.