forked from IcebergLettuce0/Plantain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlovely.toml
More file actions
133 lines (120 loc) · 2.88 KB
/
lovely.toml
File metadata and controls
133 lines (120 loc) · 2.88 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[manifest]
version = "1.0.0"
dump_lua = true
priority = 0
#cash out context for apple pie
[[patches]]
[patches.pattern]
target = "functions/button_callbacks.lua"
match_indent = true
pattern = '''G.deck:shuffle('cashout'..G.GAME.round_resets.ante)'''
position = "after"
payload = '''
for i=1, #G.jokers.cards do
eval_card(G.jokers.cards[i], {pl_cash_out = true})
end
'''
#painterly joker context
[[patches]]
[patches.pattern]
target = "card.lua"
match_indent = true
pattern = '''self.config.card = card'''
position = "before"
payload = '''
if self.config.card.suit then
if self.config.card.suit ~= card.suit then
if G.jokers and G.jokers.cards then
for i=1, #G.jokers.cards do
eval_card(G.jokers.cards[i], {pl_suit_changed = true})
end
end
end
end
'''
#lavender seal
[[patches]]
[patches.pattern]
target = "functions/state_events.lua"
match_indent = true
pattern = '''ease_discard(-1)'''
position = "at"
payload = '''
local should_ease_discard = true
for i=1, #cards do
if cards[i].seal == 'pl_lavender' and not cards[i].debuff then
should_ease_discard = false
end
end
if should_ease_discard then ease_discard(-1) end
'''
#grape soda
[[patches]]
[patches.pattern]
target = "functions/button_callbacks.lua"
match_indent = true
pattern = '''add_tag(_tag.config.ref_table)'''
position = "after"
payload = '''
if G.jokers and G.jokers.cards then
for i=1, #G.jokers.cards do
if G.jokers.cards[i].config.center.key == "j_pl_grape_soda" then
G.E_MANAGER:add_event(Event({
trigger = 'immediate',
func = function()
delay(0.3)
SMODS.calculate_context({skip_blind = true})
for i = 1, #G.GAME.tags do
G.GAME.tags[i]:apply_to_run({type = 'immediate'})
end
for i = 1, #G.GAME.tags do
if G.GAME.tags[i]:apply_to_run({type = 'new_blind_choice'}) then break end
end
return true
end
}))
_tag.children[2] = nil
_tag.children[1] = nil
return
end
end
end
'''
[[patches]]
[patches.pattern]
target = "functions/button_callbacks.lua"
match_indent = true
pattern = '''elseif e.config.id ~= G.GAME.blind_on_deck then'''
position = "before"
payload = '''
if G.GAME.pl_grape_used == G.GAME.blind_on_deck then
_tag_container.children[2] = nil
_tag_container.children[1] = nil
else
G.GAME.pl_grape_used = nil
end
'''
#lamp
[[patches]]
[patches.pattern]
target = "card.lua"
match_indent = true
pattern = '''G.CONTROLLER.locks.selling_card = true'''
position = "after"
payload = '''
for i=1, #G.jokers.cards do
if self.ability.set == 'Joker' then
eval_card(G.jokers.cards[i], {pl_selling_joker = true})
end
end
'''
#colors
[[patches]]
[patches.pattern]
target = "functions/misc_functions.lua"
match_indent = true
pattern = '''enhanced = G.C.SECONDARY_SET.Enhanced'''
position = "after"
payload = ''',
lavender = HEX('C1A1DF')
'''