From dccdcc15dd53451727ec1460d56360efdcf5e96f Mon Sep 17 00:00:00 2001 From: Tiburones202 <103890376+Tiburones202@users.noreply.github.com> Date: Tue, 29 Oct 2024 17:07:27 +0100 Subject: [PATCH] Fixed a typo on Custom Poop API's side (#739) * Fix for a typo on Custom Poop Api's side --- features/eid_holdmapdesc.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/features/eid_holdmapdesc.lua b/features/eid_holdmapdesc.lua index 1f3c3324..f9f355aa 100644 --- a/features/eid_holdmapdesc.lua +++ b/features/eid_holdmapdesc.lua @@ -604,10 +604,14 @@ function EID:ItemReminderHandlePoopSpells(player) --Custom Poop support if CustomPoopAPI then local poopSaveData = CustomPoopAPI.GetPersistentPlayerData(player) - nextPoop = PoopSpellType["SPELL_"..poopSaveData.Poops[i + 1]] --Yes, this works LOL - if nextPoop == nil then --Not a spell from the base game. Might add custom poop support eventually instead of skipping the creep. + local poopKey = poopSaveData.Poops[i + 1] + if poopKey == "DIARREAH" then poopKey = "DIARRHEA" end --Typo from Custom Poop API's side + + nextPoop = PoopSpellType["SPELL_"..poopKey] --Yes, this works LOL + + if nextPoop == nil then nextPoop = PoopSpellType.SPELL_NONE --Prevent from rendering normally - local customPoop = EID:getDescriptionEntry("poopSpells")[poopSaveData.Poops[i + 1]] + local customPoop = EID:getDescriptionEntry("poopSpells")[poopKey] local ignoreExisting = false if customPoop == nil then --If the poop still doesn't exist, use the unkown one instead