Skip to content

Commit 970f720

Browse files
committed
2 parents a271068 + 38c0cec commit 970f720

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

lovely/booster.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,4 +349,19 @@ target = 'card.lua'
349349
match_indent = true
350350
position = 'after'
351351
pattern = '''if self.shop_voucher then G.GAME.current_round.voucher = nil end'''
352-
payload = '''G.STATE = G.STATES.SMODS_REDEEM_VOUCHER'''
352+
payload = '''G.STATE = G.STATES.SMODS_REDEEM_VOUCHER'''
353+
354+
# G.FUNCS.use_card()
355+
# Consumables in areas other than the consumable don't count
356+
# as picking an item in boosters when used
357+
[[patches]]
358+
[patches.pattern]
359+
target = 'functions/button_callbacks.lua'
360+
match_indent = true
361+
position = 'at'
362+
pattern = '''
363+
if area == G.consumeables then
364+
'''
365+
payload = '''
366+
if area ~= G.pack_cards then
367+
'''

lovely/fixes.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,4 +812,32 @@ function pseudoshuffle(list, seed)
812812
'''
813813
payload = '''
814814
if seed and type(seed) == "string" then seed = pseudoseed(seed) end
815+
'''
816+
817+
## Add initial playing cards to deck when starting run
818+
# card_from_control
819+
[[patches]]
820+
[patches.pattern]
821+
target = 'functions/misc_functions.lua'
822+
match_indent = true
823+
position = 'after'
824+
pattern = '''
825+
local _card = Card(G.deck.T.x, G.deck.T.y, G.CARD_W, G.CARD_H, G.P_CARDS[control.s..'_'..control.r], G.P_CENTERS[control.e or 'c_base'], {playing_card = G.playing_card})
826+
if control.d then _card:set_edition({[control.d] = true}, true, true) end
827+
if control.g then _card:set_seal(control.g, true, true) end
828+
'''
829+
payload = '''
830+
_card:add_to_deck()
831+
'''
832+
## Add cards created by create_playing_card to deck
833+
[[patches]]
834+
[patches.pattern]
835+
target = 'functions/common_events.lua'
836+
match_indent = true
837+
position = 'after'
838+
pattern = '''
839+
local card = Card(_area.T.x, _area.T.y, G.CARD_W, G.CARD_H, card_init.front, card_init.center, {playing_card = G.playing_card})
840+
'''
841+
payload = '''
842+
card:add_to_deck()
815843
'''

version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return "1.0.0~BETA-1202b-STEAMODDED"
1+
return "1.0.0~BETA-1203a-STEAMODDED"

0 commit comments

Comments
 (0)