garbage-collector
garbage-collector copied to clipboard
[BUG] Garbo buffs full day of Merry Smithsness even when not using Half-A-Purse
Right now we just assume purse usage based on this:
let cachedUsingPurse: boolean | null = null;
export function usingPurse(): boolean {
if (cachedUsingPurse === null) {
cachedUsingPurse =
myInebriety() <= inebrietyLimit() &&
(!have($item`latte lovers member's mug`) ||
(!have($familiar`Robortender`) && !have($familiar`Hobo Monkey`)) ||
!canAdventure($location`The Black Forest`));
}
return cachedUsingPurse;
}
However, we now have more possibly profitable offhands than half-a-purse during barf turns (snowglobe particularly)
So we end up buffing smithsness even though our outfit won't be wearing half-a-purse.
A hypothetical solution is to attempt to build our barf outfit here (with stand-in values for half-a-purse if we do not currently have smithsness), and if the outfit includes half a purse, we can then assume we'll be wearing it enough for smithsness buffing