Fixes Sacrifice room payout display not changing
This commit is contained in:
1 parent
b67c7fced1
commit
aecd253c5e
1 file changed
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user