Skip to content

Commit

Permalink
fixing parka tile display via __iotms_usable() & adding stinkbomb ban…
Browse files Browse the repository at this point in the history
…ish entry
  • Loading branch information
docrostov committed Aug 20, 2024
1 parent b2a68d0 commit ec988bc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ void addToBothDescriptions(string [int] description1, string [int] description2,
RegisterResourceGenerationFunction("IOTMMayamCalendarGenerateResource");
void IOTMMayamCalendarGenerateResource(ChecklistEntry [int] resource_entries)
{
// Adding this prior to the check if the user has stinkbombs.
if ($item[stuffed yam stinkbomb].available_amount() > 0 )
{
resource_entries.listAppend(ChecklistEntryMake("__item stuffed yam stinkbomb", "", ChecklistSubentryMake(pluralise($item[stuffed yam stinkbomb]), "", "Free run/banish."), 0).ChecklistEntrySetCombinationTag("banish").ChecklistEntrySetIDTag("Haunted doghouse banish"));
}

if (available_amount($item[mayam calendar]) < 1)
return;

Expand Down
12 changes: 8 additions & 4 deletions Source/relay/TourGuide/Support/IOTMs.ash
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ void initialiseIOTMsUsable()
if (lookupItem("unbreakable umbrella").available_amount() > 0) //Mar 2022
__iotms_usable[lookupItem("unbreakable umbrella")] = true;

if (lookupItem("Jurassic Parka").available_amount() > 0) // adding because of a strange issue w/ Sneaks.ash...
__iotms_usable[lookupItem("Jurassic Parka")] = true;
if (available_amount($item[jurassic parka]) > 0) // adding because of a strange issue w/ Sneaks.ash...
__iotms_usable[$item[jurassic parka]] = true;

if ($item[Clan VIP Lounge key].item_amount() > 0)
{
Expand Down Expand Up @@ -305,8 +305,12 @@ void initialiseIOTMsUsable()
replicaCheck("2002 Mr. Store Catalog"); # handled in own tile
replicaCheck("August Scepter"); # handled in own tile

// Swap parka to false if you aren't torso aware.
if (!__misc_state["Torso aware"])
// Swap parka to false if you aren't torso aware. You cannot use the __misc_state
// shortcuts here, because this comes before it in execution. That's a sad
// disadvantage of all our bundling, did not remotely realize state wasn't
// instantiated before this. That means the parka stuff hasn't shown up since
// Legacy of Loathing lmao.
if (!$skill[12].have_skill())
{
__iotms_usable[lookupItem("Jurassic Parka")] = false;
}
Expand Down

0 comments on commit ec988bc

Please sign in to comment.