-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathARAOI.lua
190 lines (133 loc) · 4.96 KB
/
ARAOI.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
--[[
This is the script that holds everything together and allows for other scripts
to communicate with each other, including scripts from other mods!
--]]
---@class CollectibleType
ARAOI.CollectibleType = {
---@type integer
THREED_GLASSES = Isaac.GetItemIdByName("3D Glasses"),
---@type integer
BAG_OF_HOLDING = Isaac.GetItemIdByName("Bag of Holding"),
---@type integer
ETERNAL_DPLOPIA = Isaac.GetItemIdByName("Eternal Dplopia"),
---@type integer
GLASS_DIE = Isaac.GetItemIdByName("Glass Die"),
---@type integer
RUBIKS_CUBE = Isaac.GetItemIdByName("Rubik's Cube"),
---@type integer
SPELLBOOK = Isaac.GetItemIdByName("Spellbook"),
---@type integer
WIRE_CUTTER = Isaac.GetItemIdByName("Wire Cutter"),
---@type integer
BLESSINGS_PETAL = Isaac.GetItemIdByName("Blessing's Petal"),
---@type integer
DUALITY_HALO = Isaac.GetItemIdByName("Duality Halo"),
---@type integer
GAMBLING_CHIPS = Isaac.GetItemIdByName("Gambling Chips"),
---@type integer
LUCKY_COIN = Isaac.GetItemIdByName("Lucky Coin"),
---@type integer
RAINBOW_HEADBAND = Isaac.GetItemIdByName("Rainbow Headband"),
---@type integer
SACRIFICIAL_HEART = Isaac.GetItemIdByName("Sacrificial Heart"),
---@type integer
VAMPIRE_CLOAK = Isaac.GetItemIdByName("Vampire Cloak"),
---@type integer
VOODOO_BODY = Isaac.GetItemIdByName("Voodoo Body"),
---@type integer
RECYCLE = Isaac.GetItemIdByName("Recycle"),
---@type integer
NUM_COLLECTIBLES = 16
}
---@class TrinketType
ARAOI.TrinketType = {
---@type integer
SPARE_BATTERY = Isaac.GetTrinketIdByName("Spare Battery"),
---@type integer
SOLVED_RUBIKS_CUBE = Isaac.GetTrinketIdByName("Solved Rubik's Cube"),
---@type integer
INVERTED_SPADES = Isaac.GetTrinketIdByName("Inverted Spades"),
---@type integer
BOUNTIFUL_SACK = Isaac.GetTrinketIdByName("Bountiful Sack"),
---@type integer
NUM_TRINKETS = 4
}
---@class CardSubType
ARAOI.CardSubType = {
---@type integer
INVERTED_FOOL = Isaac.GetCardIdByName("Inverted Fool"),
---@type integer
INVERTED_MAGICIAN = Isaac.GetCardIdByName("Inverted Magician"),
---@type integer
INVERTED_HIGH_PRIESTESS = Isaac.GetCardIdByName("Inverted High Priestess"),
---@type integer
INVERTED_EMPRESS = Isaac.GetCardIdByName("Inverted Empress"),
---@type integer
INVERTED_EMPEROR = Isaac.GetCardIdByName("Inverted Emperor"),
---@type integer
INVERTED_HERMIT = Isaac.GetCardIdByName("Inverted Hermit"),
---@type integer
INVERTED_HIEROPHANT = Isaac.GetCardIdByName("Inverted Hierophant"),
---@type integer
INVERTED_LOVERS = Isaac.GetCardIdByName("Inverted Lovers"),
---@type integer
INVERTED_CHARIOT = Isaac.GetCardIdByName("Inverted Chariot"),
---@type integer
INVERTED_JUSTICE = Isaac.GetCardIdByName("Inverted Justice"),
---@type integer
INVERTED_WHEEL_OF_FORTUNE = Isaac.GetCardIdByName("Inverted Wheel of Fortune"),
---@type integer
INVERTED_STRENGTH = Isaac.GetCardIdByName("Inverted Strength"),
---@type integer
INVERTED_HANGED_MAN = Isaac.GetCardIdByName("Inverted Hanged Man"),
---@type integer
INVERTED_DEATH = Isaac.GetCardIdByName("Inverted Death"),
---@type integer
INVERTED_TEMPERANCE = Isaac.GetCardIdByName("Inverted Temperance"),
---@type integer
INVERTED_DEVIL = Isaac.GetCardIdByName("Inverted Devil"),
---@type integer
INVERTED_TOWER = Isaac.GetCardIdByName("Inverted Tower"),
---@type integer
INVERTED_STARS = Isaac.GetCardIdByName("Inverted Stars"),
---@type integer
INVERTED_MOON = Isaac.GetCardIdByName("Inverted Moon"),
---@type integer
INVERTED_SUN = Isaac.GetCardIdByName("Inverted Sun"),
---@type integer
INVERTED_JUDGEMENT = Isaac.GetCardIdByName("Inverted Judgement"),
---@type integer
INVERTED_WORLD = Isaac.GetCardIdByName("Inverted World"),
---@type integer
NUM_CARDS = 22
}
---@class SaveDataManager
ARAOI.SaveData = include("scripts.SaveDataManager"):init(ARAOI.Mod)
---@class EIDUtils
ARAOI.EIDUtils = include("scripts.utils.eidutils")
---@class ItemUtils
ARAOI.ItemUtils = include("scripts.utils.item")
---@class MiscUtils
ARAOI.MiscUtils = include("scripts.utils.misc")
---@class PlayerUtils
ARAOI.PlayerUtils = include("scripts.utils.player")
---@class RoomUtils
ARAOI.RoomUtils = include("scripts.utils.room")
---@class TableUtils
ARAOI.TableUtils = include("scripts.utils.table")
---@class ModCallbacks
ARAOI.ModCallbacks = {}
ARAOI.ModCallbacks.OnReload = "Reload ARAOI Mod Data"
ARAOI.ModCallbacks.EIDReload = "Reload ARAOI EID Descriptions"
-- Wrapper for the description reloaded callback
function ARAOI.EIDWrapper(func)
if EID then
ARAOI.Mod:AddCallback(ARAOI.ModCallbacks.EIDReload, func)
end
end
-- Calls the callback responsible for reloading the EID descriptions
function ARAOI.EIDReload()
if EID then
Isaac.RunCallback(ARAOI.ModCallbacks.EIDReload)
end
end