Skip to content

Commit 27753c8

Browse files
committed
fix music transition for ordeals, fix passive saving
1 parent d33d1d8 commit 27753c8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

LobotomyCorp.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,12 @@ function Blind.set_blind(self, blind, reset, silent)
650650
self.children.alert = nil
651651
end
652652
end
653-
return set_blindref(self, blind, reset, silent)
653+
set_blindref(self, blind, reset, silent)
654+
if not reset and blind and (blind.time == "dusk" or blind.time == "midnight") then
655+
G.E_MANAGER:add_event(Event({trigger = 'before', func = function()
656+
lobc_restart_music()
657+
return true end }))
658+
end
654659
end
655660

656661
-- Phase bosses
@@ -865,6 +870,7 @@ function Blind.load(self, blindTable)
865870
self.lobc_original_blind = blindTable.lobc_original_blind
866871
self.lobc_current_effect = blindTable.lobc_current_effect
867872
self.lobc_has_sold_joker = blindTable.lobc_has_sold_joker
873+
self.passives = blindTable.passives
868874
blind_loadref(self, blindTable)
869875
end
870876

0 commit comments

Comments
 (0)