Added mod indicator to custom poop

This commit is contained in:
Wofsauge committed 2024-10-28 19:58:19 +01:00
1 parent 0cf767bc51
commit bb94e101a3
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -287,7 +287,7 @@ end
-- Language is the language you want to add it to. Examples: "en_us", "spa", "ru".
-- EXAMPLE: EID:addCustomPoopSpell("MYPOOP", "I Made This Poop", "{{PoopSpell1}}", "Can be throwed to deal damage", "en_us")
function EID:addCustomPoopSpell(token, name, icon, description, language)
EID.descriptions[language]["poopSpells"][token] = {icon, name, description}
EID.descriptions[language]["poopSpells"][token] = {icon, name, description, EID._currentMod}
end
-- Adds a new color object with the shortcut defined in the "shortcut" variable (e.g. "{{shortcut}}" = your color)
+5 -2
View File
@@ -616,10 +616,13 @@ function EID:ItemReminderHandlePoopSpells(player)
end
if ignoreExisting or not displayedPoopTypes[customPoop] then
EID:ItemReminderAddTempDescriptionEntry(customPoop[1], customPoop[2], customPoop[3])
local poopName = customPoop[2]
if customPoop[4] then
poopName = poopName + EID:getModNameString({ ["ModName"] = customPoop[4] })
end
EID:ItemReminderAddTempDescriptionEntry(customPoop[1], poopName, customPoop[3])
displayedPoopTypes[customPoop] = true
descsAvailableToRender = descsAvailableToRender - 1
end
end