Add Cantripped Card support
This commit is contained in:
1 parent
b16dba9f96
commit
7d63f13f83
1 file changed
+11
-6
@@ -1418,9 +1418,8 @@ local function onRender()
|
|||||||
|
|
||||||
EID:addDescriptionToPrint(descriptionObj)
|
EID:addDescriptionToPrint(descriptionObj)
|
||||||
end
|
end
|
||||||
|
--Handle Broken Shovel
|
||||||
elseif closest.Variant == 110 then
|
elseif closest.Type == 5 and closest.Variant == 110 then
|
||||||
--Handle Broken Shovel
|
|
||||||
local descriptionObj = EID:getDescriptionObj(5, 100, 550, closest)
|
local descriptionObj = EID:getDescriptionObj(5, 100, 550, closest)
|
||||||
EID:addDescriptionToPrint(descriptionObj)
|
EID:addDescriptionToPrint(descriptionObj)
|
||||||
|
|
||||||
@@ -1448,12 +1447,18 @@ local function onRender()
|
|||||||
local obstructed = ((not isSoulstone and not EID.Config["DisplayObstructedCardInfo"]) or
|
local obstructed = ((not isSoulstone and not EID.Config["DisplayObstructedCardInfo"]) or
|
||||||
(not EID.Config["DisplayObstructedSoulstoneInfo"] and isSoulstone)) and
|
(not EID.Config["DisplayObstructedSoulstoneInfo"] and isSoulstone)) and
|
||||||
(not pathsChecked[closest.InitSeed] and not attemptPathfind(closest))
|
(not pathsChecked[closest.InitSeed] and not attemptPathfind(closest))
|
||||||
if isOptionsSpawn or hideinShop or obstructed or (REPENTANCE and game.Challenge == Challenge.CHALLENGE_CANTRIPPED) then
|
if isOptionsSpawn or hideinShop or obstructed then
|
||||||
EID:addDescriptionToPrint({ Description = "QuestionMark", Entity = closest})
|
EID:addDescriptionToPrint({ Description = "QuestionMark", Entity = closest})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local descriptionObj = EID:getDescriptionObjByEntity(closest)
|
local isCantrippedCard = game.Challenge == 43 and closest.SubType > 32768
|
||||||
EID:addDescriptionToPrint(descriptionObj)
|
if isCantrippedCard then
|
||||||
|
local descriptionObj = EID:getDescriptionObj(5, 100, closest.SubType - 32768, closest)
|
||||||
|
EID:addDescriptionToPrint(descriptionObj)
|
||||||
|
else
|
||||||
|
local descriptionObj = EID:getDescriptionObjByEntity(closest)
|
||||||
|
EID:addDescriptionToPrint(descriptionObj)
|
||||||
|
end
|
||||||
|
|
||||||
elseif closest.Variant == PickupVariant.PICKUP_PILL then
|
elseif closest.Variant == PickupVariant.PICKUP_PILL then
|
||||||
--Handle Pills
|
--Handle Pills
|
||||||
|
|||||||
Reference in new issue
Block a user