@@ -137,7 +137,6 @@ function G.FUNCS.get_poker_hand_info(_cards)
137137 a_power = 0
138138 end
139139 end
140-
141140 if a_power > 0 then
142141 G .GAME .current_round .current_hand .cry_asc_num = a_power
143142 -- Change mult and chips colors if hand is ascended
@@ -163,6 +162,7 @@ function G.FUNCS.get_poker_hand_info(_cards)
163162 return text , loc_disp_text , poker_hands , scoring_hand , disp_text
164163end
165164function Cryptid .ascend (num ) -- edit this function at your leisure
165+ G .GAME .sunnumber = G .GAME .sunnumber or {not_modest = 0 , modest = 0 }
166166 if (Cryptid .safe_get (G , " GAME" , " current_round" , " current_hand" , " cry_asc_num" ) or 0 ) <= 0 then
167167 return num
168168 end
@@ -171,7 +171,7 @@ function Cryptid.ascend(num) -- edit this function at your leisure
171171 return num * to_big (1 + ((0.25 + G .GAME .sunnumber .modest ) * G .GAME .current_round .current_hand .cry_asc_num ))
172172 else
173173 -- Default: Chips and Mult multiplier X1.25 for every 1 Ascension power
174- return num * to_big ((1.25 + G .GAME .sunnumber .not_modest ) ^ G .GAME .current_round .current_hand .cry_asc_num )
174+ return num * to_big ((1.25 + G .GAME .sunnumber .not_modest ) ^ G .GAME .current_round .current_hand .cry_asc_num )
175175 end
176176end
177177
@@ -181,10 +181,17 @@ function Cryptid.pulse_flame(duration, intensity) -- duration is in seconds, int
181181 G .cry_flame_override [" intensity" ] = intensity or 2
182182end
183183
184+ function Cryptid .ascension_power_enabled ()
185+ if Cryptid .enable_ascension_power then return true end
186+ if (SMODS .Mods [" Cryptid" ] or {}).can_load then
187+ return Cryptid .enabled (" set_cry_poker_hand_stuff" )
188+ end
189+ end
190+
184191function Cryptid .calculate_ascension_power (hand_name , hand_cards , hand_scoring_cards , tether , bonus )
185192 bonus = bonus or 0
186193 local starting = 0
187- if Cryptid .enabled ( " set_cry_poker_hand_stuff " ) ~= true then
194+ if not Cryptid .ascension_power_enabled () then
188195 return 0
189196 end
190197 if hand_name then
@@ -236,11 +243,11 @@ function Cryptid.calculate_ascension_power(hand_name, hand_cards, hand_scoring_c
236243 end
237244 -- Get Ascension Power From Sol/Perkele (Observatory effect)
238245 if
239- G .GAME .used_vouchers .v_observatory and (next (find_joker (" cry-sunplanet" )) or next (find_joker (" cry-Perkele" )))
246+ G .GAME .used_vouchers .v_observatory and (next (SMODS . find_card (" cry-sunplanet" )) or next (SMODS . find_card (" cry-Perkele" )))
240247 then
241248 -- switch this to not use find_joker eventually please for the love of god
242- local super_entropic_local_variable_that_stores_the_amount_of_suns = # find_joker (" cry-sunplanet" )
243- + # find_joker (" cry-Perkele" )
249+ local super_entropic_local_variable_that_stores_the_amount_of_suns = # SMODS . find_card (" cry-sunplanet" )
250+ + # SMODS . find_card (" cry-Perkele" )
244251
245252 if super_entropic_local_variable_that_stores_the_amount_of_suns == 1 then
246253 bonus = bonus + 1
0 commit comments