@@ -923,8 +923,13 @@ if SMODS and SMODS.calculate_individual_effect then
923923
924924 if (key == ' e_chips' or key == ' echips' or key == ' Echip_mod' ) and amount ~= 1 then
925925 if effect .card then juice_card (effect .card ) end
926- local chips = SMODS .Scoring_Parameters [" chips" ]
927- chips :modify (chips .current ^ amount - chips .current )
926+ if SMODS .Scoring_Parameters then
927+ local chips = SMODS .Scoring_Parameters [" chips" ]
928+ chips :modify (chips .current ^ amount - chips .current )
929+ else
930+ hand_chips = mod_chips (hand_chips ^ amount )
931+ update_hand_text ({delay = 0 }, {chips = hand_chips , mult = mult })
932+ end
928933 if not effect .remove_default_message then
929934 if from_edition then
930935 card_eval_status_text (scored_card , ' jokers' , nil , percent , nil , {message = " ^" .. amount , colour = G .C .EDITION , edition = true })
@@ -941,8 +946,13 @@ if SMODS and SMODS.calculate_individual_effect then
941946
942947 if (key == ' ee_chips' or key == ' eechips' or key == ' EEchip_mod' ) and amount ~= 1 then
943948 if effect .card then juice_card (effect .card ) end
944- local chips = SMODS .Scoring_Parameters [" chips" ]
945- chips :modify (to_big (chips .current ):tetrate (amount ) - chips .current )
949+ if SMODS .Scoring_Parameters then
950+ local chips = SMODS .Scoring_Parameters [" chips" ]
951+ chips :modify (to_big (chips .current ):tetrate (amount ) - chips .current )
952+ else
953+ hand_chips = mod_chips (hand_chips :tetrate (amount ))
954+ update_hand_text ({delay = 0 }, {chips = hand_chips , mult = mult })
955+ end
946956 if not effect .remove_default_message then
947957 if from_edition then
948958 card_eval_status_text (scored_card , ' jokers' , nil , percent , nil , {message = " ^^" .. amount , colour = G .C .EDITION , edition = true })
@@ -959,8 +969,13 @@ if SMODS and SMODS.calculate_individual_effect then
959969
960970 if (key == ' eee_chips' or key == ' eeechips' or key == ' EEEchip_mod' ) and amount ~= 1 then
961971 if effect .card then juice_card (effect .card ) end
962- local chips = SMODS .Scoring_Parameters [" chips" ]
963- chips :modify (to_big (chips .current ):arrow (3 , amount ) - chips .current )
972+ if SMODS .Scoring_Parameters then
973+ local chips = SMODS .Scoring_Parameters [" chips" ]
974+ chips :modify (to_big (chips .current ):arrow (3 , amount ) - chips .current )
975+ else
976+ hand_chips = mod_chips (hand_chips :arrow (3 , amount ))
977+ update_hand_text ({delay = 0 }, {chips = hand_chips , mult = mult })
978+ end
964979 if not effect .remove_default_message then
965980 if from_edition then
966981 card_eval_status_text (scored_card , ' jokers' , nil , percent , nil , {message = " ^^^" .. amount , colour = G .C .EDITION , edition = true })
@@ -977,8 +992,13 @@ if SMODS and SMODS.calculate_individual_effect then
977992
978993 if (key == ' hyper_chips' or key == ' hyperchips' or key == ' hyperchip_mod' ) and type (amount ) == ' table' then
979994 if effect .card then juice_card (effect .card ) end
980- local chips = SMODS .Scoring_Parameters [" chips" ]
981- chips :modify (to_big (chips .current ):arrow (amount [1 ], amount [2 ]) - chips .current )
995+ if SMODS .Scoring_Parameters then
996+ local chips = SMODS .Scoring_Parameters [" chips" ]
997+ chips :modify (to_big (chips .current ):arrow (amount [1 ], amount [2 ]) - chips .current )
998+ else
999+ hand_chips = mod_chips (hand_chips :arrow (amount [1 ], amount [2 ]))
1000+ update_hand_text ({delay = 0 }, {chips = hand_chips , mult = mult })
1001+ end
9821002 if not effect .remove_default_message then
9831003 if from_edition then
9841004 card_eval_status_text (scored_card , ' jokers' , nil , percent , nil , {message = (amount [1 ] > 5 and (' {' .. amount [1 ] .. ' }' ) or string.rep (' ^' , amount [1 ])) .. amount [2 ], colour = G .C .EDITION , edition = true })
@@ -995,8 +1015,13 @@ if SMODS and SMODS.calculate_individual_effect then
9951015
9961016 if (key == ' e_mult' or key == ' emult' or key == ' Emult_mod' ) and amount ~= 1 then
9971017 if effect .card then juice_card (effect .card ) end
998- local mult = SMODS .Scoring_Parameters [" mult" ]
999- mult :modify (mult .current ^ amount - mult .current )
1018+ if SMODS .Scoring_Parameters then
1019+ local mult = SMODS .Scoring_Parameters [" mult" ]
1020+ mult :modify (mult .current ^ amount - mult .current )
1021+ else
1022+ mult = mod_mult (mult ^ amount )
1023+ update_hand_text ({delay = 0 }, {chips = hand_chips , mult = mult })
1024+ end
10001025 if not effect .remove_default_message then
10011026 if from_edition then
10021027 card_eval_status_text (scored_card , ' jokers' , nil , percent , nil , {message = " ^" .. amount .. " " .. localize (" k_mult" ), colour = G .C .EDITION , edition = true })
@@ -1013,8 +1038,13 @@ if SMODS and SMODS.calculate_individual_effect then
10131038
10141039 if (key == ' ee_mult' or key == ' eemult' or key == ' EEmult_mod' ) and amount ~= 1 then
10151040 if effect .card then juice_card (effect .card ) end
1016- local mult = SMODS .Scoring_Parameters [" mult" ]
1017- mult :modify (to_big (mult .current ):arrow (2 , amount ) - mult .current )
1041+ if SMODS .Scoring_Parameters then
1042+ local mult = SMODS .Scoring_Parameters [" mult" ]
1043+ mult :modify (to_big (mult .current ):arrow (2 , amount ) - mult .current )
1044+ else
1045+ mult = mod_mult (mult :arrow (2 , amount ))
1046+ update_hand_text ({delay = 0 }, {chips = hand_chips , mult = mult })
1047+ end
10181048 if not effect .remove_default_message then
10191049 if from_edition then
10201050 card_eval_status_text (scored_card , ' jokers' , nil , percent , nil , {message = " ^^" .. amount .. " " .. localize (" k_mult" ), colour = G .C .EDITION , edition = true })
@@ -1031,8 +1061,13 @@ if SMODS and SMODS.calculate_individual_effect then
10311061
10321062 if (key == ' eee_mult' or key == ' eeemult' or key == ' EEEmult_mod' ) and amount ~= 1 then
10331063 if effect .card then juice_card (effect .card ) end
1034- local mult = SMODS .Scoring_Parameters [" mult" ]
1035- mult :modify (to_big (mult .current ):arrow (3 , amount ) - mult .current )
1064+ if SMODS .Scoring_Parameters then
1065+ local mult = SMODS .Scoring_Parameters [" mult" ]
1066+ mult :modify (to_big (mult .current ):arrow (3 , amount ) - mult .current )
1067+ else
1068+ mult = mod_mult (mult :arrow (3 , amount ))
1069+ update_hand_text ({delay = 0 }, {chips = hand_chips , mult = mult })
1070+ end
10361071 if not effect .remove_default_message then
10371072 if from_edition then
10381073 card_eval_status_text (scored_card , ' jokers' , nil , percent , nil , {message = " ^^^" .. amount .. " " .. localize (" k_mult" ), colour = G .C .EDITION , edition = true })
@@ -1049,8 +1084,13 @@ if SMODS and SMODS.calculate_individual_effect then
10491084
10501085 if (key == ' hyper_mult' or key == ' hypermult' or key == ' hypermult_mod' ) and type (amount ) == ' table' then
10511086 if effect .card then juice_card (effect .card ) end
1052- local mult = SMODS .Scoring_Parameters [" mult" ]
1053- mult :modify (to_big (mult .current ):arrow (amount [1 ], amount [2 ]) - mult .current )
1087+ if SMODS .Scoring_Parameters then
1088+ local mult = SMODS .Scoring_Parameters [" mult" ]
1089+ mult :modify (to_big (mult .current ):arrow (amount [1 ], amount [2 ]) - mult .current )
1090+ else
1091+ mult = mod_mult (mult :arrow (amount [1 ], amount [2 ]))
1092+ update_hand_text ({delay = 0 }, {chips = hand_chips , mult = mult })
1093+ end
10541094 if not effect .remove_default_message then
10551095 if from_edition then
10561096 card_eval_status_text (scored_card , ' jokers' , nil , percent , nil , {message = ((amount [1 ] > 5 and (' {' .. amount [1 ] .. ' }' ) or string.rep (' ^' , amount [1 ])) .. amount [2 ]).. " " .. localize (" k_mult" ), colour = G .C .EDITION , edition = true })
@@ -1068,7 +1108,7 @@ if SMODS and SMODS.calculate_individual_effect then
10681108 for _ , v in ipairs ({' e_mult' , ' e_chips' , ' ee_mult' , ' ee_chips' , ' eee_mult' , ' eee_chips' , ' hyper_mult' , ' hyper_chips' ,
10691109 ' emult' , ' echips' , ' eemult' , ' eechips' , ' eeemult' , ' eeechips' , ' hypermult' , ' hyperchips' ,
10701110 ' Emult_mod' , ' Echip_mod' , ' EEmult_mod' , ' EEchip_mod' , ' EEEmult_mod' , ' EEEchip_mod' , ' hypermult_mod' , ' hyperchip_mod' }) do
1071- table.insert (SMODS .scoring_parameter_keys , v )
1111+ table.insert (SMODS .scoring_parameter_keys or SMODS . calculation_keys , v )
10721112 end
10731113
10741114 -- prvent juice animations
0 commit comments