@@ -1217,22 +1217,7 @@ SMODS.smart_level_up_hand = function(card, hand, instant, amount)
12171217 -- Level ups in context.before on another hand AND any level up during scoring
12181218 -- -> restore the current chips/mult
12191219 -- Level ups outside anything -> always update to empty chips/mult
1220- local vals_after_level
1221- if SMODS .displaying_scoring and not (SMODS .displayed_hand == hand ) then
1222- vals_after_level = copy_table (G .GAME .current_round .current_hand )
1223- local text ,disp_text ,_ ,_ ,_ = G .FUNCS .get_poker_hand_info (G .play .cards )
1224- vals_after_level .handname = disp_text or ' '
1225- vals_after_level .level = (G .GAME .hands [text ] or {}).level or ' '
1226- vals_after_level .chips = number_format (hand_chips ) or 0
1227- vals_after_level .mult = number_format (mult ) or 0
1228- end
1229- if not (instant or SMODS .displayed_hand == hand ) then
1230- update_hand_text ({sound = ' button' , volume = 0.7 , pitch = 0.8 , delay = 0.3 }, {handname = localize (hand , ' poker_hands' ),chips = G .GAME .hands [hand ].chips , mult = G .GAME .hands [hand ].mult , level = G .GAME .hands [hand ].level })
1231- end
12321220 level_up_hand (card , hand , instant , (type (amount ) == ' number' or type (amount ) == ' table' ) and amount or 1 )
1233- if not (instant or SMODS .displayed_hand == hand ) then
1234- update_hand_text ({sound = ' button' , volume = 0.7 , pitch = 1.1 , delay = 0 }, vals_after_level or {mult = 0 , chips = 0 , handname = ' ' , level = ' ' })
1235- end
12361221end
12371222
12381223-- This function handles the calculation of each effect returned to evaluate play.
@@ -3271,6 +3256,7 @@ function SMODS.upgrade_poker_hands(args)
32713256 -- args.parameters
32723257 -- args.func
32733258 -- args.level_up
3259+ -- args.instant
32743260 -- args.from
32753261
32763262 local function get_keys (t )
@@ -3316,10 +3302,10 @@ function SMODS.upgrade_poker_hands(args)
33163302 update_hand_text ({nopulse = nil , delay = 0 }, {[name ] = p .current })
33173303 end
33183304 end
3319- for _ , parameter in ipairs (args .parameters ) do
3305+ for i , parameter in ipairs (args .parameters ) do
33203306 G .GAME .hands [hand ][parameter ] = args .func (G .GAME .hands [hand ][parameter ], hand , parameter )
33213307 if not instant then
3322- G .E_MANAGER :add_event (Event ({trigger = ' after' , delay = 0.9 , func = function ()
3308+ G .E_MANAGER :add_event (Event ({trigger = ' after' , delay = i == 1 and 0.2 or 0.9 , func = function ()
33233309 play_sound (' tarot1' )
33243310 if args .from then args .from :juice_up (0.8 , 0.5 ) end
33253311 G .TAROT_INTERRUPT_PULSE = true
0 commit comments