Skip to content

Commit

Permalink
Add bat winbg tracking to improve rates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignose committed Oct 5, 2024
1 parent fe84090 commit 01e4b1c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/garbo/src/tasks/barfTurn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
canEquip,
eat,
getWorkshed,
haveEquipped,
Item,
itemAmount,
Location,
Expand All @@ -17,6 +18,7 @@ import {
myRain,
myTurncount,
outfitPieces,
print,
retrieveItem,
runChoice,
totalTurnsPlayed,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -982,6 +987,17 @@ export const BarfTurnQuest: Quest<GarboTask> = {
!(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();
},
Expand Down

0 comments on commit 01e4b1c

Please sign in to comment.