Added shortcut function for adding general conditions
This commit is contained in:
1 parent
9703626b71
commit
2b3c48d1ea
2 files changed
+32
No files matched your search
@@ -2160,6 +2160,8 @@ end
|
|||||||
function EID:GetEntityXMLName(Type, Variant, SubType)
|
function EID:GetEntityXMLName(Type, Variant, SubType)
|
||||||
return EID.XMLEntityNames[Type.."."..Variant] or EID.XMLEntityNames[Type.."."..Variant.."."..SubType]
|
return EID.XMLEntityNames[Type.."."..Variant] or EID.XMLEntityNames[Type.."."..Variant.."."..SubType]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
function EID:GetEntityXMLNameByString(tvsString)
|
function EID:GetEntityXMLNameByString(tvsString)
|
||||||
local Type, Var, Sub = EID:SplitTVS(tvsString)
|
local Type, Var, Sub = EID:SplitTVS(tvsString)
|
||||||
return EID:GetEntityXMLName(Type, Var, Sub)
|
return EID:GetEntityXMLName(Type, Var, Sub)
|
||||||
|
|||||||
@@ -67,6 +67,36 @@ function EID:addToGeneralCondition(ID, locTable, text, numberToDouble, newNumber
|
|||||||
EID.descriptions[language][locTable][ID] = text
|
EID.descriptions[language][locTable][ID] = text
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Shortcut function for adding Repentance Tarot Cloth conditions
|
||||||
|
function EID:addTarotClothBuffsCondition(ID, text, numberToDouble, newNumber, language)
|
||||||
|
EID:addToGeneralCondition(ID, "tarotClothBuffs", text, numberToDouble, newNumber, language)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Shortcut function for adding Ab+ Tarot Cloth conditions
|
||||||
|
function EID:addTarotClothBuffsABCondition(ID, text, numberToDouble, newNumber, language)
|
||||||
|
EID:addToGeneralCondition(ID, "tarotClothBuffsAB", text, numberToDouble, newNumber, language)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Shortcut function for adding car battery conditions
|
||||||
|
function EID:addCarBatteryCondition(ID, text, numberToDouble, newNumber, language)
|
||||||
|
EID:addToGeneralCondition(ID, "carBattery", text, numberToDouble, newNumber, language)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Shortcut function for adding abyss synergies conditions
|
||||||
|
function EID:addAbyssSynergiesCondition(ID, text, numberToDouble, newNumber, language)
|
||||||
|
EID:addToGeneralCondition(ID, "abyssSynergies", text, numberToDouble, newNumber, language)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Shortcut function for adding book of belial conditions
|
||||||
|
function EID:addBookOfBelialBuffsCondition(ID, text, numberToDouble, newNumber, language)
|
||||||
|
EID:addToGeneralCondition(ID, "bookOfBelialBuffs", text, numberToDouble, newNumber, language)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Shortcut function for adding binge eater conditions
|
||||||
|
function EID:addBingeEaterBuffsCondition(ID, text, numberToDouble, newNumber, language)
|
||||||
|
EID:addToGeneralCondition(ID, "bingeEaterBuffs", text, numberToDouble, newNumber, language)
|
||||||
|
end
|
||||||
|
|
||||||
-- Shortcut function for adding BFFS conditions; this is slightly more complex since it supports trinkets
|
-- Shortcut function for adding BFFS conditions; this is slightly more complex since it supports trinkets
|
||||||
-- Example usage: EID:addBFFSCondition(myBasicFamiliarID, nil, 3.5)
|
-- Example usage: EID:addBFFSCondition(myBasicFamiliarID, nil, 3.5)
|
||||||
function EID:addBFFSCondition(ID, text, numberToDouble, newNumber, language)
|
function EID:addBFFSCondition(ID, text, numberToDouble, newNumber, language)
|
||||||
|
|||||||
Reference in new issue
Block a user