Adds hiding feature for Cards/pills spawned by Options? item

This commit is contained in:
Wofsauge committed 2021-07-20 19:05:07 +02:00
1 parent 5e54487d62
commit 5e3c939b94
4 files changed
+57 -3

No files matched your search

+4 -2
View File
@@ -668,8 +668,9 @@ local function onRender(t)
if closest:GetData()["EID_DontHide"] ~= true then
local isSoulstone = closest.SubType >= 81 and closest.SubType <= 97
local hideinShop = closest:ToPickup():IsShopItem() and ((not isSoulstone and not EID.Config["DisplayCardInfoShop"]) or (isSoulstone and not EID.Config["DisplaySoulstoneInfoShop"]))
local isOptionsSpawn = closest:ToPickup().OptionsPickupIndex > 0 and not EID.Config["DisplayCardInfoOptions?"]
local obstructed = ((not isSoulstone and not EID.Config["DisplayObstructedCardInfo"]) or (not EID.Config["DisplayObstructedSoulstoneInfo"] and isSoulstone)) and not EID.hasValidWalkingpath
if hideinShop or obstructed or (REPENTANCE and game.Challenge == Challenge.CHALLENGE_CANTRIPPED) then
if isOptionsSpawn or hideinShop or obstructed or (REPENTANCE and game.Challenge == Challenge.CHALLENGE_CANTRIPPED) then
EID:renderQuestionMark()
return
end
@@ -683,7 +684,8 @@ local function onRender(t)
return
end
if closest:GetData()["EID_DontHide"] ~= true then
if (closest:ToPickup():IsShopItem() and not EID.Config["DisplayPillInfoShop"]) or (not EID.Config["DisplayObstructedPillInfo"] and not EID.hasValidWalkingpath) then
local isOptionsSpawn = closest:ToPickup().OptionsPickupIndex > 0 and not EID.Config["DisplayPillInfoOptions?"]
if isOptionsSpawn or (closest:ToPickup():IsShopItem() and not EID.Config["DisplayPillInfoShop"]) or (not EID.Config["DisplayObstructedPillInfo"] and not EID.hasValidWalkingpath) then
EID:renderQuestionMark()
return
end