Skip to content

Commit 8fc0744

Browse files
committed
try fix sound_conditionals crash
1 parent 52c3af9 commit 8fc0744

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lovely/card_ui.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pattern = "elseif self.sprite_facing == 'back' then"
6666
position = "before"
6767
payload = '''
6868
-- Lobotomy Corporation card modifiers
69-
for _, v in ipairs(G.lobc_global_modifiers) do
69+
for _, v in ipairs(G.lobc_global_modifiers or {}) do
7070
if self.ability[v] then
7171
G.lobc_shared_modifiers[v].role.draw_major = self
7272
G.lobc_shared_modifiers[v]:draw_shader('dissolve', nil, nil, nil, self.children.center)

lovely/global_vars.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[manifest]
22
version = "1.0.0"
33
dump_lua = true
4-
priority = 1
4+
priority = 10
55

66
[[patches]]
77
[patches.pattern]

sound_conditionals.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ return {
116116
key = "music_abno_choice",
117117
select_music_track = function()
118118
if config.no_music then return false end
119-
for _, v in pairs(G.lobc_global_meltdowns) do
119+
for _, v in pairs(G.lobc_global_meltdowns or {}) do
120120
if v ~= "gebura" and G.GAME and G.GAME.modifiers["lobc_"..v] then return false end
121121
end
122122
return (G.STATE == G.STATES.SMODS_BOOSTER_OPENED and SMODS.OPENED_BOOSTER.config.center.group_key == "k_lobc_extraction_pack") and 1e4 or false

0 commit comments

Comments
 (0)