Skip to content

Commit eb204f6

Browse files
authored
move XChips fix to be where the other card_eval_status_text crash fixes are
1 parent 27973f4 commit eb204f6

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

lovely.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -885,16 +885,6 @@ end
885885
'''
886886
match_indent = true
887887

888-
## Ensure SMODS XChips messages won't crash in card_eval_status_text
889-
[[patches]]
890-
[patches.pattern]
891-
target = "functions/common_events.lua"
892-
pattern = "text = localize{type='variable',key='a_xchips'..(amt<0 and '_minus' or ''),vars={math.abs(amt)}}"
893-
position = 'at'
894-
payload = "text = localize{type='variable',key='a_xchips'..(amt<to_big(0) and '_minus' or ''),vars={math.abs(amt)}}"
895-
times = 1
896-
match_indent = true
897-
898888
[[patches]]
899889
[patches.pattern]
900890
target = "functions/common_events.lua"
@@ -1418,6 +1408,15 @@ position = 'at'
14181408
payload = "text = localize{type='variable',key='a_xmult'..(to_big(amt)<to_big(0) and '_minus' or ''),vars={math.abs(amt)}}"
14191409
match_indent = true
14201410

1411+
[[patches]]
1412+
[patches.pattern]
1413+
target = "functions/common_events.lua"
1414+
pattern = "text = localize{type='variable',key='a_xchips'..(amt<0 and '_minus' or ''),vars={math.abs(amt)}}"
1415+
position = 'at'
1416+
payload = "text = localize{type='variable',key='a_xchips'..(amt<to_big(0) and '_minus' or ''),vars={math.abs(amt)}}"
1417+
times = 1
1418+
match_indent = true
1419+
14211420
[[patches]]
14221421
[patches.regex]
14231422
target = '=[SMODS _ "src/utils.lua"]'

0 commit comments

Comments
 (0)