-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathJoyousSpring.lua
More file actions
58 lines (50 loc) · 1.47 KB
/
JoyousSpring.lua
File metadata and controls
58 lines (50 loc) · 1.47 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
JoyousSpring = {}
JoyousSpring.config = SMODS.current_mod.config
assert(SMODS.current_mod.lovely,
"Lovely modules were not loaded.\nMake sure your JoyousSpring folder is not nested (there should be a bunch of files in the JoyousSpring folder and not just another folder).")
local debug = SMODS.load_file("debug.lua")
if debug then
debug()
end
SMODS.current_mod.optional_features = {
object_weights = true
}
local filelist = {
"utils",
"globals",
"mod_info",
"states",
"general_ui",
"card_ui",
"zones",
"extra_deck",
"graveyard",
"banishment",
"pendulum",
"summon",
"monsters",
"material_functions",
"effects",
"opponent",
"blind_everywhere_system",
"custom_pool",
"cross_mod",
"tutorials"
}
for _, file in ipairs(filelist) do
assert(SMODS.load_file("src/" .. file .. ".lua"))()
end
-- Jokers
local joker_src = SMODS.NFS.getDirectoryItems(SMODS.current_mod.path .. "src/jokers")
for _, file in ipairs(joker_src) do
if JoyousSpring.dev_content or (tonumber(file:sub(1, 2)) <= 32) or (tonumber(file:sub(1, 2)) == 99) then
sendInfoMessage("Loading " .. file, "JoyousSpring")
assert(SMODS.load_file("src/jokers/" .. file))()
end
end
-- Others
local others_src = SMODS.NFS.getDirectoryItems(SMODS.current_mod.path .. "src/others")
for _, file in ipairs(others_src) do
sendInfoMessage("Loading " .. file, "JoyousSpring")
assert(SMODS.load_file("src/others/" .. file))()
end