Skip to content

Commit 55bc487

Browse files
committed
paved joker fixes
- no more crash from mere existence of modded ranks - no more crash from trying to make a royal flush
1 parent e25f091 commit 55bc487

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lib/overrides.lua

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,20 +2024,16 @@ function SMODS.four_fingers()
20242024
end
20252025

20262026
function Cryptid.create_dummy_from_stone(rank)
2027-
local r = rank
2028-
rank = tonumber(rank) or ({
2029-
Ace = 14,
2030-
King = 13,
2031-
Queen = 12,
2032-
Jack = 11,
2033-
})[rank] or rank
2027+
local r = tostring(rank)
2028+
rank = SMODS.Ranks[r].id
20342029
return {
20352030
get_id = function()
20362031
return rank
20372032
end,
20382033
config = {
20392034
center = {},
20402035
},
2036+
ability = {},
20412037
base = {
20422038
id = rank,
20432039
value = rank >= 11 and "Queen" or "10",

0 commit comments

Comments
 (0)