Skip to content

Commit 007ea09

Browse files
authored
Add Perkele Part 4
1 parent 9a13d0c commit 007ea09

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/ascended.lua

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,15 @@ function Cryptid.calculate_ascension_power(hand_name, hand_cards, hand_scoring_c
221221
if G.GAME.cry_exploit_override then
222222
bonus = bonus + 1
223223
end
224-
-- Get Ascension Power From Sol (Observatory effect)
225-
if G.GAME.used_vouchers.v_observatory and next(find_joker("cry-sunplanet")) then
226-
if #find_joker("cry-sunplanet") == 1 then
224+
-- Get Ascension Power From Sol/Perkele (Observatory effect)
225+
if G.GAME.used_vouchers.v_observatory and (next(find_joker("cry-sunplanet")) or next(find_joker("cry-Perkele"))) then
226+
-- switch this to not use find_joker eventually please for the love of god
227+
local super_entropic_local_variable_that_stores_the_amount_of_suns = #find_joker("cry-sunplanet") + #find_joker("cry-Perkele")
228+
229+
if super_entropic_local_variable_that_stores_the_amount_of_suns == 1 then
227230
bonus = bonus + 1
228231
else
229-
bonus = bonus + Cryptid.nuke_decimals(Cryptid.funny_log(2, #find_joker("cry-sunplanet") + 1), 2)
232+
bonus = bonus + Cryptid.nuke_decimals(Cryptid.funny_log(2, super_entropic_local_variable_that_stores_the_amount_of_suns + 1), 2)
230233
end
231234
end
232235
local final = math.max(0, starting + bonus)

0 commit comments

Comments
 (0)