Added mod indicator to custom poop
This commit is contained in:
1 parent
0cf767bc51
commit
bb94e101a3
2 files changed
+6
-3
No files matched your search
@@ -287,7 +287,7 @@ end
|
|||||||
-- Language is the language you want to add it to. Examples: "en_us", "spa", "ru".
|
-- 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")
|
-- 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)
|
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
|
end
|
||||||
|
|
||||||
-- Adds a new color object with the shortcut defined in the "shortcut" variable (e.g. "{{shortcut}}" = your color)
|
-- Adds a new color object with the shortcut defined in the "shortcut" variable (e.g. "{{shortcut}}" = your color)
|
||||||
|
|||||||
@@ -616,10 +616,13 @@ function EID:ItemReminderHandlePoopSpells(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if ignoreExisting or not displayedPoopTypes[customPoop] then
|
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
|
displayedPoopTypes[customPoop] = true
|
||||||
|
|
||||||
descsAvailableToRender = descsAvailableToRender - 1
|
descsAvailableToRender = descsAvailableToRender - 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user