Skip to content

Commit f2ee790

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent 79aa5c8 commit f2ee790

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

items/tag.lua

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ local clone = {
14421442
config = { type = "item_bought", cost_fac = 1.5 },
14431443
key = "clone",
14441444
loc_vars = function(self, info_queue)
1445-
return { vars = {self.config.cost_fac} }
1445+
return { vars = { self.config.cost_fac } }
14461446
end,
14471447
min_ante = 4,
14481448
apply = function(self, tag, context)
@@ -1464,7 +1464,7 @@ local clone = {
14641464
end
14651465
end
14661466
return true
1467-
end
1467+
end,
14681468
}))
14691469
G.CONTROLLER.locks[lock] = nil
14701470
return true
@@ -1479,7 +1479,7 @@ local clone = {
14791479
local r = buy_ref(e)
14801480
if r ~= false then
14811481
for i = 1, #G.GAME.tags do
1482-
G.GAME.tags[i]:apply_to_run({type = 'item_bought', card = e.config.ref_table})
1482+
G.GAME.tags[i]:apply_to_run({ type = "item_bought", card = e.config.ref_table })
14831483
end
14841484
end
14851485
return r
@@ -1489,13 +1489,16 @@ local clone = {
14891489
local c = set_costref(self, ...)
14901490
local has
14911491
for i = 1, #G.GAME.tags do
1492-
if G.GAME.tags[i].key == "tag_cry_clone" then has = true; break end
1492+
if G.GAME.tags[i].key == "tag_cry_clone" then
1493+
has = true
1494+
break
1495+
end
14931496
end
14941497
if has then
14951498
self.cost = self.cost * 1.5
14961499
end
14971500
end
1498-
end
1501+
end,
14991502
}
15001503

15011504
local lens = {
@@ -1523,8 +1526,8 @@ local lens = {
15231526
config = { type = "immediate", negatives = 2 },
15241527
key = "lens",
15251528
loc_vars = function(self, info_queue)
1526-
info_queue[#info_queue+1] = G.P_CENTERS.e_negative
1527-
return { vars = {self.config.negatives} }
1529+
info_queue[#info_queue + 1] = G.P_CENTERS.e_negative
1530+
return { vars = { self.config.negatives } }
15281531
end,
15291532
min_ante = 4,
15301533
apply = function(self, tag, context)
@@ -1533,7 +1536,7 @@ local lens = {
15331536
for i, v in pairs(G.consumeables.cards) do
15341537
if not v.edition or not v.edition.negative then
15351538
if not v.will_be_editioned then
1536-
c[#c+1] = v
1539+
c[#c + 1] = v
15371540
end
15381541
end
15391542
end
@@ -1587,7 +1590,7 @@ local palette_cleanser = {
15871590
order = 30,
15881591
atlas = "tag_cry",
15891592
pos = { x = 0, y = 4 },
1590-
config = { type = "immediate"},
1593+
config = { type = "immediate" },
15911594
key = "palette_cleanser",
15921595
loc_vars = function(self, info_queue)
15931596
return { vars = {} }
@@ -1599,21 +1602,21 @@ local palette_cleanser = {
15991602
for i, v in pairs(G.jokers.cards) do
16001603
if v:has_stickers() then
16011604
if not v.will_be_cleansed then
1602-
c[#c+1] = v
1605+
c[#c + 1] = v
16031606
end
16041607
end
16051608
end
16061609
for i, v in pairs(G.deck.cards) do
16071610
if v:has_stickers() then
16081611
if not v.will_be_cleansed then
1609-
c[#c+1] = v
1612+
c[#c + 1] = v
16101613
end
16111614
end
16121615
end
16131616
for i, v in pairs(G.hand.cards) do
16141617
if v:has_stickers() then
16151618
if not v.will_be_cleansed then
1616-
c[#c+1] = v
1619+
c[#c + 1] = v
16171620
end
16181621
end
16191622
end
@@ -1640,26 +1643,26 @@ local palette_cleanser = {
16401643
for i, v in pairs(G.jokers.cards) do
16411644
if not v:has_stickers() then
16421645
if not v.will_be_cleansed then
1643-
c[#c+1] = v
1646+
c[#c + 1] = v
16441647
end
16451648
end
16461649
end
16471650
for i, v in pairs(G.deck.cards) do
16481651
if not v:has_stickers() then
16491652
if not v.will_be_cleansed then
1650-
c[#c+1] = v
1653+
c[#c + 1] = v
16511654
end
16521655
end
16531656
end
16541657
for i, v in pairs(G.hand.cards) do
16551658
if not v:has_stickers() then
16561659
if not v.will_be_cleansed then
1657-
c[#c+1] = v
1660+
c[#c + 1] = v
16581661
end
16591662
end
16601663
end
16611664
return #c > 0
1662-
end
1665+
end,
16631666
}
16641667

16651668
local tagitems = {

lib/misc.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,6 @@ function Cryptid.get_paved_joker()
10611061
return total
10621062
end
10631063

1064-
10651064
function Card:has_stickers()
10661065
for i, v in pairs(SMODS.Sticker.obj_table) do
10671066
if self.ability[i] then
@@ -1073,7 +1072,7 @@ function Card:remove_random_sticker(seed)
10731072
local s = {}
10741073
for i, v in pairs(SMODS.Sticker.obj_table) do
10751074
if not v.hidden and i ~= "cry_absolute" and self.ability[i] then
1076-
s[#s+1] = i
1075+
s[#s + 1] = i
10771076
end
10781077
end
10791078
if #s > 0 then
@@ -1083,4 +1082,4 @@ function Card:remove_random_sticker(seed)
10831082
self.ability.perish_tally = nil
10841083
end
10851084
end
1086-
end
1085+
end

localization/en-us.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3964,23 +3964,23 @@ return {
39643964
text = {
39653965
"Shop Items cost {C:attention}X#1#{}",
39663966
"as much, Obtain a {C:attention}Copy{}",
3967-
"of the next bought card"
3967+
"of the next bought card",
39683968
},
39693969
},
39703970
tag_cry_lens = {
39713971
name = "Lens Tag",
39723972
text = {
39733973
"Apply {C:dark_edition}Negative{}",
39743974
"to {C:attention}#1#{} Random",
3975-
"consumable#<s>1#"
3975+
"consumable#<s>1#",
39763976
},
39773977
},
39783978
tag_cry_palette_cleanser = {
39793979
name = "Palette Cleanser Tag",
39803980
text = {
39813981
"Remove a {C:attention}random{}",
39823982
"sticker from a {C:attention}random{}",
3983-
"Joker or Playing card"
3983+
"Joker or Playing card",
39843984
},
39853985
},
39863986
},

0 commit comments

Comments
 (0)