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

Cockroach copy target #2070

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion packages/garbo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import {
runGarboQuests,
SetupTargetCopyQuest,
} from "./tasks";
import { CockroachFinish, CockroachSetup } from "./tasks/cockroachPrep";

// Max price for tickets. You should rethink whether Barf is the best place if they're this expensive.
const TICKET_MAX_PRICE = 500000;
Expand All @@ -107,6 +108,15 @@ function ensureBarfAccess() {
}

function defaultTarget() {
// Can we account for re-entry if we only have certain amounts of copiers left in each of these?
if (
have($skill`Just the Facts`) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

we should have a function that boils down to "do we expect to fight gregs today"

have($skill`Meteor Lore`) &&
have($item`Powerful Glove`) &&
Comment on lines +114 to +115
Copy link
Contributor

Choose a reason for hiding this comment

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

We should have a function that essentially boils down to "how many monster replacers are available"

(get("_prToday") || get("prAlways"))
Copy link
Contributor

Choose a reason for hiding this comment

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

use realmAvailable

) {
return $monster`cockroach`;
}
if ($skills`Curse of Weaksauce, Saucegeyser`.every((s) => have(s))) {
return maxBy(
$monsters.all().filter((m) => m.wishable && isFreeAndCopyable(m)),
Expand Down Expand Up @@ -517,6 +527,11 @@ export function main(argString = ""): void {
// FIXME: Dynamically figure out pointer ring approach.
withStash(stashItems, () => {
withVIPClan(() => {
// Prepare pirate realm if our copy target is cockroach
// How do we handle if garbo was started without enough turns left without dieting to prep?
if (globalOptions.target === $monster`cockroach`) {
runGarboQuests([CockroachSetup]);
}
// 0. diet stuff.
if (
globalOptions.nodiet ||
Expand Down Expand Up @@ -554,7 +569,7 @@ export function main(argString = ""): void {

// 2. do some target copy stuff
freeFights();
runGarboQuests([SetupTargetCopyQuest]);
runGarboQuests([CockroachFinish, SetupTargetCopyQuest]);
yachtzeeChain();
dailyFights();

Expand Down
7 changes: 7 additions & 0 deletions packages/garbo/src/potions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ export interface PotionOptions {
}>;
}

export const VALUABLE_MODIFIERS = [
"Meat Drop",
"Familiar Weight",
"Smithsness",
"Item Drop",
] as const;

export class Potion {
potion: Item;
providesDoubleDuration?: boolean;
Expand Down
Loading