Skip to content

Commit

Permalink
free goofballs (#1679)
Browse files Browse the repository at this point in the history
* free goofballs

* check questL03Rat
  • Loading branch information
Rinn authored Oct 24, 2023
1 parent 5d3e612 commit 6481235
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions packages/garbo/src/tasks/daily.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
Item,
itemAmount,
mallPrice,
myAscensions,
myClass,
myDaycount,
myHash,
Expand Down Expand Up @@ -367,16 +368,35 @@ const DailyTasks: GarboTask[] = [
name: "Continuum Transfunctioner",
ready: () => canAdventure($location`The Spooky Forest`),
completed: () => have($item`continuum transfunctioner`),
after: ["Daily/Unlock Woods"],
do: (): void => {
// taken from autoscend
visitUrl("place.php?whichplace=woods");
visitUrl("woods.php"); // Without visiting woods, other visitUrls will not register woods as being unlocked.
visitUrl("place.php?whichplace=forestvillage&action=fv_mystic");
runChoice(1); // Sure, old man. Tell me all about it
runChoice(1); // Against my better judgement, yes
runChoice(1); // Er, sure, I guess so
},
spendsTurn: false,
},
{
name: "Free Goofballs",
ready: () =>
canAdventure($location`The Spooky Forest`) &&
get("questL03Rat") !== "unstarted",
completed: () => get("lastGoofballBuy") === myAscensions(),
after: ["Daily/Unlock Woods"],
do: () => {
if (itemAmount($item`gloomy black mushroom`) > 0) {
putCloset(
itemAmount($item`gloomy black mushroom`),
$item`gloomy black mushroom`,
);
}
visitUrl("woods.php"); // Without visiting woods, other visitUrls will not register woods as being unlocked.
visitUrl("tavern.php?action=buygoofballs");
},
spendsTurn: false,
},
{
name: "Configure I Voted! Sticker",
completed: () => have($item`"I Voted!" sticker`),
Expand Down

0 comments on commit 6481235

Please sign in to comment.