-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFinalMix.lua
More file actions
82 lines (66 loc) · 2 KB
/
FinalMix.lua
File metadata and controls
82 lines (66 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
KH = SMODS.current_mod
XIII = XIII or {}
KH.description_loc_vars = function()
return { background_colour = G.C.CLEAR, text_colour = G.C.WHITE, scale = 1.2, shadow = true }
end
KH.save_config = function(self)
SMODS.save_mod_config(self)
end
SMODS.DynaTextEffect {
key = "pulse",
func = function(dynatext, index, letter)
local t = G.TIMERS.REAL * 1.2 + index * 0.25
letter.y = math.sin(t) * 2
letter.r = math.sin(t * 0.5) * 0.2
end
}
-- tailsman thingy
to_big = to_big or function(x) return x end
to_number = to_number or function(x) return x end
SMODS.current_mod.optional_features = {
post_trigger = true,
retrigger_joker = true
}
-- Utility Functions
local cards = NFS.getDirectoryItems(SMODS.current_mod.path .. "utilities")
for _, filename in pairs(cards) do
assert(SMODS.load_file("utilities/" .. filename))()
end
-- Blockbuster Support!
if Blockbuster then
SMODS.load_file("content/crossmod/value_manipulation.lua")()
end
-- Jokers
local subdir = "content/cards"
local cards = NFS.getDirectoryItems(SMODS.current_mod.path .. subdir)
for _, filename in pairs(cards) do
assert(SMODS.load_file(subdir .. "/" .. filename))()
end
-- Misc
local cards = NFS.getDirectoryItems(SMODS.current_mod.path .. "content/misc")
for _, filename in pairs(cards) do
assert(SMODS.load_file("content/misc/" .. filename))()
end
-- Consumables
SMODS.load_file("content/consumables/tarots.lua")()
SMODS.load_file("content/consumables/spectrals.lua")()
-- Friends of Jimbo
SMODS.load_file("content/collabs/kingdomheartsxbalatro.lua")()
-- Joker Display Support!
if JokerDisplay then
SMODS.load_file("content/crossmod/joker_display_definitions.lua")()
end
-- Partner API Support!
if Partner_API then
SMODS.load_file("content/crossmod/partners.lua")()
end
-- CardSleeves Support!
if CardSleeves then
SMODS.load_file("content/crossmod/cardsleeves.lua")()
end
--[[ WIP
if BLINDSIDE then
SMODS.load_file("content/crossmod/blindside_blinds.lua")()
SMODS.load_file("content/crossmod/blindside_jokers.lua")()
end
--]]