From b62993af138278ba742d4f61b6c9aee4fb180b75 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Sun, 30 May 2021 23:08:42 +0200 Subject: [PATCH] Fixed Tarot cloth compatibility with ab+ --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 571ebb33..b4a4f31a 100644 --- a/main.lua +++ b/main.lua @@ -627,8 +627,8 @@ local function onRender(t) local descriptionObj = EID:getDescriptionObj(closest.Type, closest.Variant, closest.SubType) -- Handle Tarot Cloth description addition if player:HasCollectible(451) then - local translatedDesc = EID.descriptions[EID.Config["Language"]]["tarotClothBuffs"] - local clothBuff = (translatedDesc and translatedDesc[closest.SubType]) or EID.descriptions["en_us"]["tarotClothBuffs"][closest.SubType] or nil + local translatedDesc = EID.descriptions[EID.Config["Language"]]["tarotClothBuffs"] or EID.descriptions["en_us"]["tarotClothBuffs"] + local clothBuff = (translatedDesc and translatedDesc[closest.SubType]) or ( translatedDesc and translatedDesc[closest.SubType]) or nil if clothBuff ~= nil then local bingeStr = "#{{Collectible451}} " descriptionObj.Description = descriptionObj.Description..bingeStr..clothBuff[3]:gsub("#",bingeStr)