Skip to content

Commit 840c2e2

Browse files
committed
smods stuff
1 parent d24022c commit 840c2e2

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

lib/overrides.lua

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,8 +2116,7 @@ if SMODS and SMODS.Mods and (not SMODS.Mods.Talisman or not SMODS.Mods.Talisman.
21162116
juice_card(effect.card)
21172117
end
21182118
local chips = SMODS.Scoring_Parameters["chips"]
2119-
chips.current = mod_chips(chips.current ^ amount)
2120-
update_hand_text({ delay = 0 }, { chips = chips.current })
2119+
chips:modify((chips.current ^ amount) - chips.current)
21212120
if not effect.remove_default_message then
21222121
if from_edition then
21232122
card_eval_status_text(
@@ -2150,8 +2149,7 @@ if SMODS and SMODS.Mods and (not SMODS.Mods.Talisman or not SMODS.Mods.Talisman.
21502149
juice_card(effect.card)
21512150
end
21522151
local mult = SMODS.Scoring_Parameters["mult"]
2153-
mult.current = mod_mult(mult.current ^ amount)
2154-
update_hand_text({ delay = 0 }, { mult = mult.current })
2152+
mult:modify((mult.current ^ amount) - mult.current)
21552153
if not effect.remove_default_message then
21562154
if from_edition then
21572155
card_eval_status_text(
@@ -2192,16 +2190,16 @@ if SMODS and SMODS.Mods and (not SMODS.Mods.Talisman or not SMODS.Mods.Talisman.
21922190
table.insert(SMODS.calculation_keys, v)
21932191
end
21942192
end
2195-
function to_number(a)
2193+
to_number = to_number or function(a)
21962194
return a
21972195
end
2198-
function to_big(a)
2196+
to_big = to_big or function(a)
21992197
return a
22002198
end
2201-
function lenient_bignum(a)
2199+
lenient_bignum = lenient_bignum or function(a)
22022200
return a
22032201
end
2204-
function is_number(x)
2202+
is_number = is_number or function(x)
22052203
return type(x) == "number"
22062204
end
22072205
end

0 commit comments

Comments
 (0)