Added option to hide soulstone informations in shops

This commit is contained in:
Wofsauge committed 2021-05-26 22:00:50 +02:00
1 parent 2792b764d7
commit bc5ced7f8c
3 files changed
+29 -2

No files matched your search

+2 -1
View File
@@ -687,7 +687,8 @@ local function onRender(t)
-- small delay when having obstruction enabled & entering the room to prevent spoilers
return
end
if (closest:ToPickup():IsShopItem() and not EID.Config["DisplayCardInfoShop"]) or (not EID.Config["DisplayObstructedCardInfo"] and not EID.hasValidWalkingpath) or (REPENTANCE and game.Challenge == Challenge.CHALLENGE_CANTRIPPED) then
local hideinShop = closest:ToPickup():IsShopItem() and (((closest.SubType < 81 or closest.SubType > 97) and not EID.Config["DisplayCardInfoShop"]) or (closest.SubType >= 81 and not EID.Config["DisplaySoulstoneInfoShop"]))
if hideinShop or (not EID.Config["DisplayObstructedCardInfo"] and not EID.hasValidWalkingpath) or (REPENTANCE and game.Challenge == Challenge.CHALLENGE_CANTRIPPED) then
EID:renderQuestionMark()
return
end