@@ -143,6 +143,14 @@ function Card:soft_add_to_deck()
143143 if self.ability.name == 'Showman' then
144144 G.GAME.showman_count = (G.GAME.showman_count and G.GAME.showman_count + 1) or 1
145145 end
146+ if self.ability.name == 'Four Fingers' then
147+ G.GAME.exb_fingers = (G.GAME.exb_fingers and G.GAME.exb_fingers + 1) or 1
148+ exb_parse()
149+ end
150+ if self.ability.name == 'Shortcut' then
151+ G.GAME.exb_shortcuts = (G.GAME.exb_shortcuts and G.GAME.exb_shortcuts + 1) or 1
152+ exb_parse()
153+ end
146154 if self.ability.name == 'Credit Card' then
147155 G.GAME.bankrupt_at = G.GAME.bankrupt_at - self.ability.extra
148156 end
@@ -199,6 +207,14 @@ function Card:soft_remove_from_deck()
199207 if self.ability.name == 'Showman' then
200208 G.GAME.showman_count = G.GAME.showman_count - 1
201209 end
210+ if self.ability.name == 'Four Fingers' then
211+ G.GAME.exb_fingers = G.GAME.exb_fingers - 1
212+ exb_parse()
213+ end
214+ if self.ability.name == 'Shortcut' then
215+ G.GAME.exb_shortcuts = G.GAME.exb_shortcuts - 1
216+ exb_parse()
217+ end
202218 if self.ability.name == 'Credit Card' then
203219 G.GAME.bankrupt_at = G.GAME.bankrupt_at + self.ability.extra
204220 end
543559'''
544560match_indent = true
545561
546- # showman add to deck
562+
563+
564+
565+ # add to deck
547566[[patches ]]
548567[patches .pattern ]
549568target = " card.lua"
@@ -553,10 +572,18 @@ payload = '''
553572if self.ability.name == 'Showman' then
554573 G.GAME.showman_count = (G.GAME.showman_count and G.GAME.showman_count + 1) or 1
555574end
575+ if self.ability.name == 'Four Fingers' then
576+ G.GAME.exb_fingers = (G.GAME.exb_fingers and G.GAME.exb_fingers + 1) or 1
577+ exb_parse()
578+ end
579+ if self.ability.name == 'Shortcut' then
580+ G.GAME.exb_shortcuts = (G.GAME.exb_shortcuts and G.GAME.exb_shortcuts + 1) or 1
581+ exb_parse()
582+ end
556583'''
557584match_indent = true
558585
559- # showman remove from deck
586+ # remove from deck
560587[[patches ]]
561588[patches .pattern ]
562589target = " card.lua"
@@ -566,6 +593,14 @@ payload = '''
566593if self.ability.name == 'Showman' then
567594 G.GAME.showman_count = G.GAME.showman_count - 1
568595end
596+ if self.ability.name == 'Four Fingers' then
597+ G.GAME.exb_fingers = G.GAME.exb_fingers - 1
598+ exb_parse()
599+ end
600+ if self.ability.name == 'Shortcut' then
601+ G.GAME.exb_shortcuts = G.GAME.exb_shortcuts - 1
602+ exb_parse()
603+ end
569604'''
570605match_indent = true
571606
@@ -605,28 +640,9 @@ target = "game.lua"
605640pattern = ''' self.P_CENTER_POOLS = {'''
606641position = " before"
607642payload = '''
608- self.P_CENTERS.j_credit_card.blueprint_compat = true
609- self.P_CENTERS.j_chaos.blueprint_compat = true
610- self.P_CENTERS.j_delayed_grat.blueprint_compat = true
611- self.P_CENTERS.j_egg.blueprint_compat = true
612- self.P_CENTERS.j_sixth_sense.blueprint_compat = true
613- self.P_CENTERS.j_cloud_9.blueprint_compat = true
614- self.P_CENTERS.j_rocket.blueprint_compat = true
615- self.P_CENTERS.j_midas_mask.blueprint_compat = true
616- self.P_CENTERS.j_gift.blueprint_compat = true
617- self.P_CENTERS.j_turtle_bean.blueprint_compat = true
618- self.P_CENTERS.j_to_the_moon.blueprint_compat = true
619- self.P_CENTERS.j_juggler.blueprint_compat = true
620- self.P_CENTERS.j_drunkard.blueprint_compat = true
621- self.P_CENTERS.j_golden.blueprint_compat = true
622- self.P_CENTERS.j_trading.blueprint_compat = true
623- self.P_CENTERS.j_mr_bones.blueprint_compat = true
624- self.P_CENTERS.j_troubadour.blueprint_compat = true
625- self.P_CENTERS.j_ring_master.blueprint_compat = true
626- self.P_CENTERS.j_merry_andy.blueprint_compat = true
627- self.P_CENTERS.j_oops.blueprint_compat = true
628- self.P_CENTERS.j_invisible.blueprint_compat = true
629- self.P_CENTERS.j_satellite.blueprint_compat = true
630- self.P_CENTERS.j_chicot.blueprint_compat = true
643+ local exb_overrides = {'j_four_fingers', 'j_credit_card', 'j_chaos', 'j_delayed_grat', 'j_egg', 'j_sixth_sense', 'j_shortcut', 'j_cloud_9', 'j_rocket', 'j_midas_mask', 'j_gift', 'j_turtle_bean', 'j_to_the_moon', 'j_juggler', 'j_drunkard', 'j_golden', 'j_trading', 'j_mr_bones', 'j_troubadour', 'j_ring_master', 'j_merry_andy', 'j_oops', 'j_invisible', 'j_satellite', 'j_chicot'}
644+ for i = 1, #exb_overrides do
645+ self.P_CENTERS[exb_overrides[i]].blueprint_compat = true
646+ end
631647'''
632648match_indent = true
0 commit comments