-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathlovely.toml
68 lines (63 loc) · 2.32 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[manifest]
version = "1.0.0"
dump_lua = true
priority = 0
# Add card mult localization for default cards
[[patches]]
[patches.pattern]
target = "functions/common_events.lua"
pattern = '''elseif _c.set == 'Enhanced' then'''
position = "before"
payload = '''
if specific_vars and specific_vars.bonus_mult then
localize { type = 'other', key = 'card_extra_mult', nodes = desc_nodes, vars = { specific_vars.bonus_mult } }
end
'''
match_indent = true
overwrite = false
# Add card mult localization to mult cards specifically
[[patches]]
[patches.pattern]
target = "functions/common_events.lua"
pattern = '''if _c.effect == 'Mult Card' then loc_vars = {_c.config.mult}'''
position = "at"
payload = '''
if _c.effect == 'Mult Card' then loc_vars = {((specific_vars and specific_vars.bonus_mult) or _c.config.mult)}
'''
match_indent = true
overwrite = true
# Add card mult localization to lucky cards specifically
[[patches]]
[patches.pattern]
target = "functions/common_events.lua"
pattern = '''elseif _c.effect == 'Lucky Card' then loc_vars = {G.GAME.probabilities.normal, _c.config.mult, 5, _c.config.p_dollars, 15}'''
position = "at"
payload = '''
elseif _c.effect == 'Lucky Card' then loc_vars = {G.GAME.probabilities.normal, ((specific_vars and specific_vars.bonus_mult) or _c.config.mult), 5, _c.config.p_dollars, 15}
'''
match_indent = true
overwrite = true
# Add card mult localization for non-mult enhanced cards
[[patches]]
[patches.pattern]
target = "functions/common_events.lua"
pattern = '''elseif _c.set == 'Booster' then'''
position = "before"
payload = '''
if (_c.effect ~= 'Mult Card' and _c.effect ~= 'Lucky Card') and ((specific_vars and specific_vars.bonus_mult) or _c.config.mult) then
localize{type = 'other', key = 'card_extra_mult', nodes = desc_nodes, vars = {((specific_vars and specific_vars.bonus_mult) or _c.config.mult)}}
end
'''
match_indent = true
overwrite = false
# Add bonus mult to card ability
[[patches]]
[patches.pattern]
target = "card.lua"
pattern = '''bonus_chips = (self.ability.bonus + (self.ability.perma_bonus or 0)) > 0 and (self.ability.bonus + (self.ability.perma_bonus or 0)) or nil,'''
position = "after"
payload = '''
bonus_mult = (self.ability.mult + (self.ability.perma_mult or 0)) > 0 and (self.ability.mult + (self.ability.perma_mult or 0)) or nil
'''
match_indent = true
overwrite = false