Skip to content

Commit ab545be

Browse files
author
jolly[bot]
committed
jolly-bot: auto-format Lua files using Stylua
1 parent 1139ee3 commit ab545be

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

Cryptid.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ local inj = SMODS.injectItems
185185
function SMODS.injectItems(...)
186186
inj(...)
187187
cry_update_obj_registry()
188-
for _, t in ipairs{
189-
G.P_CENTERS,
190-
G.P_BLINDS,
191-
G.P_TAGS,
192-
G.P_SEALS,
193-
} do
188+
for _, t in ipairs({
189+
G.P_CENTERS,
190+
G.P_BLINDS,
191+
G.P_TAGS,
192+
G.P_SEALS,
193+
}) do
194194
for k, v in pairs(t) do
195195
if v and G.PROFILES[G.SETTINGS.profile].all_unlocked then
196196
v.alerted = true

lib/misc.lua

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,15 @@ if true then --Cryptid.enabled["Menu"] then
353353
Game.main_menu = function(change_context)
354354
local ret = oldfunc(change_context)
355355
-- adds a Cryptid spectral to the main menu
356-
local newcard = Card(G.title_top.T.x, G.title_top.T.y, G.CARD_W, G.CARD_H, G.P_CARDS.empty, G.P_CENTERS.c_cryptid, {bypass_discovery_center = true})
356+
local newcard = Card(
357+
G.title_top.T.x,
358+
G.title_top.T.y,
359+
G.CARD_W,
360+
G.CARD_H,
361+
G.P_CARDS.empty,
362+
G.P_CENTERS.c_cryptid,
363+
{ bypass_discovery_center = true }
364+
)
357365
-- recenter the title
358366
G.title_top.T.w = G.title_top.T.w * 1.7675
359367
G.title_top.T.x = G.title_top.T.x - 0.8
@@ -378,21 +386,22 @@ if true then --Cryptid.enabled["Menu"] then
378386
})
379387

380388
G.E_MANAGER:add_event(Event({
381-
trigger = 'after',
389+
trigger = "after",
382390
delay = 0,
383391
blockable = false,
384392
blocking = false,
385-
func = (function()
386-
if change_context == 'splash' then
393+
func = function()
394+
if change_context == "splash" then
387395
newcard.states.visible = true
388-
newcard:start_materialize({G.C.WHITE,G.C.WHITE}, true, 2.5)
396+
newcard:start_materialize({ G.C.WHITE, G.C.WHITE }, true, 2.5)
389397
else
390398
newcard.states.visible = true
391-
newcard:start_materialize({G.C.WHITE,G.C.WHITE}, nil, 1.2)
399+
newcard:start_materialize({ G.C.WHITE, G.C.WHITE }, nil, 1.2)
392400
end
393401
return true
394-
end)}))
395-
402+
end,
403+
}))
404+
396405
return ret
397406
end
398407
end

0 commit comments

Comments
 (0)