Fixed Tarot cloth compatibility with ab+
This commit is contained in:
1 parent
89c5024e14
commit
b62993af13
1 file changed
+2
-2
@@ -627,8 +627,8 @@ local function onRender(t)
|
|||||||
local descriptionObj = EID:getDescriptionObj(closest.Type, closest.Variant, closest.SubType)
|
local descriptionObj = EID:getDescriptionObj(closest.Type, closest.Variant, closest.SubType)
|
||||||
-- Handle Tarot Cloth description addition
|
-- Handle Tarot Cloth description addition
|
||||||
if player:HasCollectible(451) then
|
if player:HasCollectible(451) then
|
||||||
local translatedDesc = EID.descriptions[EID.Config["Language"]]["tarotClothBuffs"]
|
local translatedDesc = EID.descriptions[EID.Config["Language"]]["tarotClothBuffs"] or EID.descriptions["en_us"]["tarotClothBuffs"]
|
||||||
local clothBuff = (translatedDesc and translatedDesc[closest.SubType]) or EID.descriptions["en_us"]["tarotClothBuffs"][closest.SubType] or nil
|
local clothBuff = (translatedDesc and translatedDesc[closest.SubType]) or ( translatedDesc and translatedDesc[closest.SubType]) or nil
|
||||||
if clothBuff ~= nil then
|
if clothBuff ~= nil then
|
||||||
local bingeStr = "#{{Collectible451}} "
|
local bingeStr = "#{{Collectible451}} "
|
||||||
descriptionObj.Description = descriptionObj.Description..bingeStr..clothBuff[3]:gsub("#",bingeStr)
|
descriptionObj.Description = descriptionObj.Description..bingeStr..clothBuff[3]:gsub("#",bingeStr)
|
||||||
|
|||||||
Reference in new issue
Block a user