Skip to content

Commit

Permalink
defaultTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiverwarp committed Oct 28, 2024
1 parent 933bda3 commit fb57591
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/garbo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,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`) &&
have($skill`Meteor Lore`) &&
have($item`Powerful Glove`) &&
(get("_prToday") || get("prAlways"))
) {
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

0 comments on commit fb57591

Please sign in to comment.