Skip to content

Commit 3fd1746

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent c7c3699 commit 3fd1746

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
@@ -162,7 +162,7 @@ function G.FUNCS.get_poker_hand_info(_cards)
162162
return text, loc_disp_text, poker_hands, scoring_hand, disp_text
163163
end
164164
function Cryptid.ascend(num) -- edit this function at your leisure
165-
G.GAME.sunnumber = G.GAME.sunnumber or {not_modest = 0, modest = 0}
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
176176
end
177177

@@ -182,7 +182,9 @@ function Cryptid.pulse_flame(duration, intensity) -- duration is in seconds, int
182182
end
183183

184184
function Cryptid.ascension_power_enabled()
185-
if Cryptid.enable_ascension_power then return true end
185+
if Cryptid.enable_ascension_power then
186+
return true
187+
end
186188
if (SMODS.Mods["Cryptid"] or {}).can_load then
187189
return Cryptid.enabled("set_cry_poker_hand_stuff")
188190
end
@@ -243,7 +245,8 @@ function Cryptid.calculate_ascension_power(hand_name, hand_cards, hand_scoring_c
243245
end
244246
-- Get Ascension Power From Sol/Perkele (Observatory effect)
245247
if
246-
G.GAME.used_vouchers.v_observatory and (next(SMODS.find_card("cry-sunplanet")) or next(SMODS.find_card("cry-Perkele")))
248+
G.GAME.used_vouchers.v_observatory
249+
and (next(SMODS.find_card("cry-sunplanet")) or next(SMODS.find_card("cry-Perkele")))
247250
then
248251
-- switch this to not use find_joker eventually please for the love of god
249252
local super_entropic_local_variable_that_stores_the_amount_of_suns = #SMODS.find_card("cry-sunplanet")

0 commit comments

Comments
 (0)