-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
if the bean needs shoes equipped then that needs to be added when the flag is added to mafia
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
Source/relay/TourGuide/Items of the Month/2024/Spring Shoes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
} | ||
} |