@@ -1387,42 +1387,26 @@ match_indent = true
13871387[[patches ]]
13881388[patches .pattern ]
13891389target = ' functions/common_events.lua'
1390- pattern = " text = localize{type='variable',key='a_chips'..( amt<0 and '_minus' or ''),vars={math.abs( amt)}} "
1390+ pattern = " if amt > 0 or amt < 0 then "
13911391position = ' at'
1392- payload = " text = localize{type='variable',key='a_chips'..( to_big(amt)< to_big(0) and '_minus' or ''),vars={math.abs (amt)}} "
1392+ payload = " if to_big(amt) > to_big(0) or to_big (amt) < to_big(0) then "
13931393match_indent = true
13941394
13951395[[patches ]]
1396- [patches .pattern ]
1397- target = ' functions/common_events.lua'
1398- pattern = " text = localize{type='variable',key='a_mult'..(amt<0 and '_minus' or ''),vars={math.abs(amt)}}"
1399- position = ' at'
1400- payload = " text = localize{type='variable',key='a_mult'..(to_big(amt)<to_big(0) and '_minus' or ''),vars={math.abs(amt)}}"
1401- match_indent = true
1402-
1403- [[patches ]]
1404- [patches .pattern ]
1405- target = ' functions/common_events.lua'
1406- pattern = " text = localize{type='variable',key='a_xmult'..(amt<0 and '_minus' or ''),vars={math.abs(amt)}}"
1407- position = ' at'
1408- payload = " text = localize{type='variable',key='a_xmult'..(to_big(amt)<to_big(0) and '_minus' or ''),vars={math.abs(amt)}}"
1409- match_indent = true
1410-
1411- [[patches ]]
1412- [patches .pattern ]
1396+ [patches .regex ]
14131397target = " functions/common_events.lua"
1414- pattern = " text = localize{type='variable',key='a_xchips'..( amt<0 and '_minus' or ''),vars={math.abs(amt)}} "
1398+ pattern = ' amt<0'
14151399position = ' at'
1416- payload = " text = localize{type='variable',key='a_xchips'..(to_big(amt)<to_big(0) and '_minus' or ''),vars={math.abs(amt)}}"
1417- times = 1
1418- match_indent = true
1400+ payload = ' to_big(amt)<to_big(0)'
1401+ times = 5
14191402
14201403[[patches ]]
14211404[patches .regex ]
14221405target = ' =[SMODS _ "src/utils.lua"]'
1423- pattern = ' key = amount > 0'
1406+ pattern = ' = amount > 0'
14241407position = ' at'
1425- payload = ' key = to_big(amount) > to_big(0)'
1408+ payload = ' = to_big(amount) > to_big(0)'
1409+ times = 4
14261410
14271411# Fully split up evaluate_play
14281412# This allows mods' lovely patches to still work fine while also letting Talisman's abort feature work
0 commit comments