Skip to content

Commit

Permalink
Merge pull request #218 from loathers/tes-spring-shoes
Browse files Browse the repository at this point in the history
add spring shoes to main
  • Loading branch information
docrostov authored Mar 2, 2024
2 parents df623cd + 9af8fd4 commit 4887f47
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Bundle_ASH_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,5 @@ def bundle_and_write(path_to_file,path_to_result,path_to_folder = '',allow_overw

if return_imported_files:
return imported_files

# bundle_and_write('relay/relay_TourGuide.ash', 'relay_TourGuide.ash', 'Source')
32 changes: 32 additions & 0 deletions Source/relay/TourGuide/Items of the Month/2024/Spring Shoes.ash
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"));
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,4 @@ import "relay/TourGuide/Items of the Month/2023/A Guide to Burning Leaves.ash";

// 2024
import "relay/TourGuide/Items of the Month/2024/Chest Mimic.ash";
import "relay/TourGuide/Items of the Month/2024/Spring Shoes.ash";
1 change: 1 addition & 0 deletions Source/relay/TourGuide/Support/Banishers.ash
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ static
__banish_source_length["patriotic screech"] = 100;
__banish_source_length["roar like a lion"] = 30; // not sure it is needed; it should generally be not more than 30
__banish_source_length["monkey slap"] = 1234567; // this, for some reason, was not properly respecting the reset condition. so imma just do this to hopefully solve it.
__banish_source_length["spring kick"] = -1;

int [string] __banish_simultaneous_limit;
__banish_simultaneous_limit["beancannon"] = 5;
Expand Down

0 comments on commit 4887f47

Please sign in to comment.