-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathJoyousSpring.lua
More file actions
44 lines (38 loc) · 1.71 KB
/
JoyousSpring.lua
File metadata and controls
44 lines (38 loc) · 1.71 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
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
assert(SMODS.load_file("src/utils.lua"))()
assert(SMODS.load_file("src/globals.lua"))()
assert(SMODS.load_file("src/mod_info.lua"))()
--assert(SMODS.load_file("src/states.lua"))()
assert(SMODS.load_file("src/general_ui.lua"))()
assert(SMODS.load_file("src/card_ui.lua"))()
assert(SMODS.load_file("src/extra_deck.lua"))()
assert(SMODS.load_file("src/graveyard.lua"))()
assert(SMODS.load_file("src/banishment.lua"))()
assert(SMODS.load_file("src/pendulum.lua"))()
assert(SMODS.load_file("src/summon.lua"))()
assert(SMODS.load_file("src/monsters.lua"))()
assert(SMODS.load_file("src/material_functions.lua"))()
assert(SMODS.load_file("src/effects.lua"))()
assert(SMODS.load_file("src/custom_pool.lua"))()
assert(SMODS.load_file("src/cross_mod.lua"))()
-- Jokers
local joker_src = 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)) <= 24) or (tonumber(file:sub(1, 2)) == 26) 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 = 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