@@ -923,9 +923,13 @@ function force_calculate(card)
923923 end
924924 context .forced = true
925925 temp = {}
926- if trig then trig (true , temp , card ) end
926+ if trig then
927+ trig (true , temp , card )
928+ end
927929 local eval , post = eval_card (card , context )
928- if trig then trig (false , temp , card ) end
930+ if trig then
931+ trig (false , temp , card )
932+ end
929933 local effects = { eval }
930934 SMODS .trigger_effects (effects , card )
931935 return eval and true or post
@@ -952,7 +956,7 @@ function __individual_play(t)
952956end
953957
954958function __setting_blind (t )
955- return __context (t , { setting_blind = true })
959+ return __context (t , { setting_blind = true })
956960end
957961
958962function __poker_hand (t )
@@ -969,34 +973,38 @@ __any_suit = { other_card = {
969973Cryptid .force_contexts = {
970974 -- Vanilla Jokers (collection order)
971975 -- Page 1
972- j_joker = {__joker_main },
973- j_greedy_joker = {__individual_play , __any_suit },
974- j_lusty_joker = {__individual_play , __any_suit },
975- j_wrathful_joker = {__individual_play , __any_suit },
976- j_gluttenous_joker = {__individual_play , __any_suit },
977- j_jolly = {__joker_main , __poker_hand (" Pair" )},
978- j_zany = {__joker_main , __poker_hand (" Three of a Kind" )},
979- j_mad = {__joker_main , __poker_hand (" Two Pair" )},
980- j_crazy = {__joker_main , __poker_hand (" Straight" )},
981- j_droll = {__joker_main , __poker_hand (" Flush" )},
982- j_sly = {__joker_main , __poker_hand (" Pair" )},
983- j_wily = {__joker_main , __poker_hand (" Three of a Kind" )},
984- j_clever = {__joker_main , __poker_hand (" Two Pair" )},
985- j_devious = {__joker_main , __poker_hand (" Straight" )},
986- j_crafty = {__joker_main , __poker_hand (" Flush" )},
976+ j_joker = { __joker_main },
977+ j_greedy_joker = { __individual_play , __any_suit },
978+ j_lusty_joker = { __individual_play , __any_suit },
979+ j_wrathful_joker = { __individual_play , __any_suit },
980+ j_gluttenous_joker = { __individual_play , __any_suit },
981+ j_jolly = { __joker_main , __poker_hand (" Pair" ) },
982+ j_zany = { __joker_main , __poker_hand (" Three of a Kind" ) },
983+ j_mad = { __joker_main , __poker_hand (" Two Pair" ) },
984+ j_crazy = { __joker_main , __poker_hand (" Straight" ) },
985+ j_droll = { __joker_main , __poker_hand (" Flush" ) },
986+ j_sly = { __joker_main , __poker_hand (" Pair" ) },
987+ j_wily = { __joker_main , __poker_hand (" Three of a Kind" ) },
988+ j_clever = { __joker_main , __poker_hand (" Two Pair" ) },
989+ j_devious = { __joker_main , __poker_hand (" Straight" ) },
990+ j_crafty = { __joker_main , __poker_hand (" Flush" ) },
987991 -- Page 2
988- j_half = {__joker_main , { full_hand = {} }},
989- j_stencil = {__joker_main },
992+ j_half = { __joker_main , { full_hand = {} } },
993+ j_stencil = { __joker_main },
990994 -- Four Fingers, Mime, Credit Card
991- j_ceremonial = {__setting_blind }, -- TODO: also trigger mult, acts janky with multiple triggers
992- j_banner = {__joker_main },
993- j_mystic_summit = {__joker_main , nil , function (trigger , memory )
994- if trigger then
995- memory .discards = G .GAME .current_round .discards_left
996- G .GAME .current_round .discards_left = 0
997- else
998- G .GAME .current_round .discards_left = memory .discards
999- end end
995+ j_ceremonial = { __setting_blind }, -- TODO: also trigger mult, acts janky with multiple triggers
996+ j_banner = { __joker_main },
997+ j_mystic_summit = {
998+ __joker_main ,
999+ nil ,
1000+ function (trigger , memory )
1001+ if trigger then
1002+ memory .discards = G .GAME .current_round .discards_left
1003+ G .GAME .current_round .discards_left = 0
1004+ else
1005+ G .GAME .current_round .discards_left = memory .discards
1006+ end
1007+ end ,
10001008 },
10011009 j_marble = {__no_context , nil , function (trigger , memory , _card ) -- Doesn't play nicely, redoing from scratch
10021010 if trigger then
0 commit comments