Skip to content

Commit 6cb2c2b

Browse files
committed
Remove Joker from main menu
was causing crashes on new save creation
1 parent bf10f1b commit 6cb2c2b

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

KHJokers.lua

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,6 @@ SMODS.Atlas({
4343
atlas_table = 'ANIMATION_ATLAS'
4444
})
4545

46-
-- adds Kingdom Hearts Joker to the title menu
47-
function Card:resize(mod, force_save)
48-
self:hard_set_T(self.T.x, self.T.y, self.T.w * mod, self.T.h * mod)
49-
remove_all(self.children)
50-
self.children = {}
51-
self.children.shadow = Moveable(0, 0, 0, 0)
52-
self:set_sprites(self.config.center, self.base.id and self.config.card)
53-
end
54-
55-
local mainmenuref2 = Game.main_menu
56-
Game.main_menu = function(change_context)
57-
local ret = mainmenuref2(change_context)
58-
59-
local newcard = SMODS.create_card({ key = 'j_kh_khtrilogy', area = G.title_top })
60-
G.title_top.T.w = G.title_top.T.w * 1.7675
61-
G.title_top.T.x = G.title_top.T.x - 0.8
62-
G.title_top:emplace(newcard)
63-
newcard:start_materialize()
64-
newcard:resize(1.1 * 1.2)
65-
newcard.no_ui = true
66-
return ret
67-
end
68-
69-
70-
7146
KH = SMODS.current_mod
7247

7348
KH.save_config = function(self)

0 commit comments

Comments
 (0)