Skip to content

Commit 2e817e7

Browse files
Merge pull request #387 from TheRealNova422-real/patch-1
fixed a joker_display.lua crash
2 parents 8de1a72 + 7b62e6b commit 2e817e7

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)