From c83bfc75e1e498d9c703625fe1961ac2e36d0450 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Fri, 17 Nov 2023 23:54:51 -0500 Subject: [PATCH] Blank Card + Tarot Cloth --- eid_modifiers.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/eid_modifiers.lua b/eid_modifiers.lua index b087209f..2adac60f 100644 --- a/eid_modifiers.lua +++ b/eid_modifiers.lua @@ -540,7 +540,9 @@ if EID.isRepentance then end return descObj end - + + local hasTarot = false + -- Handle Blank Card description addition local function BlankCardCallback(descObj) local text = EID:getDescriptionEntry("BlankCardCharge") @@ -554,6 +556,12 @@ if EID.isRepentance then EID:appendToDescription(descObj, iconStr..text.." {{"..charge.mimiccharge.."}}{{Battery}}") end end + -- If the player has Tarot Cloth and Blank Card, display additional text + if hasTarot then + text = EID:getDescriptionEntry("BlankCardEffect") + local buffText = EID:getDescriptionEntry("tarotClothBlankCardBuffs", descObj.ObjSubType) + if buffText then EID:appendToDescription(descObj, iconStr .. text .. " " .. buffText) end + end return descObj end @@ -726,7 +734,8 @@ if EID.isRepentance then -- Card / Rune Callbacks elseif descObj.ObjVariant == PickupVariant.PICKUP_TAROTCARD then - if EID.collectiblesOwned[451] then table.insert(callbacks, TarotClothCallback) end + hasTarot = EID.collectiblesOwned[451] + if hasTarot then table.insert(callbacks, TarotClothCallback) end if EID.collectiblesOwned[286] and not EID.blankCardHidden[descObj.ObjSubType] and EID.cardMetadata[descObj.ObjSubType] then table.insert(callbacks, BlankCardCallback) end if EID.collectiblesOwned[263] and EID.runeIDs[descObj.ObjSubType] and EID.cardMetadata[descObj.ObjSubType] then table.insert(callbacks, ClearRuneCallback) end