Skip to content

Commit bd49351

Browse files
committed
ascended hands api
Cryptid.ascension_numbers[handname] can be given a function that returns how many cards that hand needs to be formed usually
1 parent dd1ce69 commit bd49351

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/ascended.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,18 @@ function G.FUNCS.get_poker_hand_info(_cards)
147147
["bunc_Straight Spectrum"] = 5,
148148
["bunc_Spectrum House"] = 5,
149149
["bunc_Spectrum Five"] = 5,
150+
["spa_Spectrum"] = SpectrumAPI and SpectrumAPI.configuration.misc.four_fingers_spectrums and next(SMODS.find_card("j_four_fingers")) and Cryptid.gameset() ~= "modest" and 4 or 5,
151+
["spa_Straight_Spectrum"] = SpectrumAPI and SpectrumAPI.configuration.misc.four_fingers_spectrums and next(SMODS.find_card("j_four_fingers")) and Cryptid.gameset() ~= "modest" and 4 or 5,
152+
["spa_Spectrum_House"] = SpectrumAPI and SpectrumAPI.configuration.misc.four_fingers_spectrums and next(SMODS.find_card("j_four_fingers")) and Cryptid.gameset() ~= "modest" and 4 or 5,
153+
["spa_Spectrum_Five"] = SpectrumAPI and SpectrumAPI.configuration.misc.four_fingers_spectrums and next(SMODS.find_card("j_four_fingers")) and Cryptid.gameset() ~= "modest" and 4 or 5,
154+
["spa_Flush_Spectrum"] = SpectrumAPI and SpectrumAPI.configuration.misc.four_fingers_spectrums and next(SMODS.find_card("j_four_fingers")) and Cryptid.gameset() ~= "modest" and 4 or 5,
155+
["spa_Straight_Flush_Spectrum"] = SpectrumAPI and SpectrumAPI.configuration.misc.four_fingers_spectrums and next(SMODS.find_card("j_four_fingers")) and Cryptid.gameset() ~= "modest" and 4 or 5,
156+
["spa_Flush_Spectrum_House"] = SpectrumAPI and SpectrumAPI.configuration.misc.four_fingers_spectrums and next(SMODS.find_card("j_four_fingers")) and Cryptid.gameset() ~= "modest" and 4 or 5,
157+
["spa_Flush_Spectrum_Five"] = SpectrumAPI and SpectrumAPI.configuration.misc.four_fingers_spectrums and next(SMODS.find_card("j_four_fingers")) and Cryptid.gameset() ~= "modest" and 4 or 5
150158
}
159+
if not hand_table[text] and Cryptid.ascension_numbers[text] then
160+
hand_table[text] = Cryptid.ascension_numbers[text]()
161+
end
151162
-- 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
152163
if hand_table[text] and Cryptid.enabled("set_cry_poker_hand_stuff") == true then
153164
G.GAME.current_round.current_hand.cry_asc_num = G.GAME.used_vouchers.v_cry_hyperspacetether

lovely/lib_misc.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ Cryptid.aliases = {}
134134
Cryptid.pointerblist = {}
135135
Cryptid.pointerblistrarity = {}
136136
Cryptid.mod_gameset_whitelist = {}
137+
Cryptid.ascension_numbers = {}
137138
138139
Cryptid.pin_debuff = {}
139140
Cryptid.circus_rarities = {

0 commit comments

Comments
 (0)