From 64812354af9c31ff2df8d517ea5f0f892799205e Mon Sep 17 00:00:00 2001 From: Joe Kirchoff Date: Tue, 24 Oct 2023 15:23:57 -0700 Subject: [PATCH] free goofballs (#1679) * free goofballs * check questL03Rat --- packages/garbo/src/tasks/daily.ts | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/packages/garbo/src/tasks/daily.ts b/packages/garbo/src/tasks/daily.ts index a5266c2b9..889e07be1 100644 --- a/packages/garbo/src/tasks/daily.ts +++ b/packages/garbo/src/tasks/daily.ts @@ -19,6 +19,7 @@ import { Item, itemAmount, mallPrice, + myAscensions, myClass, myDaycount, myHash, @@ -367,9 +368,9 @@ 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 @@ -377,6 +378,25 @@ const DailyTasks: GarboTask[] = [ }, 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`),