From 01e4b1c0c3055c34bccc638db8fbc36a2ab09164 Mon Sep 17 00:00:00 2001 From: Ignose Date: Sat, 5 Oct 2024 11:39:59 -0400 Subject: [PATCH] Add bat winbg tracking to improve rates --- packages/garbo/src/tasks/barfTurn.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/garbo/src/tasks/barfTurn.ts b/packages/garbo/src/tasks/barfTurn.ts index e04c97d60..b7e4fafbd 100644 --- a/packages/garbo/src/tasks/barfTurn.ts +++ b/packages/garbo/src/tasks/barfTurn.ts @@ -4,6 +4,7 @@ import { canEquip, eat, getWorkshed, + haveEquipped, Item, itemAmount, Location, @@ -17,6 +18,7 @@ import { myRain, myTurncount, outfitPieces, + print, retrieveItem, runChoice, totalTurnsPlayed, @@ -95,6 +97,9 @@ import { lavaDogsAccessible, lavaDogsComplete } from "../resources/doghouse"; import { hotTubAvailable } from "../resources/clanVIP"; import { meatMood } from "../mood"; +let batWingsTurns = 0; +let batWingTriggers = 0; + const digitizedTarget = () => SourceTerminal.have() && SourceTerminal.getDigitizeMonster() === globalOptions.target; @@ -982,6 +987,17 @@ export const BarfTurnQuest: Quest = { !(totalTurnsPlayed() % 11) && meatMood().execute(estimatedGarboTurns()), post: () => { + // eslint-disable-next-line libram/verify-constants + if (haveEquipped($item`bat wings`)) { + if (batWingTriggers === get("_batWingsFreeFights", 0)) { + batWingsTurns++; + print(`${batWingsTurns} since last bat wing trigger`); + } else { + print(`Bat Wing Free Fight Trigger after ${batWingsTurns} turns`); + batWingTriggers = get("_batWingsFreeFights", 0); + batWingsTurns = 0; + } + } completeBarfQuest(); trackMarginalMpa(); },