Adds feature to hide the descriptions when in battle

This commit is contained in:
Wofsauge committed 2020-11-27 23:22:20 +01:00
1 parent d3decba7be
commit b2dff9ef7e
3 files changed
+32 -3

No files matched your search

+6 -3
View File
@@ -263,12 +263,15 @@ local function onRender(t)
end
if EID.isHidden then
return
elseif EID.Config["HideInBattle"] then
if Isaac.CountBosses() > 0 or Isaac.CountEnemies() > 0 then
return
end
end
local player = Isaac.GetPlayer(0)
EID:renderMCMDummyDescription()
local player = Isaac.GetPlayer(0)
if player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG) then
EID:addTextPosModifier("Schoolbag", Vector(0,30))
end