-
Notifications
You must be signed in to change notification settings - Fork 1
/
lovely.toml
37 lines (35 loc) · 952 Bytes
/
lovely.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[manifest]
version = "1.0.0"
dump_lua = true
priority = 0
# The Infinite - Ban retriggering of cards
[[patches]]
[patches.pattern]
target = "functions/state_events.lua"
pattern = "reps[#reps+1] = eval"
position = "at"
payload = '''
if G.GAME.blind.name == "bl_mathbl_infinite" and not G.GAME.blind.disabled then
G.GAME.blind:wiggle()
G.GAME.blind.triggered = true
else
reps[#reps+1] = eval
end
'''
match_indent = true
overwrite = true
# I [discord user elbebeta] learned how to do regex patches for this (fixes syntax for last 3 patches)
[[patches]]
[patches.regex]
target = "functions/state_events.lua"
pattern = '''for h[ ]*\= 1, eval\.jokers\.repetitions do
[ \t]*if G\.GAME\.blind.name \=\= "bl_mathbl_infinite" and not G\.GAME\.blind\.disabled then
[ \t]*G\.GAME\.blind:wiggle\(\)
[ \t]*G\.GAME\.blind\.triggered \= true
[ \t]*else
[ \t]*reps\[#reps\+1\] \= eval
[ \t]*end
[ \t]*end
[ \t]*end'''
position = "after"
payload = " end})"