Merge branch 'master' of https://github.com/wofsauge/External-Item-Descriptions into master
This commit is contained in:
commit
a0ef98b7ce
1 file changed
+7
-3
@@ -604,10 +604,14 @@ function EID:ItemReminderHandlePoopSpells(player)
|
|||||||
--Custom Poop support
|
--Custom Poop support
|
||||||
if CustomPoopAPI then
|
if CustomPoopAPI then
|
||||||
local poopSaveData = CustomPoopAPI.GetPersistentPlayerData(player)
|
local poopSaveData = CustomPoopAPI.GetPersistentPlayerData(player)
|
||||||
nextPoop = PoopSpellType["SPELL_"..poopSaveData.Poops[i + 1]] --Yes, this works LOL
|
local poopKey = poopSaveData.Poops[i + 1]
|
||||||
if nextPoop == nil then --Not a spell from the base game. Might add custom poop support eventually instead of skipping the creep.
|
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
|
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
|
local ignoreExisting = false
|
||||||
if customPoop == nil then --If the poop still doesn't exist, use the unkown one instead
|
if customPoop == nil then --If the poop still doesn't exist, use the unkown one instead
|
||||||
|
|||||||
Reference in new issue
Block a user