Blank Card + Tarot Cloth
This commit is contained in:
1 parent
e0c8f9b3f4
commit
c83bfc75e1
1 file changed
+11
-2
+11
-2
@@ -540,7 +540,9 @@ if EID.isRepentance then
|
|||||||
end
|
end
|
||||||
return descObj
|
return descObj
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local hasTarot = false
|
||||||
|
|
||||||
-- Handle Blank Card description addition
|
-- Handle Blank Card description addition
|
||||||
local function BlankCardCallback(descObj)
|
local function BlankCardCallback(descObj)
|
||||||
local text = EID:getDescriptionEntry("BlankCardCharge")
|
local text = EID:getDescriptionEntry("BlankCardCharge")
|
||||||
@@ -554,6 +556,12 @@ if EID.isRepentance then
|
|||||||
EID:appendToDescription(descObj, iconStr..text.." {{"..charge.mimiccharge.."}}{{Battery}}")
|
EID:appendToDescription(descObj, iconStr..text.." {{"..charge.mimiccharge.."}}{{Battery}}")
|
||||||
end
|
end
|
||||||
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
|
return descObj
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -726,7 +734,8 @@ if EID.isRepentance then
|
|||||||
|
|
||||||
-- Card / Rune Callbacks
|
-- Card / Rune Callbacks
|
||||||
elseif descObj.ObjVariant == PickupVariant.PICKUP_TAROTCARD then
|
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[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
|
if EID.collectiblesOwned[263] and EID.runeIDs[descObj.ObjSubType] and EID.cardMetadata[descObj.ObjSubType] then table.insert(callbacks, ClearRuneCallback) end
|
||||||
|
|||||||
Reference in new issue
Block a user