diff --git a/Source/relay/TourGuide/Items of the Month/2024/Spring Shoes b/Source/relay/TourGuide/Items of the Month/2024/Spring Shoes new file mode 100644 index 00000000..a510876b --- /dev/null +++ b/Source/relay/TourGuide/Items of the Month/2024/Spring Shoes @@ -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)); + } + } +}