Skip to content

Commit da4f866

Browse files
Fix Fidget spinner scaling incorrectly
1 parent c3420f1 commit da4f866

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

items/misc_joker.lua

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,16 +1939,20 @@ local fspinner = {
19391939
demicoloncompat = true,
19401940
calculate = function(self, card, context)
19411941
if context.before and not context.blueprint then
1942-
local play_more_than = (G.GAME.hands[context.scoring_name].played or 0)
1942+
local play_more_than, yes = (G.GAME.hands[context.scoring_name].played or 0), false
19431943
for k, v in pairs(G.GAME.hands) do
19441944
if k ~= context.scoring_name and v.played >= play_more_than and v.visible then
1945-
SMODS.scale_card(card, {
1946-
ref_table = card.ability.extra,
1947-
ref_value = "chips",
1948-
scalar_value = "chip_mod",
1949-
})
1945+
yes = true
19501946
end
19511947
end
1948+
if yes then
1949+
SMODS.scale_card(card, {
1950+
ref_table = card.ability.extra,
1951+
ref_value = "chips",
1952+
scalar_value = "chip_mod",
1953+
message_colour = G.C.BLUE
1954+
})
1955+
end
19521956
end
19531957
if context.joker_main and (to_big(card.ability.extra.chips) > to_big(0)) then
19541958
return {
@@ -1966,7 +1970,7 @@ local fspinner = {
19661970
ref_value = "chips",
19671971
scalar_value = "chip_mod",
19681972
message_key = "a_chips",
1969-
message_colour = G.C.BLUE,
1973+
message_colour = G.C.CHIPS,
19701974
})
19711975
return {
19721976
chip_mod = lenient_bignum(card.ability.extra.chips),

0 commit comments

Comments
 (0)