-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lua
75 lines (58 loc) · 1.57 KB
/
main.lua
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
---@class ModReference
local Mod = RegisterMod("ARAOI", 1)
if not REPENTOGON then
error("REPENTOGON IS MISSING! ARAOI WILL NOT WORK! PLEASE INSTALL REPENTOGON OR UNINSTALL THIS MOD!")
end
--[[
This main file is only used for initializing all the different scripts
If you want to modify the items, please look in the respective files
]]--
---@class ARAOI
ARAOI = {}
ARAOI.Mod = Mod
include("ARAOI")
local item = "scripts.items."
local active = item.."active."
local passive = item.."passive."
local pocket = item.."pocket."
local trinket = item.."trinket."
local files = {
--[[ ACTIVE ITEMS ]]--
active.."eternal_dplopia",
active.."rubiks_cube",
active.."3d_glasses",
active.."bag_of_holding",
active.."glass_die",
active.."spellbook",
active.."wire_cutter",
active.."recycle",
--[[ PASSIVE ITEMS ]]--
passive.."gambling_chips",
passive.."sacrificial_heart",
passive.."duality_halo",
passive.."rainbow_headband",
passive.."blessings_petal",
passive.."voodoo_body",
passive.."vampire_cloak",
passive.."lucky_coin",
--[[ POCKET ITEMS ]]--
pocket.."inverted_cards",
--[[ TRINKETS ]]--
trinket.."spare_battery",
trinket.."solved_rubiks_cube",
trinket.."inverted_spades",
trinket.."bountiful_sack",
--[[ DEBUGGING ]]--
"debug.code"
}
for _, path in ipairs(files) do
if path == "debug.code" then
pcall(function ()
include(path)
end)
else
include(path)
end
end
ARAOI.EIDReload()
Isaac.RunCallback(ARAOI.ModCallbacks.OnReload)