Skip to content

Commit

Permalink
We snapper now
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignose committed Sep 26, 2024
1 parent 2319453 commit 03a3865
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/garbo/src/familiar/freeFightFamiliar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
get,
getModifier,
have,
Snapper,
} from "libram";
import { canOpenRedPresent } from ".";
import { garboValue } from "../garboValue";
Expand Down Expand Up @@ -91,6 +92,26 @@ export function menu(options: MenuOptions = {}): GeneralFamiliar[] {
limit: "experience",
});
}

if (mode === "target") {
const item = Snapper.phylumItem.get(globalOptions.target.phylum);

familiarMenu.push({
familiar: $familiar`Red-Nosed Snapper`,
expectedValue:
item &&
copyTargetCount() >
11 -
(Snapper.getTrackedPhylum() === globalOptions.target.phylum
? Snapper.getProgress()
: 0)
? garboValue(item) / 11
: 0,
leprechaunMultiplier: 0,
limit: "special",
});
}

if (canOpenRedPresent()) {
familiarMenu.push({
familiar: $familiar`Crimbo Shrub`,
Expand Down
8 changes: 8 additions & 0 deletions packages/garbo/src/fights.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ import {
Requirement,
Robortender,
set,
Snapper,
SourceTerminal,
sum,
undelay,
Expand Down Expand Up @@ -528,6 +529,13 @@ export function dailyFights(): void {

const famSpec = familiarSpec(underwater, nextFight.name);

if (
famSpec === $familiar`Red-Nosed Snapper` &&
Snapper.getTrackedPhylum() !== globalOptions.target.phylum
) {
Snapper.trackPhylum(globalOptions.target.phylum);
}

setLocation(location);
meatTargetOutfit({ ...nextFight.spec, ...famSpec }, location).dress();

Expand Down

0 comments on commit 03a3865

Please sign in to comment.