Skip to content

Commit a6da74f

Browse files
committed
patch out cryptid menu changes
1 parent c95c888 commit a6da74f

File tree

4 files changed

+60
-1
lines changed

4 files changed

+60
-1
lines changed

Entropy.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,6 @@ local oldfunc = Game.main_menu
504504
{ bypass_discovery_center = true }
505505
)
506506
for i, v in pairs(G.title_top.cards) do
507-
if v.config.center.key == "c_cryptid" then v:start_dissolve() end
508507
if v.base and v.base.value and v.base.value == "Ace" then v:set_edition("e_entr_solar") end
509508
end
510509
-- recenter the title

assets/1x/exotic_jokers.png

-8 Bytes
Loading

assets/2x/exotic_jokers.png

83 Bytes
Loading

lovely/game.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,63 @@ payload = '''if card and card.playing_card and HasJoker("j_entr_jokerinyellow")
344344
end
345345
'''
346346
match_indent = true
347+
348+
349+
[[patches]]
350+
[patches.pattern]
351+
target = '''=[SMODS Cryptid "lib/misc.lua"]'''
352+
pattern = '''local newcard = Card(
353+
G.title_top.T.x,
354+
G.title_top.T.y,
355+
G.CARD_W,
356+
G.CARD_H,
357+
G.P_CARDS.empty,
358+
G.P_CENTERS.c_cryptid,
359+
{ bypass_discovery_center = true }
360+
)
361+
-- recenter the title
362+
G.title_top.T.w = G.title_top.T.w * 1.7675
363+
G.title_top.T.x = G.title_top.T.x - 0.8
364+
G.title_top:emplace(newcard)
365+
-- make the card look the same way as the title screen Ace of Spades
366+
newcard.T.w = newcard.T.w * 1.1 * 1.2
367+
newcard.T.h = newcard.T.h * 1.1 * 1.2
368+
newcard.no_ui = true
369+
newcard.states.visible = false
370+
371+
-- make the title screen use different background colors
372+
G.SPLASH_BACK:define_draw_steps({
373+
{
374+
shader = "splash",
375+
send = {
376+
{ name = "time", ref_table = G.TIMERS, ref_value = "REAL_SHADER" },
377+
{ name = "vort_speed", val = 0.4 },
378+
{ name = "colour_1", ref_table = G.C, ref_value = "CRY_EXOTIC" },
379+
{ name = "colour_2", ref_table = G.C, ref_value = "DARK_EDITION" },
380+
},
381+
},
382+
})
383+
384+
G.E_MANAGER:add_event(Event({
385+
trigger = "after",
386+
delay = 0,
387+
blockable = false,
388+
blocking = false,
389+
func = function()
390+
if change_context == "splash" then
391+
newcard.states.visible = true
392+
newcard:start_materialize({ G.C.WHITE, G.C.WHITE }, true, 2.5)
393+
else
394+
newcard.states.visible = true
395+
newcard:start_materialize({ G.C.WHITE, G.C.WHITE }, nil, 1.2)
396+
end
397+
return true
398+
end,
399+
}))
400+
'''
401+
position = "at"
402+
payload = '''
403+
G.title_top.T.w = G.title_top.T.w * 1.7675
404+
G.title_top.T.x = G.title_top.T.x - 0.8
405+
'''
406+
match_indent = true

0 commit comments

Comments
 (0)