forked from Joglacraft/Fools-Gambit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
75 lines (64 loc) · 2.33 KB
/
main.lua
File metadata and controls
75 lines (64 loc) · 2.33 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
FG = {
ALTS = {}, -- Stores all alternating tables.
FUNCS = {}, -- Stores all funtions used in the mod, be it the API or not.
cards = {},
rarities = {
original = {},
alternate = {}
}
}
FG.config = SMODS.current_mod.config
FG.config.version = SMODS.current_mod.version
SMODS.current_mod.optional_features = { retrigger_joker = true }
--[[
SMODS.Atlas{
key = "mod_icon",
path = "modicon.png",
px = 34,
py = 34
}
]]
---@alias card table
G.C.FG_ALTERNATE = HEX('8867a5')
G.C.FG_ORIGINAL = HEX('FE5F55')
-- This is in preparation for file splitting. I'll do that later. - Jogla
-- im splitting jokers and stuff into sections to make this easier later - jenku
local mod_contents = {
{path = 'special_editions/sendien', deps = {}},
{path = 'pools', deps = {}},
{path = 'aux_functions', deps = {}},
{path = 'overrides', deps = {}},
{path = 'jokers', deps = {}},
{path = 'editions', deps = {}},
{path = 'consumeables', deps = {}},
{path = 'booster_packs', deps = {}},
{path = 'rarities', deps = {}},
{path = 'vouchers', deps = {}},
{path = 'enhancements', deps = {}},
{path = 'UI_definitions', deps = {}},
{path = 'test', deps = {}},
{path = 'special_editions/mila', deps = {}},
{path = 'spectral', deps = {}},
{path = 'tarots', deps = {}},
{path = 'seals', deps = {}},
{path = 'misc', deps = {}},
{path = 'decks', deps = {}},
{path = 'challenges', deps = {}},
-- Compat entries
{path = 'compat/joker_display', deps = {"JokerDisplay"}},
{path = 'compat/giga/seals', deps = {"GIGA"}},
{path = 'compat/giga/food', deps = {'GIGA'}}
}
for k, v in ipairs(mod_contents) do -- Load this mod's files
local exists = true
if not v.deps then v.deps = {} end
for _,vv in ipairs(v.deps) do
if not next(SMODS.find_mod(vv)) then exists = false end
end
if exists then assert(SMODS.load_file('/src/'..v.path..'.lua'))() end
end
-- Pool flags
--G.GAME.pool_flags.alternate_spawn = false
if FG.config.debug_mode then
sendInfoMessage("\n\n\n=== [ /!\\ WARNING /!\\ ] ===\n\nYou are playing with Debug Mode enabled.\nThis can lead to unexpected errors, as it may contain unfinished content.\n\nWHEN MAKING A BUG REPORT, STATE THAT YOU ARE USING DEBUG MODE.\nFool's Gambit version: "..tostring(SMODS.current_mod.version).."\n\n=== [ /!\\ WARNING /!\\ ] ===\n\n", "Fool's gambit")
end