-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
48 lines (37 loc) · 1.12 KB
/
main.lua
File metadata and controls
48 lines (37 loc) · 1.12 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
Judgement = SMODS.current_mod
JudgementPath = SMODS.current_mod.path
JudgementConfig = SMODS.current_mod.config or {}
SMDOS = SMODS -- kill me
to_big = to_big or function(x)
return x
end
if next(SMODS.find_mod("Cryptid")) then
Judgement.prefix_extra = "cry"
else
Judgement.prefix_extra = "jud"
end
print(Judgement.prefix, Judgement.prefix_extra)
SMODS.current_mod.optional_features = function()
return {
post_trigger = true,
cardareas = {
unscored = true,
},
}
end
Judgement.Lib = NFS.getDirectoryItems(JudgementPath .. "items/Lib")
Judgement.Misc = NFS.getDirectoryItems(JudgementPath .. "items/Misc")
Judgement.Consumables = NFS.getDirectoryItems(JudgementPath .. "items/Consumables")
Judgement.Jokers = NFS.getDirectoryItems(JudgementPath .. "items/Jokers")
for k, file in ipairs(Judgement.Lib) do
SMODS.load_file("items/Lib/" .. file)()
end
for k, file in ipairs(Judgement.Misc) do
SMODS.load_file("items/Misc/" .. file)()
end
for k, file in ipairs(Judgement.Consumables) do
SMODS.load_file("items/Consumables/" .. file)()
end
for k, file in ipairs(Judgement.Jokers) do
SMODS.load_file("items/Jokers/" .. file)()
end