Skip to content

Commit 7b62e6b

Browse files
fixed a joker_display.lua crash
https://discord.com/channels/1264429948970733782/1330213401674387466/1338654806876622849 this crash, also probably happens with gold joker, should both be fixed with this
1 parent 8de1a72 commit 7b62e6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

items/joker_display.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ if JokerDisplay then
808808
},
809809
calc_function = function(card)
810810
local bonus = math.max(0, math.floor(0.01 * card.ability.extra.percent * (G.GAME.dollars or 1)))
811-
card.joker_display_values.dollars = bonus and bonus > 0 and bonus or 0
811+
card.joker_display_values.dollars = bonus and bonus > to_big(0) and bonus or 0
812812
card.joker_display_values.localized_text = "(" .. localize("k_round") .. ")"
813813
end,
814814
}
@@ -1544,7 +1544,7 @@ if JokerDisplay then
15441544
},
15451545
calc_function = function(card)
15461546
local bonus = math.max(0, math.floor(0.01 * card.ability.extra.percent * (G.GAME.dollars or 0)))
1547-
card.joker_display_values.dollars = bonus and bonus > 0 and bonus or 0
1547+
card.joker_display_values.dollars = bonus and bonus > to_big(0) and bonus or 0
15481548
card.joker_display_values.localized_text = "(" .. localize("k_round") .. ")"
15491549
end,
15501550
}

0 commit comments

Comments
 (0)