Fixes Sacrifice room payout display not changing

This commit is contained in:
Wofsauge committed 2021-05-15 15:34:55 +02:00
1 parent b67c7fced1
commit aecd253c5e
1 file changed
+2 -2
+2 -2
View File
@@ -116,8 +116,8 @@ if EID.Config["DisplaySacrificeInfo"] then
end end
EID:AddCallback(ModCallbacks.MC_POST_NEW_LEVEL, EID.onNewFloor) EID:AddCallback(ModCallbacks.MC_POST_NEW_LEVEL, EID.onNewFloor)
function EID:onSacrificeDamage(_, _, flag, source) function EID:onSacrificeDamage(_, _, flags, source)
if Game():GetRoom():GetType() == RoomType.ROOM_SACRIFICE and source.Type == 0 and flag == DamageFlag.DAMAGE_SPIKES then if Game():GetRoom():GetType() == RoomType.ROOM_SACRIFICE and source.Type == 0 and flags & DamageFlag.DAMAGE_SPIKES == DamageFlag.DAMAGE_SPIKES then
if EID.sacrificeCounter < 12 then if EID.sacrificeCounter < 12 then
EID.sacrificeCounter = EID.sacrificeCounter + 1 EID.sacrificeCounter = EID.sacrificeCounter + 1
end end