Skip to content

Commit c02e805

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent d8c2bbb commit c02e805

File tree

3 files changed

+22
-27
lines changed

3 files changed

+22
-27
lines changed

items/exotic.lua

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ local exponentia = {
323323
local msg = SMODS.scale_card(card, {
324324
ref_table = card.ability.extra,
325325
ref_value = "Emult",
326-
scalar_value = "Emult_mod"
326+
scalar_value = "Emult_mod",
327327
})
328328
return {
329329
message = not msg and localize({
@@ -375,7 +375,7 @@ local exponentia = {
375375
local msg = SMODS.scale_card(card, {
376376
ref_table = card.ability.extra,
377377
ref_value = "Emult",
378-
scalar_value = "Emult_mod"
378+
scalar_value = "Emult_mod",
379379
})
380380
if not msg or type(msg) == "string" then
381381
card_eval_status_text(v, "extra", nil, nil, nil, {
@@ -660,7 +660,7 @@ local crustulum = {
660660
local msg = SMODS.scale_card(card, {
661661
ref_table = card.ability.extra,
662662
ref_value = "chips",
663-
scalar_value = "chip_mod"
663+
scalar_value = "chip_mod",
664664
})
665665
if not msg or type(msg) == "string" then
666666
card_eval_status_text(card, "extra", nil, nil, nil, {
@@ -689,7 +689,7 @@ local crustulum = {
689689
local msg = SMODS.scale_card(card, {
690690
ref_table = card.ability.extra,
691691
ref_value = "chips",
692-
scalar_value = "chip_mod"
692+
scalar_value = "chip_mod",
693693
})
694694
return {
695695
message = not msg and localize({
@@ -761,11 +761,12 @@ local primus = {
761761
end
762762
end
763763
if check then
764-
card.ability.extra.Emult = lenient_bignum(to_big(card.ability.extra.Emult) + card.ability.extra.Emult_mod)
764+
card.ability.extra.Emult =
765+
lenient_bignum(to_big(card.ability.extra.Emult) + card.ability.extra.Emult_mod)
765766
local msg = SMODS.scale_card(card, {
766767
ref_table = card.ability.extra,
767768
ref_value = "Emult",
768-
scalar_value = "Emult_mod"
769+
scalar_value = "Emult_mod",
769770
})
770771
card.children.floating_sprite:set_sprite_pos({ x = 8, y = 6 })
771772
if not msg or type(msg) == "string" then
@@ -798,7 +799,7 @@ local primus = {
798799
local msg = SMODS.scale_card(card, {
799800
ref_table = card.ability.extra,
800801
ref_value = "Emult",
801-
scalar_value = "Emult_mod"
802+
scalar_value = "Emult_mod",
802803
})
803804
return {
804805
message = not msg and localize({
@@ -855,7 +856,7 @@ local scalae = {
855856
local msg = SMODS.scale_card(card, {
856857
ref_table = card.ability.extra,
857858
ref_value = "scale",
858-
scalar_value = "scale_mod"
859+
scalar_value = "scale_mod",
859860
})
860861
if not msg or type(msg) == "string" then
861862
return {
@@ -970,11 +971,12 @@ local stella_mortis = {
970971
quaota = planet_to_destroy.ability.immutable and planet_to_destroy.ability.immutable.overflow_amount
971972
end
972973
planet_to_destroy.getting_sliced = true
973-
card.ability.extra.Emult = lenient_bignum(card.ability.extra.Emult + to_big(card.ability.extra.Emult_mod) * quota)
974+
card.ability.extra.Emult =
975+
lenient_bignum(card.ability.extra.Emult + to_big(card.ability.extra.Emult_mod) * quota)
974976
local msg = SMODS.scale_card(card, {
975977
ref_table = card.ability.extra,
976978
ref_value = "Emult",
977-
scalar_value = "Emult_mod"
979+
scalar_value = "Emult_mod",
978980
})
979981
G.E_MANAGER:add_event(Event({
980982
func = function()
@@ -1361,7 +1363,7 @@ local energia = {
13611363
local msg = SMODS.scale_card(card, {
13621364
ref_table = card.ability.extra,
13631365
ref_value = "tags",
1364-
scalar_value = "tag_mod"
1366+
scalar_value = "tag_mod",
13651367
})
13661368
if t > 0 and (not msg or type(msg) == "string") then
13671369
card_eval_status_text(card, "extra", nil, nil, nil, {
@@ -1380,7 +1382,7 @@ local energia = {
13801382
local msg = SMODS.scale_card(card, {
13811383
ref_table = card.ability.extra,
13821384
ref_value = "tags",
1383-
scalar_value = "tag_mod"
1385+
scalar_value = "tag_mod",
13841386
})
13851387
end
13861388
end,
@@ -1536,7 +1538,7 @@ local duplicare = {
15361538
local msg = SMODS.scale_card(card, {
15371539
ref_table = card.ability.extra,
15381540
ref_value = "Xmult",
1539-
scalar_value = "Xmult_mod"
1541+
scalar_value = "Xmult_mod",
15401542
})
15411543
if not msg or type(msg) == "string" then
15421544
card_eval_status_text(card, "extra", nil, nil, nil, { message = msg or localize("k_upgrade_ex") })
@@ -1549,7 +1551,7 @@ local duplicare = {
15491551
local msg = SMODS.scale_card(card, {
15501552
ref_table = card.ability.extra,
15511553
ref_value = "Xmult",
1552-
scalar_value = "Xmult_mod"
1554+
scalar_value = "Xmult_mod",
15531555
})
15541556
end
15551557
return {

items/misc_joker.lua

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,10 @@ local dropshot = {
8282
scalar_value = "Xmult_mod",
8383
})
8484
if not msg or type(msg) == "string" then
85-
card_eval_status_text(
86-
card,
87-
"extra",
88-
nil,
89-
nil,
90-
nil,
91-
{
92-
message = msg
93-
or localize({ type = "variable", key = "a_xmult", vars = { card.ability.extra.x_mult } }),
94-
}
95-
)
85+
card_eval_status_text(card, "extra", nil, nil, nil, {
86+
message = msg
87+
or localize({ type = "variable", key = "a_xmult", vars = { card.ability.extra.x_mult } }),
88+
})
9689
end
9790
return nil, true
9891
end

lib/cross-mod.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SMODS.Joker:take_ownership("green_joker", {
2020
ref_table = card.ability,
2121
ref_value = "mult",
2222
scalar_value = "extra",
23-
operation = "-"
23+
operation = "-",
2424
})
2525
if not msg or type(msg) == "string" then
2626
return {
@@ -40,7 +40,7 @@ SMODS.Joker:take_ownership("green_joker", {
4040
local msg = SMODS.scale_card(card, {
4141
ref_table = card.ability,
4242
ref_value = "mult",
43-
scalar_value = "extra"
43+
scalar_value = "extra",
4444
})
4545
if not msg or type(msg) == "string" then
4646
return {

0 commit comments

Comments
 (0)