Skip to content

Commit

Permalink
Create Spring Shoes
Browse files Browse the repository at this point in the history
if the bean needs shoes equipped then that needs to be added when the flag is added to mafia
  • Loading branch information
uthuluc authored Feb 2, 2024
1 parent a43eaa1 commit 267015d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Source/relay/TourGuide/Items of the Month/2024/Spring Shoes
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//Spring shoes
RegisterTaskGenerationFunction("IOTMSpringShoesGenerateTasks");
void IOTMSpringShoesGenerateTasks(ChecklistEntry [int] task_entries, ChecklistEntry [int] optional_task_entries, ChecklistEntry [int] future_task_entries)
{
if (__misc_state["in run"] && available_amount($item[spring shoes]) > 0 && my_path().id != PATH_COMMUNITY_SERVICE)
{
if ($effect[everything looks green].have_effect() == 0)
{
string [int] description;
string url = "inventory.php?ftext=spring+shoes";
description.listAppend(HTMLGenerateSpanFont("Run away from your problems!", "green"));
if (lookupItem("spring shoes").equipped_amount() == 0)
{
description.listAppend(HTMLGenerateSpanFont("Equip the spring shoes first.", "red"));
}
task_entries.listAppend(ChecklistEntryMake("__item spring shoes", url, ChecklistSubentryMake("Spring shoes runaway available!", "", description), -11));
}
}
}

0 comments on commit 267015d

Please sign in to comment.