-
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.
Merge pull request #218 from loathers/tes-spring-shoes
add spring shoes to main
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
Source/relay/TourGuide/Items of the Month/2024/Spring Shoes.ash
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,32 @@ | ||
//Spring shoes | ||
RegisterTaskGenerationFunction("IOTMSpringShoesGenerateTasks"); | ||
RegisterResourceGenerationFunction("IOTMSpringShoesGenerateResource"); | ||
|
||
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)); | ||
} | ||
} | ||
} | ||
|
||
void IOTMSpringShoesGenerateResource(ChecklistEntry [int] resource_entries) | ||
{ | ||
string [int] banishDescription; | ||
banishDescription.listAppend("All day banish, doesn't end combat"); | ||
if (lookupItem("spring shoes").equipped_amount() == 0) | ||
{ | ||
banishDescription.listAppend(HTMLGenerateSpanFont("Equip the spring shoes first.", "red")); | ||
} | ||
resource_entries.listAppend(ChecklistEntryMake("__skill spring shoes", "", ChecklistSubentryMake("Spring Kick", "", banishDescription)).ChecklistEntrySetCombinationTag("banish").ChecklistEntrySetIDTag("Spring shoes spring kick banish")); | ||
} |
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
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