Fix modifier issues
This commit is contained in:
1 parent
6e43195c58
commit
82bb5e940d
1 file changed
+8
-1
+8
-1
@@ -849,6 +849,13 @@ end
|
||||
-- Adds Description object modifiers.
|
||||
-- Used for altering descriptions. Example: Spindown dice, Tarot Cloth, ...
|
||||
function EID:addDescriptionModifier(modifierName, condition, callback)
|
||||
for i,v in ipairs(EID.DescModifiers) do
|
||||
if v["name"] == modifierName then
|
||||
v["condition"] = condition
|
||||
v["callback"] = callback
|
||||
return
|
||||
end
|
||||
end
|
||||
table.insert(EID.DescModifiers, {
|
||||
name = modifierName,
|
||||
condition = condition,
|
||||
@@ -860,7 +867,7 @@ end
|
||||
-- Used for altering descriptions. Example: Spindown dice, Tarot Cloth, ...
|
||||
function EID:removeDescriptionModifier(modifierName)
|
||||
for i,v in ipairs(EID.DescModifiers) do
|
||||
if v[name] == modifierName then
|
||||
if v["name"] == modifierName then
|
||||
table.remove(EID.DescModifiers,i)
|
||||
return
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user