Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pocket wishes for the poor #2217

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Ignose
Copy link
Contributor

@Ignose Ignose commented Jan 16, 2025

No description provided.

@Ignose Ignose marked this pull request as ready for review January 16, 2025 17:43
retrieveItem(yellowRay);
}
},
do: () => wanderer().getTarget(undelay("yellow ray")),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
do: () => wanderer().getTarget(undelay("yellow ray")),
do: () => wanderer().getTarget("yellow ray"),

no need to undelay a value that isn't delayed??

Comment on lines +977 to +981
.externalIf(
bestYellowRay() instanceof Skill,
Macro.trySkill(bestYellowRay() as Skill),
Macro.tryItem(bestYellowRay() as Item),
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there isn't an existing method for Item | Skills you should just make one instead of throwing an externalIf in here

}
},
do: () => wanderer().getTarget(undelay("yellow ray")),
outfit: () => meatTargetOutfit(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a fight against our meat target and thus shouldn't use our meat target outfit. also this doesn't equip the retrocape or roman candle if they're the appropriate YR source

@@ -955,8 +958,55 @@ const BarfTurnTasks: GarboTask[] = [
combat: new GarboStrategy(() => Macro.meatKill()),
spendsTurn: () => globalOptions.target.attributes.includes("FREE"),
},
{
name: "Other Yellow Rays",
ready: () => have($skill`Just the Facts`) && get("_bookOfFactsWishes") < 3, // the only way we can guarantee this is profitable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that there's nothing here that specifically targets pocket wishes I'm not sure this ready condition makes sense

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's also a world--many worlds, in fact--where spending meat on a viral video has negative EV

Comment on lines +987 to +1009
function bestYellowRay(): Skill | Item {
if (have($item`Roman Candelabra`)) {
return $skill`Blow the Yellow Candle!`;
}

if (
have($item`Clan VIP Lounge key`) &&
getClanLounge()["clan underground fireworks shop"] !== undefined
) {
return $item`yellow rocket`;
}

if (RetroCape.have()) {
return $skill`Unleash the Devil's Kiss`;
}

if (have($skill`Disintegrate`)) {
return $skill`Disintegrate`;
}

return $item`viral video`;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function doesn't belong here. Lib might be a better place for it.

Buying the yellow rocket requires a visitUrl hit prior to actually buying due to an ongoing bug with the fireworks shop. If this has been fixed, hooray! But I haven't heard anything about it.

@horrible-little-slime horrible-little-slime marked this pull request as draft January 24, 2025 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants