Skip to content

Commit e4b8760

Browse files
Merge pull request #742 from Ardub23/patch-1
Support ascending Bunco's spectrum hands
2 parents b16314e + e4defed commit e4b8760

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/ascended.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function G.FUNCS.get_poker_hand_info(_cards)
4040
end
4141
end
4242
if G.SETTINGS.language == "en-us" then
43-
if #scoring_hand > 5 and (text == "Flush Five" or text == "Five of a Kind") then
43+
if #scoring_hand > 5 and (text == "Flush Five" or text == "Five of a Kind" or text == "bunc_Spectrum Five") then
4444
local rank_array = {}
4545
local county = 0
4646
for i = 1, #scoring_hand do
@@ -110,7 +110,7 @@ function G.FUNCS.get_poker_hand_info(_cards)
110110
return str_ret
111111
end
112112
-- text gets stupid small at 100+ anyway
113-
loc_disp_text = (text == "Flush Five" and "Flush " or "")
113+
loc_disp_text = (text == "Flush Five" and "Flush " or text == "bunc_Spectrum Five" and "Spectrum " or "")
114114
.. (
115115
(county < 1000 and create_num_chunk(county) or "Thousand")
116116
.. (text == "Five of a Kind" and " of a Kind" or "")
@@ -143,6 +143,10 @@ function G.FUNCS.get_poker_hand_info(_cards)
143143
["cry_Declare2"] = G.GAME.hands.cry_Declare2
144144
and G.GAME.hands.cry_Declare2.declare_cards
145145
and #G.GAME.hands.cry_Declare2.declare_cards,
146+
["bunc_Spectrum"] = 5,
147+
["bunc_Straight Spectrum"] = 5,
148+
["bunc_Spectrum House"] = 5,
149+
["bunc_Spectrum Five"] = 5,
146150
}
147151
-- this is where all the logic for asc hands is. currently it's very simple but if you want more complex logic, here's the place to do it
148152
if hand_table[text] and Cryptid.enabled("set_cry_poker_hand_stuff") == true then

0 commit comments

Comments
 (0)