Skip to content

Commit e0ac1e9

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent 4d283c0 commit e0ac1e9

File tree

4 files changed

+33
-21
lines changed

4 files changed

+33
-21
lines changed

items/epic.lua

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -208,27 +208,41 @@ local googol_play = {
208208
cost = 15,
209209
copies = 1,
210210
rounds = 3,
211-
rounds_left = 3
211+
rounds_left = 3,
212212
},
213213
mainline = { copies = 2, rounds = 3, rounds_left = 3 },
214214
},
215215
loc_vars = function(self, info_queue, center)
216-
return { key = Cryptid.gameset_loc(self, { modest = "balanced" }), vars = { center.ability.copies, center.ability.rounds, center.ability.rounds_left } }
216+
return {
217+
key = Cryptid.gameset_loc(self, { modest = "balanced" }),
218+
vars = { center.ability.copies, center.ability.rounds, center.ability.rounds_left },
219+
}
217220
end,
218221
calculate = function(self, card, context)
219222
local gameset = Card.get_gameset(card)
220223
if context.after and not context.retrigger_joker and not context.blueprint then
221224
card.ability.rounds_left = card.ability.rounds_left - 1
222225
if to_big(card.ability.rounds_left) <= to_big(0) then
223-
local eval = function(card) return not card.REMOVED end
226+
local eval = function(card)
227+
return not card.REMOVED
228+
end
224229
juice_card_until(self, eval, true)
225230
end
226231
return {
227-
message = to_big(card.ability.rounds_left) > to_big(0) and ((card.ability.rounds-card.ability.rounds_left)..'/'..card.ability.rounds) or localize('k_active_ex'),
228-
colour = G.C.FILTER
232+
message = to_big(card.ability.rounds_left) > to_big(0)
233+
and ((card.ability.rounds - card.ability.rounds_left) .. "/" .. card.ability.rounds)
234+
or localize("k_active_ex"),
235+
colour = G.C.FILTER,
229236
}
230237
end
231-
if (context.selling_self and not context.retrigger_joker and not context.blueprint and to_big(card.ability.rounds_left) <= to_big(0)) or context.forcetrigger then
238+
if
239+
(
240+
context.selling_self
241+
and not context.retrigger_joker
242+
and not context.blueprint
243+
and to_big(card.ability.rounds_left) <= to_big(0)
244+
) or context.forcetrigger
245+
then
232246
local jokers = {}
233247
for i = 1, #G.jokers.cards do
234248
if G.jokers.cards[i] ~= card then
@@ -419,7 +433,11 @@ local canvas = {
419433
blueprint_compat = true,
420434
atlas = "atlasepic",
421435
calculate = function(self, card, context)
422-
if context.retrigger_joker_check and not context.retrigger_joker and context.other_card == G.jokers.cards[1] then
436+
if
437+
context.retrigger_joker_check
438+
and not context.retrigger_joker
439+
and context.other_card == G.jokers.cards[1]
440+
then
423441
local num_retriggers = 0
424442
local rarities = {}
425443
for i = 1, #G.jokers.cards do
@@ -910,7 +928,7 @@ local boredom = {
910928
local cards = {}
911929
for i, v in pairs(G.jokers.cards) do
912930
if v.config.center.key ~= "j_cry_boredom" then
913-
cards[#cards+1] = v
931+
cards[#cards + 1] = v
914932
end
915933
end
916934
local joker = pseudorandom_element(cards, pseudoseed("cry_boredom_joker"))
@@ -999,16 +1017,11 @@ local number_blocks = {
9991017
}
10001018
end,
10011019
calculate = function(self, card, context)
1002-
if
1003-
context.after
1004-
and not context.blueprint
1005-
and not context.before
1006-
and not context.after
1007-
then
1020+
if context.after and not context.blueprint and not context.before and not context.after then
10081021
for i, v in pairs(G.hand.cards) do
10091022
if v:get_id() == G.GAME.current_round.cry_nb_card.id and not v.debuff then
10101023
card.ability.extra.money =
1011-
lenient_bignum(to_big(card.ability.extra.money) + card.ability.extra.money_mod)
1024+
lenient_bignum(to_big(card.ability.extra.money) + card.ability.extra.money_mod)
10121025
card_eval_status_text(card, "extra", nil, nil, nil, { message = localize("k_upgrade_ex") })
10131026
return nil, true
10141027
end

items/misc_joker.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,9 +1269,8 @@ local compound_interest = {
12691269
end,
12701270
cry_calc_interest = function(self, card, interest)
12711271
local old = lenient_bignum(card.ability.extra.percent)
1272-
card.ability.extra.percent =
1273-
lenient_bignum(to_big(card.ability.extra.percent) + card.ability.extra.percent_mod)
1274-
return (1+old/100) * interest
1272+
card.ability.extra.percent = lenient_bignum(to_big(card.ability.extra.percent) + card.ability.extra.percent_mod)
1273+
return (1 + old / 100) * interest
12751274
end,
12761275
cry_credits = {
12771276
idea = {

lib/misc.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ function Cryptid.declare_hand_ascended_counter(hand, declarehand)
14351435
end
14361436

14371437
function Cryptid.get_interest(add_rows)
1438-
local interest = math.min(math.floor(G.GAME.dollars/5), G.GAME.interest_cap/5)
1438+
local interest = math.min(math.floor(G.GAME.dollars / 5), G.GAME.interest_cap / 5)
14391439
interst = interest * G.GAME.interest_amount
14401440
for _, a in pairs(SMODS.get_card_areas("jokers")) do
14411441
for i, c in pairs(a.cards) do
@@ -1446,4 +1446,4 @@ function Cryptid.get_interest(add_rows)
14461446
end
14471447
interest = interest * (G.GAME.cry_payload or 1)
14481448
return interest
1449-
end
1449+
end

localization/en-us.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ return {
10431043
"a {C:attention}#2#",
10441044
},
10451045
},
1046-
j_cry_googol_play= {
1046+
j_cry_googol_play = {
10471047
name = "Googol Play Card",
10481048
text = {
10491049
"After {C:attention}#2#{}{C:inactive}[#3#] rounds Sell this card to create",

0 commit comments

Comments
 (0)