Skip to content

Commit 49e0950

Browse files
committed
Globally define discard_cards_from_highlighted
1 parent 76e7b8a commit 49e0950

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lovely/code.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,16 @@ else
280280
draw_card(G.cry_runarea,G.hand, i*100/#G.cry_runarea.cards,'up', true)
281281
end
282282
end
283-
G.FUNCS.draw_from_hand_to_run = function(e) -- might as well just slap this here
283+
'''
284+
match_indent = true
285+
286+
[[patches]]
287+
[patches.pattern]
288+
target = "functions/state_events.lua"
289+
pattern = '''G.FUNCS.draw_from_deck_to_hand = function(e)'''
290+
position = "before"
291+
payload = '''
292+
G.FUNCS.draw_from_hand_to_run = function(e)
284293
local hand_count = #G.hand.cards
285294
for i=1, hand_count do --draw cards from deck
286295
draw_card(G.hand, G.cry_runarea, i*100/hand_count,'down', nil, nil, 0.08)

0 commit comments

Comments
 (0)