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(); },