Skip to content

Commit 003e619

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent 94dae92 commit 003e619

File tree

2 files changed

+45
-40
lines changed

2 files changed

+45
-40
lines changed

items/exotic.lua

Lines changed: 43 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ local caeruleum = {
16841684
config = {
16851685
immutable = {
16861686
max_op = 3,
1687-
}
1687+
},
16881688
},
16891689

16901690
init = function(self)
@@ -1700,8 +1700,8 @@ local caeruleum = {
17001700
-- find caeruleum, call its function if it exists
17011701
for i = 1, #G.jokers.cards do
17021702
if G.jokers.cards[i] == self then
1703-
left_joker = G.jokers.cards[i-1]
1704-
right_joker = G.jokers.cards[i+1]
1703+
left_joker = G.jokers.cards[i - 1]
1704+
right_joker = G.jokers.cards[i + 1]
17051705
end
17061706
end
17071707

@@ -1733,8 +1733,7 @@ local caeruleum = {
17331733
vars = {},
17341734
}
17351735
end,
1736-
calculate = function(self, card, context)
1737-
end,
1736+
calculate = function(self, card, context) end,
17381737
cry_credits = {
17391738
idea = { "HexaCryonic" },
17401739
art = { "Tatteredlurker" },
@@ -1744,30 +1743,30 @@ local caeruleum = {
17441743

17451744
local chipsOperators = {
17461745
{
1747-
keys = {
1748-
"eq_chips",
1749-
"Eqchips_mod",
1750-
"EQchips_mod",
1746+
keys = {
1747+
"eq_chips",
1748+
"Eqchips_mod",
1749+
"EQchips_mod",
17511750
-- TARGET: add =chips modifiers (or succession if you're silly)
1752-
},
1753-
operation = 0,
1754-
},
1751+
},
1752+
operation = 0,
1753+
},
17551754
{
1756-
keys = {
1757-
"chips",
1758-
"h_chips",
1759-
"chip_mod"
1760-
},
1761-
operation = 1,
1762-
},
1755+
keys = {
1756+
"chips",
1757+
"h_chips",
1758+
"chip_mod",
1759+
},
1760+
operation = 1,
1761+
},
17631762
{
1764-
keys = {
1765-
"xchips",
1766-
"x_chips",
1767-
"Xchip_mod"
1768-
},
1763+
keys = {
1764+
"xchips",
1765+
"x_chips",
1766+
"Xchip_mod",
1767+
},
17691768
operation = 2,
1770-
},
1769+
},
17711770
}
17721771

17731772
local chipsReturnOperators = {
@@ -1783,23 +1782,29 @@ local chipsMessageKeys = {
17831782
}
17841783

17851784
function Cryptid.caeruleum_mod_chips(effect, caeruleum)
1786-
if not SMODS.Calculation_Controls.chips or not effect or not next(effect) then return end
1785+
if not SMODS.Calculation_Controls.chips or not effect or not next(effect) then
1786+
return
1787+
end
17871788

17881789
local new_effect = SMODS.shallow_copy(effect)
17891790

17901791
-- recursively go down extra tables
1791-
if effect.extra then new_effect.extra = Cryptid.caeruleum_mod_chips(effect.extra) end
1792+
if effect.extra then
1793+
new_effect.extra = Cryptid.caeruleum_mod_chips(effect.extra)
1794+
end
17921795

17931796
for _, op in ipairs(chipsOperators) do
1794-
for _, key in pairs(op.keys) do
1795-
if effect[key] then
1796-
new_effect[key] = nil
1797+
for _, key in pairs(op.keys) do
1798+
if effect[key] then
1799+
new_effect[key] = nil
17971800
local op2 = math.max(1, math.min(op.operation + 1, 3))
17981801
new_effect[chipsReturnOperators[op2]] = effect[key]
17991802

1800-
if key:sub(-4) == "_mod" then new_effect.remove_default_message = true end
1803+
if key:sub(-4) == "_mod" then
1804+
new_effect.remove_default_message = true
1805+
end
18011806

1802-
new_effect = SMODS.merge_effects{
1807+
new_effect = SMODS.merge_effects({
18031808
new_effect,
18041809
{
18051810
message = localize({
@@ -1810,12 +1815,12 @@ function Cryptid.caeruleum_mod_chips(effect, caeruleum)
18101815
},
18111816
}),
18121817
card = caeruleum,
1813-
focus = caeruleum
1814-
}
1815-
}
1816-
end
1817-
end
1818-
end
1818+
focus = caeruleum,
1819+
},
1820+
})
1821+
end
1822+
end
1823+
end
18191824

18201825
return new_effect
18211826
end

localization/en-us.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,8 @@ return {
12711271
text = {
12721272
"Adjacent {C:chips}chips{}-modifying jokers",
12731273
"use the next highest {C:attention}operator{} for scoring",
1274-
"{C:inactive}(Caps at exponentiation)"
1275-
}
1274+
"{C:inactive}(Caps at exponentiation)",
1275+
},
12761276
},
12771277
j_cry_candy_basket = {
12781278
name = "Candy Basket",

0 commit comments

Comments
 (0)