Skip to content

Commit 4fd8d1e

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent 2a3fc18 commit 4fd8d1e

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

items/m.lua

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ local bonk = {
677677
local msg = SMODS.scale_card(card, {
678678
ref_table = card.ability.extra,
679679
ref_value = "chips",
680-
scalar_value = "bonus"
680+
scalar_value = "bonus",
681681
})
682682
if not msg or type("msg") == "string" then
683683
card_eval_status_text(card, "extra", nil, nil, nil, {
@@ -730,10 +730,10 @@ local bonk = {
730730
end
731731
if context.forcetrigger then
732732
local msg = SMODS.scale_card(card, {
733-
ref_table = card.ability.extra,
734-
ref_value = "chips",
735-
scalar_value = "bonus"
736-
})
733+
ref_table = card.ability.extra,
734+
ref_value = "chips",
735+
scalar_value = "bonus",
736+
})
737737
return {
738738
message = localize({
739739
type = "variable",
@@ -1231,7 +1231,8 @@ local function virgoJollies(card)
12311231
func = function()
12321232
local summon = lenient_bignum(
12331233
math.floor(
1234-
(to_big(card.ability.extra_value) + to_big(card.cost/2)) / to_big(card.ability.extra.bonus)
1234+
(to_big(card.ability.extra_value) + to_big(card.cost / 2))
1235+
/ to_big(card.ability.extra.bonus)
12351236
)
12361237
)
12371238
if summon == nil or to_big(summon) < to_big(1) then
@@ -1309,7 +1310,7 @@ local virgo = {
13091310
local msg = SMODS.scale_card(card, {
13101311
ref_table = card.ability.extra,
13111312
ref_value = "extra_value",
1312-
scalar_value = "bonus"
1313+
scalar_value = "bonus",
13131314
})
13141315
card:set_cost()
13151316
if not msg or type(msg) == "string" then
@@ -1318,16 +1319,14 @@ local virgo = {
13181319
colour = G.C.MONEY,
13191320
})
13201321
end
1321-
1322-
elseif (context.selling_self and not context.blueprint and not context.retrigger_joker) then
1322+
elseif context.selling_self and not context.blueprint and not context.retrigger_joker then
13231323
virgoJollies(card)
13241324
return nil, true
1325-
13261325
elseif context.forcetrigger then
13271326
SMODS.scale_card(card, {
13281327
ref_table = card.ability.extra,
13291328
ref_value = "extra_value",
1330-
scalar_value = "bonus"
1329+
scalar_value = "bonus",
13311330
})
13321331

13331332
virgoJollies(card)
@@ -1538,14 +1537,14 @@ local mprime = {
15381537
msg = SMODS.scale_card(card, {
15391538
ref_table = card.ability.extra,
15401539
ref_value = "mult",
1541-
scalar_value = "bonus"
1540+
scalar_value = "bonus",
15421541
})
15431542
end
15441543
if not context.retrigger_joker and not context.blueprint and (not msg or type(msg) == "string") then
15451544
return {
15461545
message = msg or localize("cry_m_ex"),
15471546
card = card,
1548-
colour = G.C.DARK_EDITION
1547+
colour = G.C.DARK_EDITION,
15491548
}
15501549
end
15511550
elseif
@@ -1600,7 +1599,7 @@ local mprime = {
16001599
SMODS.scale_card(card, {
16011600
ref_table = card.ability.extra,
16021601
ref_value = "mult",
1603-
scalar_value = "bonus"
1602+
scalar_value = "bonus",
16041603
})
16051604
local mjoker = math.min(1, G.jokers.config.card_limit - (#G.jokers.cards + G.GAME.joker_buffer))
16061605
G.GAME.joker_buffer = G.GAME.joker_buffer + mjoker
@@ -1772,7 +1771,7 @@ local megg = {
17721771
local msg = SMODS.scale_card(card, {
17731772
ref_table = card.ability.extra,
17741773
ref_value = "amount",
1775-
scalar_value = "amount_mod"
1774+
scalar_value = "amount_mod",
17761775
})
17771776
if to_big(card.ability.extra.amount) > to_big(card.ability.immutable.max_amount) then
17781777
card.ability.extra.amount = lenient_bignum(card.ability.immutable.max_amount)
@@ -1806,7 +1805,7 @@ local megg = {
18061805
SMODS.scale_card(card, {
18071806
ref_table = card.ability.extra,
18081807
ref_value = "amount",
1809-
scalar_value = "amount_mod"
1808+
scalar_value = "amount_mod",
18101809
})
18111810
if to_big(card.ability.extra.amount) > to_big(card.ability.immutable.max_amount) then
18121811
card.ability.extra.amount = lenient_bignum(card.ability.immutable.max_amount)
@@ -1842,7 +1841,7 @@ local longboi = {
18421841
extra = {
18431842
monster = 1,
18441843
bonus = 0.75,
1845-
secret_variable_so_smods_scale_works_correctly = 1
1844+
secret_variable_so_smods_scale_works_correctly = 1,
18461845
},
18471846
immutable = { max_bonus = 0.75 }, -- this is technically a minimum but i didn't name the variable
18481847
},
@@ -1869,11 +1868,9 @@ local longboi = {
18691868
local msg = SMODS.scale_card(card, {
18701869
ref_table = card.ability.extra,
18711870
ref_value = "secret_variable_so_smods_scale_works_correctly",
1872-
scalar_value = "bonus"
1871+
scalar_value = "bonus",
18731872
})
1874-
G.GAME.monstermult = lenient_bignum(
1875-
card.ability.extra.secret_variable_so_smods_scale_works_correctly
1876-
)
1873+
G.GAME.monstermult = lenient_bignum(card.ability.extra.secret_variable_so_smods_scale_works_correctly)
18771874
if not context.retrigger_joker and (not msg or type(msg) == "string") then
18781875
return {
18791876
card_eval_status_text(context.blueprint_card or card, "extra", nil, nil, nil, {

0 commit comments

Comments
 (0)