isaacscript-common 3.5.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,56 @@
1
+ local ____exports = {}
2
+ local hasSubscriptions, postUpdate, getAmbushType, v
3
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
4
+ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
5
+ local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
6
+ local ____cachedClasses = require("cachedClasses")
7
+ local game = ____cachedClasses.game
8
+ local ____AmbushType = require("enums.AmbushType")
9
+ local AmbushType = ____AmbushType.AmbushType
10
+ local ____exports = require("features.saveDataManager.exports")
11
+ local saveDataManager = ____exports.saveDataManager
12
+ local ____roomData = require("functions.roomData")
13
+ local getRoomType = ____roomData.getRoomType
14
+ local ____postAmbushFinished = require("callbacks.subscriptions.postAmbushFinished")
15
+ local postAmbushFinishedFire = ____postAmbushFinished.postAmbushFinishedFire
16
+ local postAmbushFinishedHasSubscriptions = ____postAmbushFinished.postAmbushFinishedHasSubscriptions
17
+ local ____postAmbushStarted = require("callbacks.subscriptions.postAmbushStarted")
18
+ local postAmbushStartedFire = ____postAmbushStarted.postAmbushStartedFire
19
+ local postAmbushStartedHasSubscriptions = ____postAmbushStarted.postAmbushStartedHasSubscriptions
20
+ function hasSubscriptions(self)
21
+ return postAmbushStartedHasSubscriptions(nil) or postAmbushFinishedHasSubscriptions(nil)
22
+ end
23
+ function postUpdate(self)
24
+ if not hasSubscriptions(nil) then
25
+ return
26
+ end
27
+ local room = game:GetRoom()
28
+ if not v.room.ambushActive then
29
+ local ambushActive = room:IsAmbushActive()
30
+ if ambushActive then
31
+ v.room.ambushActive = true
32
+ local ambushType = getAmbushType(nil)
33
+ postAmbushStartedFire(nil, ambushType)
34
+ end
35
+ end
36
+ if not v.room.ambushDone then
37
+ local ambushDone = room:IsAmbushDone()
38
+ if ambushDone then
39
+ v.room.ambushDone = true
40
+ local ambushType = getAmbushType(nil)
41
+ postAmbushFinishedFire(nil, ambushType)
42
+ end
43
+ end
44
+ end
45
+ function getAmbushType(self)
46
+ local roomType = getRoomType(nil)
47
+ return roomType == RoomType.BOSS_RUSH and AmbushType.BOSS_RUSH or AmbushType.CHALLENGE_ROOM
48
+ end
49
+ v = {room = {ambushActive = false, ambushDone = false}}
50
+ ---
51
+ -- @internal
52
+ function ____exports.postAmbushCallbacksInit(self, mod)
53
+ saveDataManager(nil, "postAmbushCallbacks", v, hasSubscriptions)
54
+ mod:AddCallback(ModCallback.POST_UPDATE, postUpdate)
55
+ end
56
+ return ____exports
@@ -16,7 +16,8 @@ local postCollectibleInitFirstHasSubscriptions = ____postCollectibleInitFirst.po
16
16
  function hasSubscriptions(self)
17
17
  return postCollectibleInitFirstHasSubscriptions(nil)
18
18
  end
19
- function postPickupInitCollectible(self, collectible)
19
+ function postPickupInitCollectible(self, pickup)
20
+ local collectible = pickup
20
21
  local collectibleIndex = getCollectibleIndex(nil, collectible)
21
22
  if v.run.seenCollectibles:has(collectibleIndex) then
22
23
  return
@@ -34,8 +34,8 @@ function postPEffectUpdateReordered(self, player)
34
34
  local currentHealthValue = getPlayerHealthType(nil, player, healthType)
35
35
  playerHealthMap:set(healthType, currentHealthValue)
36
36
  if storedHealthValue ~= nil and storedHealthValue ~= currentHealthValue then
37
- local amount = currentHealthValue - storedHealthValue
38
- postPlayerChangeHealthFire(nil, player, healthType, amount)
37
+ local difference = currentHealthValue - storedHealthValue
38
+ postPlayerChangeHealthFire(nil, player, healthType, difference)
39
39
  end
40
40
  end
41
41
  end
@@ -0,0 +1,5 @@
1
+ import { AmbushType } from "../../enums/AmbushType";
2
+ export declare type PostAmbushFinishedRegisterParameters = [
3
+ callback: (ambushType: AmbushType) => void,
4
+ ambushType?: AmbushType
5
+ ];
@@ -0,0 +1,29 @@
1
+ local ____exports = {}
2
+ local subscriptions = {}
3
+ ---
4
+ -- @internal
5
+ function ____exports.postAmbushFinishedHasSubscriptions(self)
6
+ return #subscriptions > 0
7
+ end
8
+ ---
9
+ -- @internal
10
+ function ____exports.postAmbushFinishedRegister(self, ...)
11
+ local args = {...}
12
+ subscriptions[#subscriptions + 1] = args
13
+ end
14
+ ---
15
+ -- @internal
16
+ function ____exports.postAmbushFinishedFire(self, ambushType)
17
+ for ____, ____value in ipairs(subscriptions) do
18
+ local callback = ____value[1]
19
+ local callbackAmbushType = ____value[2]
20
+ do
21
+ if callbackAmbushType ~= nil and callbackAmbushType ~= ambushType then
22
+ goto __continue5
23
+ end
24
+ callback(nil, ambushType)
25
+ end
26
+ ::__continue5::
27
+ end
28
+ end
29
+ return ____exports
@@ -0,0 +1,5 @@
1
+ import { AmbushType } from "../../enums/AmbushType";
2
+ export declare type PostAmbushStartedRegisterParameters = [
3
+ callback: (ambushType: AmbushType) => void,
4
+ ambushType?: AmbushType
5
+ ];
@@ -0,0 +1,29 @@
1
+ local ____exports = {}
2
+ local subscriptions = {}
3
+ ---
4
+ -- @internal
5
+ function ____exports.postAmbushStartedHasSubscriptions(self)
6
+ return #subscriptions > 0
7
+ end
8
+ ---
9
+ -- @internal
10
+ function ____exports.postAmbushStartedRegister(self, ...)
11
+ local args = {...}
12
+ subscriptions[#subscriptions + 1] = args
13
+ end
14
+ ---
15
+ -- @internal
16
+ function ____exports.postAmbushStartedFire(self, ambushType)
17
+ for ____, ____value in ipairs(subscriptions) do
18
+ local callback = ____value[1]
19
+ local callbackAmbushType = ____value[2]
20
+ do
21
+ if callbackAmbushType ~= nil and callbackAmbushType ~= ambushType then
22
+ goto __continue5
23
+ end
24
+ callback(nil, ambushType)
25
+ end
26
+ ::__continue5::
27
+ end
28
+ end
29
+ return ____exports
@@ -1,5 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- /// <reference types="isaac-typescript-definitions" />
3
- export declare type PostPickupCollectRegisterParameters = PickupRegisterParameters<[
4
- player: EntityPlayer
5
- ], void>;
1
+ import { PickupVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPickupCollectRegisterParameters = [
3
+ callback: (pickup: EntityPickup, player: EntityPlayer) => void,
4
+ pickupVariant?: PickupVariant
5
+ ];
@@ -1,3 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPickupInitFirstRegisterParameters = PickupRegisterParameters<[
3
- ], void>;
1
+ import { PickupVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPickupInitFirstRegisterParameters = [
3
+ callback: (pickup: EntityPickup) => void,
4
+ pickupVariant?: PickupVariant
5
+ ];
@@ -1,3 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPickupInitLateRegisterParameters = PickupRegisterParameters<[
3
- ], void>;
1
+ import { PickupVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPickupInitLateRegisterParameters = [
3
+ callback: (pickup: EntityPickup) => void,
4
+ pickupVariant?: PickupVariant
5
+ ];
@@ -1,6 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- /// <reference types="isaac-typescript-definitions" />
3
- export declare type PostPickupStateChangedRegisterParameters = PickupRegisterParameters<[
4
- previousState: int,
5
- currentState: int
6
- ], void>;
1
+ import { PickupVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPickupStateChangedRegisterParameters = [
3
+ callback: (pickup: EntityPickup, previousState: int, currentState: int) => void,
4
+ pickupVariant?: PickupVariant
5
+ ];
@@ -1,7 +1,7 @@
1
1
  import { PlayerType, PlayerVariant } from "isaac-typescript-definitions";
2
2
  import { HealthType } from "../../enums/HealthType";
3
3
  export declare type PostPlayerChangeHealthRegisterParameters = [
4
- callback: (player: EntityPlayer, healthType: HealthType, amount: int) => void,
4
+ callback: (player: EntityPlayer, healthType: HealthType, difference: int) => void,
5
5
  playerVariant?: PlayerVariant,
6
6
  character?: PlayerType
7
7
  ];
@@ -13,7 +13,7 @@ function ____exports.postPlayerChangeHealthRegister(self, ...)
13
13
  end
14
14
  ---
15
15
  -- @internal
16
- function ____exports.postPlayerChangeHealthFire(self, player, healthType, amount)
16
+ function ____exports.postPlayerChangeHealthFire(self, player, healthType, difference)
17
17
  local character = player:GetPlayerType()
18
18
  for ____, ____value in ipairs(subscriptions) do
19
19
  local callback = ____value[1]
@@ -26,7 +26,7 @@ function ____exports.postPlayerChangeHealthFire(self, player, healthType, amount
26
26
  if callbackCharacter ~= nil and callbackCharacter ~= character then
27
27
  goto __continue5
28
28
  end
29
- callback(nil, player, healthType, amount)
29
+ callback(nil, player, healthType, difference)
30
30
  end
31
31
  ::__continue5::
32
32
  end
@@ -0,0 +1,4 @@
1
+ export declare enum AmbushType {
2
+ CHALLENGE_ROOM = 0,
3
+ BOSS_RUSH = 1
4
+ }
@@ -0,0 +1,7 @@
1
+ local ____exports = {}
2
+ ____exports.AmbushType = {}
3
+ ____exports.AmbushType.CHALLENGE_ROOM = 0
4
+ ____exports.AmbushType[____exports.AmbushType.CHALLENGE_ROOM] = "CHALLENGE_ROOM"
5
+ ____exports.AmbushType.BOSS_RUSH = 1
6
+ ____exports.AmbushType[____exports.AmbushType.BOSS_RUSH] = "BOSS_RUSH"
7
+ return ____exports
@@ -7,6 +7,30 @@
7
7
  * - You must upgrade your mod with the `upgradeMod` helper function before using a custom callback.
8
8
  */
9
9
  export declare enum ModCallbackCustom {
10
+ /**
11
+ * Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
12
+ * Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
13
+ *
14
+ * When registering the callback, takes an optional second argument that will make the callback
15
+ * only fire if for the `AmbushType` provided.
16
+ *
17
+ * ```ts
18
+ * function postAmbushFinished(ambushType: AmbushType): void {}
19
+ * ```
20
+ */
21
+ POST_AMBUSH_FINISHED = 0,
22
+ /**
23
+ * Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
24
+ * Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
25
+ *
26
+ * When registering the callback, takes an optional second argument that will make the callback
27
+ * only fire if for the `AmbushType` provided.
28
+ *
29
+ * ```ts
30
+ * function postAmbushStarted(ambushType: AmbushType): void {}
31
+ * ```
32
+ */
33
+ POST_AMBUSH_STARTED = 1,
10
34
  /**
11
35
  * Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
12
36
  *
@@ -20,7 +44,7 @@ export declare enum ModCallbackCustom {
20
44
  * function postBombInitLate(bomb: EntityBomb): void {}
21
45
  * ```
22
46
  */
23
- POST_BOMB_INIT_LATE = 0,
47
+ POST_BOMB_INIT_LATE = 2,
24
48
  /**
25
49
  * Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
26
50
  *
@@ -28,7 +52,7 @@ export declare enum ModCallbackCustom {
28
52
  * function postBoneSwing(boneClub: EntityKnife): void {}
29
53
  * ```
30
54
  */
31
- POST_BONE_SWING = 1,
55
+ POST_BONE_SWING = 3,
32
56
  /**
33
57
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
34
58
  * respective collectible on the run. For more details on how this is calculated, see the
@@ -45,7 +69,7 @@ export declare enum ModCallbackCustom {
45
69
  * function postCollectibleInitLate(collectible: EntityPickup): void {}
46
70
  * ```
47
71
  */
48
- POST_COLLECTIBLE_INIT_FIRST = 2,
72
+ POST_COLLECTIBLE_INIT_FIRST = 4,
49
73
  /**
50
74
  * Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
51
75
  * begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
@@ -55,7 +79,7 @@ export declare enum ModCallbackCustom {
55
79
  * function postCursedTeleport(player: EntityPlayer): void {}
56
80
  * ```
57
81
  */
58
- POST_CURSED_TELEPORT = 3,
82
+ POST_CURSED_TELEPORT = 5,
59
83
  /**
60
84
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player enters the loading zone of a custom
61
85
  * door created with the `spawnCustomDoor` helper function.
@@ -72,7 +96,7 @@ export declare enum ModCallbackCustom {
72
96
  * ): void {}
73
97
  * ```
74
98
  */
75
- POST_CUSTOM_DOOR_ENTER = 4,
99
+ POST_CUSTOM_DOOR_ENTER = 6,
76
100
  /**
77
101
  * Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
78
102
  * has teleported to the previous room, and is ready to play the animation for the modded revival
@@ -89,7 +113,7 @@ export declare enum ModCallbackCustom {
89
113
  * function postCustomRevive(player: EntityPlayer, revivalType: int) {}
90
114
  * ```
91
115
  */
92
- POST_CUSTOM_REVIVE = 5,
116
+ POST_CUSTOM_REVIVE = 7,
93
117
  /**
94
118
  * Fires from the `POST_RENDER` callback on every frame that a door exists.
95
119
  *
@@ -100,7 +124,7 @@ export declare enum ModCallbackCustom {
100
124
  * function postDoorRender(door: GridEntityDoor): void {}
101
125
  * ```
102
126
  */
103
- POST_DOOR_RENDER = 6,
127
+ POST_DOOR_RENDER = 8,
104
128
  /**
105
129
  * Fires from the `POST_UPDATE` callback on every frame that a door exists.
106
130
  *
@@ -111,7 +135,7 @@ export declare enum ModCallbackCustom {
111
135
  * function postDoorUpdate(door: GridEntityDoor): void {}
112
136
  * ```
113
137
  */
114
- POST_DOOR_UPDATE = 7,
138
+ POST_DOOR_UPDATE = 9,
115
139
  /**
116
140
  * Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
117
141
  *
@@ -125,7 +149,7 @@ export declare enum ModCallbackCustom {
125
149
  * function postEffectInitLate(effect: EntityEffect): void {}
126
150
  * ```
127
151
  */
128
- POST_EFFECT_INIT_LATE = 8,
152
+ POST_EFFECT_INIT_LATE = 10,
129
153
  /**
130
154
  * Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
131
155
  * was on the previous frame.
@@ -141,7 +165,7 @@ export declare enum ModCallbackCustom {
141
165
  * ): void {}
142
166
  * ```
143
167
  */
144
- POST_EFFECT_STATE_CHANGED = 9,
168
+ POST_EFFECT_STATE_CHANGED = 11,
145
169
  /**
146
170
  * Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
147
171
  * updated to the new character until a game frame has passed.)
@@ -150,7 +174,7 @@ export declare enum ModCallbackCustom {
150
174
  * function postEsauJr(player: EntityPlayer): void {}
151
175
  * ```
152
176
  */
153
- POST_ESAU_JR = 10,
177
+ POST_ESAU_JR = 12,
154
178
  /**
155
179
  * Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
156
180
  *
@@ -164,7 +188,7 @@ export declare enum ModCallbackCustom {
164
188
  * function postFamiliarInitLate(familiar: EntityFamiliar): void {}
165
189
  * ```
166
190
  */
167
- POST_FAMILIAR_INIT_LATE = 11,
191
+ POST_FAMILIAR_INIT_LATE = 13,
168
192
  /**
169
193
  * Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
170
194
  * was on the previous frame.
@@ -180,7 +204,7 @@ export declare enum ModCallbackCustom {
180
204
  * ): void {}
181
205
  * ```
182
206
  */
183
- POST_FAMILIAR_STATE_CHANGED = 12,
207
+ POST_FAMILIAR_STATE_CHANGED = 14,
184
208
  /**
185
209
  * Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
186
210
  * not updated to the new character until a game frame has passed.)
@@ -192,7 +216,7 @@ export declare enum ModCallbackCustom {
192
216
  * function postFirstEsauJr(player: EntityPlayer): void {}
193
217
  * ```
194
218
  */
195
- POST_FIRST_ESAU_JR = 13,
219
+ POST_FIRST_ESAU_JR = 15,
196
220
  /**
197
221
  * Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
198
222
  * callback, this callback will return the player object for the new Lazarus (not the one who used
@@ -205,7 +229,7 @@ export declare enum ModCallbackCustom {
205
229
  * function postFirstFlip(player: EntityPlayer): void {}
206
230
  * ```
207
231
  */
208
- POST_FIRST_FLIP = 14,
232
+ POST_FIRST_FLIP = 16,
209
233
  /**
210
234
  * Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
211
235
  * callback will return the player object for the new Lazarus (not the one who used the Flip
@@ -218,7 +242,7 @@ export declare enum ModCallbackCustom {
218
242
  * function postFlip(player: EntityPlayer): void {}
219
243
  * ```
220
244
  */
221
- POST_FLIP = 15,
245
+ POST_FLIP = 17,
222
246
  /**
223
247
  * Similar to the vanilla callback of the same name, but fires in the correct order with respect
224
248
  * to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
@@ -229,7 +253,7 @@ export declare enum ModCallbackCustom {
229
253
  * function postGameStartedReordered(isContinued: boolean): void {}
230
254
  * ```
231
255
  */
232
- POST_GAME_STARTED_REORDERED = 16,
256
+ POST_GAME_STARTED_REORDERED = 18,
233
257
  /**
234
258
  * Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
235
259
  *
@@ -237,7 +261,7 @@ export declare enum ModCallbackCustom {
237
261
  * function postGreedModeWave(oldWave: int, newWave: int) {}
238
262
  * ```
239
263
  */
240
- POST_GREED_MODE_WAVE = 17,
264
+ POST_GREED_MODE_WAVE = 19,
241
265
  /**
242
266
  * Fires from the `POST_UPDATE` update when a grid entity changes to a state that corresponds to
243
267
  * the broken state for the respective grid entity type.
@@ -249,7 +273,7 @@ export declare enum ModCallbackCustom {
249
273
  * function postGridEntityBroken(gridEntity: GridEntity): void {}
250
274
  * ```
251
275
  */
252
- POST_GRID_ENTITY_BROKEN = 18,
276
+ POST_GRID_ENTITY_BROKEN = 20,
253
277
  /**
254
278
  * Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity.
255
279
  *
@@ -263,7 +287,7 @@ export declare enum ModCallbackCustom {
263
287
  * ): void {}
264
288
  * ```
265
289
  */
266
- POST_GRID_ENTITY_COLLISION = 19,
290
+ POST_GRID_ENTITY_COLLISION = 21,
267
291
  /**
268
292
  * Fires when a new grid entity is initialized. Specifically, this is either:
269
293
  *
@@ -279,7 +303,7 @@ export declare enum ModCallbackCustom {
279
303
  * function postGridEntityInit(gridEntity: GridEntity): void {}
280
304
  * ```
281
305
  */
282
- POST_GRID_ENTITY_INIT = 20,
306
+ POST_GRID_ENTITY_INIT = 22,
283
307
  /**
284
308
  * Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
285
309
  * the frame after it no longer exists (where it did exist a frame ago).
@@ -294,7 +318,7 @@ export declare enum ModCallbackCustom {
294
318
  * ): void {}
295
319
  * ```
296
320
  */
297
- POST_GRID_ENTITY_REMOVE = 21,
321
+ POST_GRID_ENTITY_REMOVE = 23,
298
322
  /**
299
323
  * Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
300
324
  *
@@ -307,7 +331,7 @@ export declare enum ModCallbackCustom {
307
331
  * function postGridEntityRender(gridEntity: GridEntity): void {}
308
332
  * ```
309
333
  */
310
- POST_GRID_ENTITY_RENDER = 22,
334
+ POST_GRID_ENTITY_RENDER = 24,
311
335
  /**
312
336
  * Fires from the `POST_UPDATE` callback when a grid entity changes its state.
313
337
  *
@@ -322,7 +346,7 @@ export declare enum ModCallbackCustom {
322
346
  * ): void {}
323
347
  * ```
324
348
  */
325
- POST_GRID_ENTITY_STATE_CHANGED = 23,
349
+ POST_GRID_ENTITY_STATE_CHANGED = 25,
326
350
  /**
327
351
  * Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
328
352
  *
@@ -335,7 +359,7 @@ export declare enum ModCallbackCustom {
335
359
  * function postGridEntityUpdate(gridEntity: GridEntity): void {}
336
360
  * ```
337
361
  */
338
- POST_GRID_ENTITY_UPDATE = 24,
362
+ POST_GRID_ENTITY_UPDATE = 26,
339
363
  /**
340
364
  * Fires from the `POST_PEFFECT_UPDATE` callback when the player loses a Holy Mantle temporary
341
365
  * collectible effect.
@@ -357,7 +381,7 @@ export declare enum ModCallbackCustom {
357
381
  * ): void {}
358
382
  * ```
359
383
  */
360
- POST_HOLY_MANTLE_REMOVED = 25,
384
+ POST_HOLY_MANTLE_REMOVED = 27,
361
385
  /**
362
386
  * Fires from `POST_PEFFECT_UPDATE` callback when the player loses charge on their active
363
387
  * collectible item, implying that the item was just used.
@@ -379,7 +403,7 @@ export declare enum ModCallbackCustom {
379
403
  * ): void {}
380
404
  * ```
381
405
  */
382
- POST_ITEM_DISCHARGE = 26,
406
+ POST_ITEM_DISCHARGE = 28,
383
407
  /**
384
408
  * Fires from the `POST_PEFFECT_UPDATE` callback when an item is no longer queued (i.e. when the
385
409
  * animation of the player holding the item above their head is finished and the item is actually
@@ -399,7 +423,7 @@ export declare enum ModCallbackCustom {
399
423
  * ): void {}
400
424
  * ```
401
425
  */
402
- POST_ITEM_PICKUP = 27,
426
+ POST_ITEM_PICKUP = 29,
403
427
  /**
404
428
  * Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
405
429
  *
@@ -413,7 +437,7 @@ export declare enum ModCallbackCustom {
413
437
  * function postKnifeInitLate(knife: EntityKnife): void {}
414
438
  * ```
415
439
  */
416
- POST_KNIFE_INIT_LATE = 28,
440
+ POST_KNIFE_INIT_LATE = 30,
417
441
  /**
418
442
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
419
443
  *
@@ -427,7 +451,7 @@ export declare enum ModCallbackCustom {
427
451
  * function postLaserInitLate(laser: EntityLaser): void {}
428
452
  * ```
429
453
  */
430
- POST_LASER_INIT_LATE = 29,
454
+ POST_LASER_INIT_LATE = 31,
431
455
  /**
432
456
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
433
457
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -444,7 +468,7 @@ export declare enum ModCallbackCustom {
444
468
  * function postNewLevelReordered(): void {}
445
469
  * ```
446
470
  */
447
- POST_NEW_LEVEL_REORDERED = 30,
471
+ POST_NEW_LEVEL_REORDERED = 32,
448
472
  /**
449
473
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
450
474
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -455,7 +479,7 @@ export declare enum ModCallbackCustom {
455
479
  * function postNewRoomEarly(): void {}
456
480
  * ```
457
481
  */
458
- POST_NEW_ROOM_EARLY = 31,
482
+ POST_NEW_ROOM_EARLY = 33,
459
483
  /**
460
484
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
461
485
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -472,7 +496,7 @@ export declare enum ModCallbackCustom {
472
496
  * function postNewRoomReordered(): void {}
473
497
  * ```
474
498
  */
475
- POST_NEW_ROOM_REORDERED = 32,
499
+ POST_NEW_ROOM_REORDERED = 34,
476
500
  /**
477
501
  * Fires on the first `NPC_UPDATE` frame for each NPC.
478
502
  *
@@ -486,7 +510,7 @@ export declare enum ModCallbackCustom {
486
510
  * function postNPCInitLate(npc: EntityNPC): void {}
487
511
  * ```
488
512
  */
489
- POST_NPC_INIT_LATE = 33,
513
+ POST_NPC_INIT_LATE = 35,
490
514
  /**
491
515
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
492
516
  * the previous frame.
@@ -504,7 +528,7 @@ export declare enum ModCallbackCustom {
504
528
  * ): void {}
505
529
  * ```
506
530
  */
507
- POST_NPC_STATE_CHANGED = 34,
531
+ POST_NPC_STATE_CHANGED = 36,
508
532
  /**
509
533
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
510
534
  * callback fires (if the player is being updated on the 0th game frame of the run).
@@ -527,7 +551,7 @@ export declare enum ModCallbackCustom {
527
551
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
528
552
  * ```
529
553
  */
530
- POST_PEFFECT_UPDATE_REORDERED = 35,
554
+ POST_PEFFECT_UPDATE_REORDERED = 37,
531
555
  /**
532
556
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
533
557
  *
@@ -540,7 +564,7 @@ export declare enum ModCallbackCustom {
540
564
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
541
565
  * ```
542
566
  */
543
- POST_PICKUP_COLLECT = 36,
567
+ POST_PICKUP_COLLECT = 38,
544
568
  /**
545
569
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
546
570
  * respective pickup on the run.
@@ -562,7 +586,7 @@ export declare enum ModCallbackCustom {
562
586
  * function postPickupInitFirst(pickup: EntityPickup): void {}
563
587
  * ```
564
588
  */
565
- POST_PICKUP_INIT_FIRST = 37,
589
+ POST_PICKUP_INIT_FIRST = 39,
566
590
  /**
567
591
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
568
592
  *
@@ -576,7 +600,7 @@ export declare enum ModCallbackCustom {
576
600
  * function postPickupInitLate(pickup: EntityPickup): void {}
577
601
  * ```
578
602
  */
579
- POST_PICKUP_INIT_LATE = 38,
603
+ POST_PICKUP_INIT_LATE = 40,
580
604
  /**
581
605
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
582
606
  * on the previous frame.
@@ -592,7 +616,7 @@ export declare enum ModCallbackCustom {
592
616
  * ): void {}
593
617
  * ```
594
618
  */
595
- POST_PICKUP_STATE_CHANGED = 39,
619
+ POST_PICKUP_STATE_CHANGED = 41,
596
620
  /**
597
621
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
598
622
  *
@@ -603,7 +627,7 @@ export declare enum ModCallbackCustom {
603
627
  * function postPitRender(pit: GridEntityPit): void {}
604
628
  * ```
605
629
  */
606
- POST_PIT_RENDER = 40,
630
+ POST_PIT_RENDER = 42,
607
631
  /**
608
632
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
609
633
  *
@@ -614,7 +638,7 @@ export declare enum ModCallbackCustom {
614
638
  * function postPitUpdate(pit: GridEntityPit): void {}
615
639
  * ```
616
640
  */
617
- POST_PIT_UPDATE = 41,
641
+ POST_PIT_UPDATE = 43,
618
642
  /**
619
643
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player entity gains or loses any health
620
644
  * (i.e. hearts). For more information, see the `PlayerHealth` enum.
@@ -628,11 +652,11 @@ export declare enum ModCallbackCustom {
628
652
  * function postPlayerChangeHealth(
629
653
  * player: EntityPlayer,
630
654
  * healthType: HealthType,
631
- * amount: int,
655
+ * difference: int,
632
656
  * ) {}
633
657
  * ```
634
658
  */
635
- POST_PLAYER_CHANGE_HEALTH = 42,
659
+ POST_PLAYER_CHANGE_HEALTH = 44,
636
660
  /**
637
661
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player entity changes its player type
638
662
  * (i.e. character). For example, it will fire after using Clicker, after dying with the Judas'
@@ -650,7 +674,7 @@ export declare enum ModCallbackCustom {
650
674
  * ) {}
651
675
  * ```
652
676
  */
653
- POST_PLAYER_CHANGE_TYPE = 43,
677
+ POST_PLAYER_CHANGE_TYPE = 45,
654
678
  /**
655
679
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is higher than
656
680
  * what it was on the previous frame.
@@ -664,7 +688,7 @@ export declare enum ModCallbackCustom {
664
688
  * function postPlayerCollectibleAdded(player: EntityPlayer, collectibleType: CollectibleType) {}
665
689
  * ```
666
690
  */
667
- POST_PLAYER_COLLECTIBLE_ADDED = 44,
691
+ POST_PLAYER_COLLECTIBLE_ADDED = 46,
668
692
  /**
669
693
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is lower than
670
694
  * what it was on the previous frame.
@@ -681,7 +705,7 @@ export declare enum ModCallbackCustom {
681
705
  * ) {}
682
706
  * ```
683
707
  */
684
- POST_PLAYER_COLLECTIBLE_REMOVED = 45,
708
+ POST_PLAYER_COLLECTIBLE_REMOVED = 47,
685
709
  /**
686
710
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
687
711
  * prevent the fatal damage.
@@ -698,7 +722,7 @@ export declare enum ModCallbackCustom {
698
722
  * function postPlayerFatalDamage(player: EntityPlayer) {}
699
723
  * ```
700
724
  */
701
- POST_PLAYER_FATAL_DAMAGE = 46,
725
+ POST_PLAYER_FATAL_DAMAGE = 48,
702
726
  /**
703
727
  * Fires on the first `POST_PLAYER_UPDATE` frame for each player.
704
728
  *
@@ -714,7 +738,7 @@ export declare enum ModCallbackCustom {
714
738
  * function postPlayerInitLate(pickup: EntityPickup): void {}
715
739
  * ```
716
740
  */
717
- POST_PLAYER_INIT_LATE = 47,
741
+ POST_PLAYER_INIT_LATE = 49,
718
742
  /**
719
743
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
720
744
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -736,7 +760,7 @@ export declare enum ModCallbackCustom {
736
760
  * function postPlayerInitReordered(player: EntityPlayer): void {}
737
761
  * ```
738
762
  */
739
- POST_PLAYER_INIT_REORDERED = 48,
763
+ POST_PLAYER_INIT_REORDERED = 50,
740
764
  /**
741
765
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
742
766
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -759,7 +783,7 @@ export declare enum ModCallbackCustom {
759
783
  * function postPlayerRenderReordered(player: EntityPlayer): void {}
760
784
  * ```
761
785
  */
762
- POST_PLAYER_RENDER_REORDERED = 49,
786
+ POST_PLAYER_RENDER_REORDERED = 51,
763
787
  /**
764
788
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
765
789
  * callback fires (if the player is being updated on the 0th game frame of the run).
@@ -782,7 +806,7 @@ export declare enum ModCallbackCustom {
782
806
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
783
807
  * ```
784
808
  */
785
- POST_PLAYER_UPDATE_REORDERED = 50,
809
+ POST_PLAYER_UPDATE_REORDERED = 52,
786
810
  /**
787
811
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
788
812
  *
@@ -793,7 +817,7 @@ export declare enum ModCallbackCustom {
793
817
  * function postPoopRender(poop: GridEntityPoop): void {}
794
818
  * ```
795
819
  */
796
- POST_POOP_RENDER = 51,
820
+ POST_POOP_RENDER = 53,
797
821
  /**
798
822
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
799
823
  *
@@ -804,7 +828,7 @@ export declare enum ModCallbackCustom {
804
828
  * function postPoopUpdate(poop: GridEntityPoop): void {}
805
829
  * ```
806
830
  */
807
- POST_POOP_UPDATE = 52,
831
+ POST_POOP_UPDATE = 54,
808
832
  /**
809
833
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
810
834
  *
@@ -815,7 +839,7 @@ export declare enum ModCallbackCustom {
815
839
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
816
840
  * ```
817
841
  */
818
- POST_PRESSURE_PLATE_RENDER = 53,
842
+ POST_PRESSURE_PLATE_RENDER = 55,
819
843
  /**
820
844
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
821
845
  *
@@ -826,7 +850,7 @@ export declare enum ModCallbackCustom {
826
850
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
827
851
  * ```
828
852
  */
829
- POST_PRESSURE_PLATE_UPDATE = 54,
853
+ POST_PRESSURE_PLATE_UPDATE = 56,
830
854
  /**
831
855
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
832
856
  *
@@ -840,7 +864,7 @@ export declare enum ModCallbackCustom {
840
864
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
841
865
  * ```
842
866
  */
843
- POST_PROJECTILE_INIT_LATE = 55,
867
+ POST_PROJECTILE_INIT_LATE = 57,
844
868
  /**
845
869
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player first picks up a new item. The
846
870
  * pickup returned in the callback is assumed to be the first pickup that no longer exists.
@@ -854,7 +878,7 @@ export declare enum ModCallbackCustom {
854
878
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
855
879
  * ```
856
880
  */
857
- POST_PURCHASE = 56,
881
+ POST_PURCHASE = 58,
858
882
  /**
859
883
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
860
884
  *
@@ -865,7 +889,7 @@ export declare enum ModCallbackCustom {
865
889
  * function postRockRender(rock: GridEntityRock): void {}
866
890
  * ```
867
891
  */
868
- POST_ROCK_RENDER = 57,
892
+ POST_ROCK_RENDER = 59,
869
893
  /**
870
894
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
871
895
  *
@@ -876,7 +900,7 @@ export declare enum ModCallbackCustom {
876
900
  * function postRockUpdate(rock: GridEntityRock): void {}
877
901
  * ```
878
902
  */
879
- POST_ROCK_UPDATE = 58,
903
+ POST_ROCK_UPDATE = 60,
880
904
  /**
881
905
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes.
882
906
  *
@@ -887,7 +911,7 @@ export declare enum ModCallbackCustom {
887
911
  * function postRoomClearChanged(roomClear: boolean): void {}
888
912
  * ```
889
913
  */
890
- POST_ROOM_CLEAR_CHANGED = 59,
914
+ POST_ROOM_CLEAR_CHANGED = 61,
891
915
  /**
892
916
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
893
917
  * Room.
@@ -901,7 +925,7 @@ export declare enum ModCallbackCustom {
901
925
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
902
926
  * ```
903
927
  */
904
- POST_SACRIFICE = 60,
928
+ POST_SACRIFICE = 62,
905
929
  /**
906
930
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
907
931
  *
@@ -912,7 +936,7 @@ export declare enum ModCallbackCustom {
912
936
  * function postSlotAnimationChanged(slot: Entity): void {}
913
937
  * ```
914
938
  */
915
- POST_SLOT_ANIMATION_CHANGED = 61,
939
+ POST_SLOT_ANIMATION_CHANGED = 63,
916
940
  /**
917
941
  * Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
918
942
  * has broken.
@@ -924,7 +948,7 @@ export declare enum ModCallbackCustom {
924
948
  * function postSlotDestroyed(slot: Entity): void {}
925
949
  * ```
926
950
  */
927
- POST_SLOT_DESTROYED = 62,
951
+ POST_SLOT_DESTROYED = 64,
928
952
  /**
929
953
  * Fires when a new slot entity is initialized. Specifically, this is either:
930
954
  *
@@ -940,7 +964,7 @@ export declare enum ModCallbackCustom {
940
964
  * function postSlotInit(slot: Entity): void {}
941
965
  * ```
942
966
  */
943
- POST_SLOT_INIT = 63,
967
+ POST_SLOT_INIT = 65,
944
968
  /**
945
969
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
946
970
  *
@@ -951,7 +975,7 @@ export declare enum ModCallbackCustom {
951
975
  * function postSlotRender(slot: Entity): void {}
952
976
  * ```
953
977
  */
954
- POST_SLOT_RENDER = 64,
978
+ POST_SLOT_RENDER = 66,
955
979
  /**
956
980
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
957
981
  *
@@ -962,7 +986,7 @@ export declare enum ModCallbackCustom {
962
986
  * function postSlotUpdate(slot: Entity): void {}
963
987
  * ```
964
988
  */
965
- POST_SLOT_UPDATE = 65,
989
+ POST_SLOT_UPDATE = 67,
966
990
  /**
967
991
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
968
992
  *
@@ -973,7 +997,7 @@ export declare enum ModCallbackCustom {
973
997
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
974
998
  * ```
975
999
  */
976
- POST_SPIKES_RENDER = 66,
1000
+ POST_SPIKES_RENDER = 68,
977
1001
  /**
978
1002
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
979
1003
  *
@@ -984,9 +1008,10 @@ export declare enum ModCallbackCustom {
984
1008
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
985
1009
  * ```
986
1010
  */
987
- POST_SPIKES_UPDATE = 67,
1011
+ POST_SPIKES_UPDATE = 69,
988
1012
  /**
989
- * Fires on the first `POST_TEAR_UPDATE` frame for each tear.
1013
+ * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
1014
+ * `EntityTear.FrameCount` is equal to 0).
990
1015
  *
991
1016
  * This callback is useful because many attributes cannot be set or retrieved properly in the
992
1017
  * normal `POST_TEAR_INIT` callback.
@@ -998,9 +1023,10 @@ export declare enum ModCallbackCustom {
998
1023
  * function postTearInitLate(tear: EntityTear): void {}
999
1024
  * ```
1000
1025
  */
1001
- POST_TEAR_INIT_LATE = 68,
1026
+ POST_TEAR_INIT_LATE = 70,
1002
1027
  /**
1003
- * Fires on the second `POST_TEAR_UPDATE` frame for each tear (i.e. frame 1).
1028
+ * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
1029
+ * `EntityTear.FrameCount` is equal to 1).
1004
1030
  *
1005
1031
  * This callback is useful because Incubus tears are not distinguishable until the second frame.
1006
1032
  *
@@ -1011,7 +1037,7 @@ export declare enum ModCallbackCustom {
1011
1037
  * function postTearInitVeryLate(tear: EntityTear): void {}
1012
1038
  * ```
1013
1039
  */
1014
- POST_TEAR_INIT_VERY_LATE = 69,
1040
+ POST_TEAR_INIT_VERY_LATE = 71,
1015
1041
  /**
1016
1042
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
1017
1043
  *
@@ -1022,7 +1048,7 @@ export declare enum ModCallbackCustom {
1022
1048
  * function postTNTRender(tnt: GridEntityTNT): void {}
1023
1049
  * ```
1024
1050
  */
1025
- POST_TNT_RENDER = 70,
1051
+ POST_TNT_RENDER = 72,
1026
1052
  /**
1027
1053
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
1028
1054
  *
@@ -1033,7 +1059,7 @@ export declare enum ModCallbackCustom {
1033
1059
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
1034
1060
  * ```
1035
1061
  */
1036
- POST_TNT_UPDATE = 71,
1062
+ POST_TNT_UPDATE = 73,
1037
1063
  /**
1038
1064
  * Fires from the `POST_PEFFECT_UPDATE` callback when a player gains or loses a new
1039
1065
  * transformation.
@@ -1051,7 +1077,7 @@ export declare enum ModCallbackCustom {
1051
1077
  * ): void {}
1052
1078
  * ```
1053
1079
  */
1054
- POST_TRANSFORMATION = 72,
1080
+ POST_TRANSFORMATION = 74,
1055
1081
  /**
1056
1082
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
1057
1083
  *
@@ -1065,7 +1091,7 @@ export declare enum ModCallbackCustom {
1065
1091
  * ): void {}
1066
1092
  * ```
1067
1093
  */
1068
- POST_TRINKET_BREAK = 73,
1094
+ POST_TRINKET_BREAK = 75,
1069
1095
  /**
1070
1096
  * Fires from the `POST_PEFFECT_UPDATE` callback on the frame before a Berserk effect ends when
1071
1097
  * the player is predicted to die (e.g. they currently have no health left or they took damage in
@@ -1080,7 +1106,7 @@ export declare enum ModCallbackCustom {
1080
1106
  * function preBerserkDeath(player: EntityPlayer) {}
1081
1107
  * ```
1082
1108
  */
1083
- PRE_BERSERK_DEATH = 74,
1109
+ PRE_BERSERK_DEATH = 76,
1084
1110
  /**
1085
1111
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
1086
1112
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -1098,7 +1124,7 @@ export declare enum ModCallbackCustom {
1098
1124
  * function preCustomRevive(player: EntityPlayer) {}
1099
1125
  * ```
1100
1126
  */
1101
- PRE_CUSTOM_REVIVE = 75,
1127
+ PRE_CUSTOM_REVIVE = 77,
1102
1128
  /**
1103
1129
  * Fires from the `POST_PEFFECT_UPDATE` callback when an item becomes queued (i.e. when the player
1104
1130
  * begins to hold the item above their head).
@@ -1117,7 +1143,7 @@ export declare enum ModCallbackCustom {
1117
1143
  * ): void {}
1118
1144
  * ```
1119
1145
  */
1120
- PRE_ITEM_PICKUP = 76,
1146
+ PRE_ITEM_PICKUP = 78,
1121
1147
  /**
1122
1148
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
1123
1149
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -1131,5 +1157,5 @@ export declare enum ModCallbackCustom {
1131
1157
  * function preNewLevel(player: EntityPlayer): void {}
1132
1158
  * ```
1133
1159
  */
1134
- PRE_NEW_LEVEL = 77
1160
+ PRE_NEW_LEVEL = 79
1135
1161
  }
@@ -6,160 +6,164 @@ local ____exports = {}
6
6
  -- subscriptions.
7
7
  -- - You must upgrade your mod with the `upgradeMod` helper function before using a custom callback.
8
8
  ____exports.ModCallbackCustom = {}
9
- ____exports.ModCallbackCustom.POST_BOMB_INIT_LATE = 0
9
+ ____exports.ModCallbackCustom.POST_AMBUSH_FINISHED = 0
10
+ ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_AMBUSH_FINISHED] = "POST_AMBUSH_FINISHED"
11
+ ____exports.ModCallbackCustom.POST_AMBUSH_STARTED = 1
12
+ ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_AMBUSH_STARTED] = "POST_AMBUSH_STARTED"
13
+ ____exports.ModCallbackCustom.POST_BOMB_INIT_LATE = 2
10
14
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_BOMB_INIT_LATE] = "POST_BOMB_INIT_LATE"
11
- ____exports.ModCallbackCustom.POST_BONE_SWING = 1
15
+ ____exports.ModCallbackCustom.POST_BONE_SWING = 3
12
16
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_BONE_SWING] = "POST_BONE_SWING"
13
- ____exports.ModCallbackCustom.POST_COLLECTIBLE_INIT_FIRST = 2
17
+ ____exports.ModCallbackCustom.POST_COLLECTIBLE_INIT_FIRST = 4
14
18
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_COLLECTIBLE_INIT_FIRST] = "POST_COLLECTIBLE_INIT_FIRST"
15
- ____exports.ModCallbackCustom.POST_CURSED_TELEPORT = 3
19
+ ____exports.ModCallbackCustom.POST_CURSED_TELEPORT = 5
16
20
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_CURSED_TELEPORT] = "POST_CURSED_TELEPORT"
17
- ____exports.ModCallbackCustom.POST_CUSTOM_DOOR_ENTER = 4
21
+ ____exports.ModCallbackCustom.POST_CUSTOM_DOOR_ENTER = 6
18
22
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_CUSTOM_DOOR_ENTER] = "POST_CUSTOM_DOOR_ENTER"
19
- ____exports.ModCallbackCustom.POST_CUSTOM_REVIVE = 5
23
+ ____exports.ModCallbackCustom.POST_CUSTOM_REVIVE = 7
20
24
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_CUSTOM_REVIVE] = "POST_CUSTOM_REVIVE"
21
- ____exports.ModCallbackCustom.POST_DOOR_RENDER = 6
25
+ ____exports.ModCallbackCustom.POST_DOOR_RENDER = 8
22
26
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_DOOR_RENDER] = "POST_DOOR_RENDER"
23
- ____exports.ModCallbackCustom.POST_DOOR_UPDATE = 7
27
+ ____exports.ModCallbackCustom.POST_DOOR_UPDATE = 9
24
28
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_DOOR_UPDATE] = "POST_DOOR_UPDATE"
25
- ____exports.ModCallbackCustom.POST_EFFECT_INIT_LATE = 8
29
+ ____exports.ModCallbackCustom.POST_EFFECT_INIT_LATE = 10
26
30
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_EFFECT_INIT_LATE] = "POST_EFFECT_INIT_LATE"
27
- ____exports.ModCallbackCustom.POST_EFFECT_STATE_CHANGED = 9
31
+ ____exports.ModCallbackCustom.POST_EFFECT_STATE_CHANGED = 11
28
32
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_EFFECT_STATE_CHANGED] = "POST_EFFECT_STATE_CHANGED"
29
- ____exports.ModCallbackCustom.POST_ESAU_JR = 10
33
+ ____exports.ModCallbackCustom.POST_ESAU_JR = 12
30
34
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_ESAU_JR] = "POST_ESAU_JR"
31
- ____exports.ModCallbackCustom.POST_FAMILIAR_INIT_LATE = 11
35
+ ____exports.ModCallbackCustom.POST_FAMILIAR_INIT_LATE = 13
32
36
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_FAMILIAR_INIT_LATE] = "POST_FAMILIAR_INIT_LATE"
33
- ____exports.ModCallbackCustom.POST_FAMILIAR_STATE_CHANGED = 12
37
+ ____exports.ModCallbackCustom.POST_FAMILIAR_STATE_CHANGED = 14
34
38
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_FAMILIAR_STATE_CHANGED] = "POST_FAMILIAR_STATE_CHANGED"
35
- ____exports.ModCallbackCustom.POST_FIRST_ESAU_JR = 13
39
+ ____exports.ModCallbackCustom.POST_FIRST_ESAU_JR = 15
36
40
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_FIRST_ESAU_JR] = "POST_FIRST_ESAU_JR"
37
- ____exports.ModCallbackCustom.POST_FIRST_FLIP = 14
41
+ ____exports.ModCallbackCustom.POST_FIRST_FLIP = 16
38
42
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_FIRST_FLIP] = "POST_FIRST_FLIP"
39
- ____exports.ModCallbackCustom.POST_FLIP = 15
43
+ ____exports.ModCallbackCustom.POST_FLIP = 17
40
44
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_FLIP] = "POST_FLIP"
41
- ____exports.ModCallbackCustom.POST_GAME_STARTED_REORDERED = 16
45
+ ____exports.ModCallbackCustom.POST_GAME_STARTED_REORDERED = 18
42
46
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_GAME_STARTED_REORDERED] = "POST_GAME_STARTED_REORDERED"
43
- ____exports.ModCallbackCustom.POST_GREED_MODE_WAVE = 17
47
+ ____exports.ModCallbackCustom.POST_GREED_MODE_WAVE = 19
44
48
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_GREED_MODE_WAVE] = "POST_GREED_MODE_WAVE"
45
- ____exports.ModCallbackCustom.POST_GRID_ENTITY_BROKEN = 18
49
+ ____exports.ModCallbackCustom.POST_GRID_ENTITY_BROKEN = 20
46
50
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_GRID_ENTITY_BROKEN] = "POST_GRID_ENTITY_BROKEN"
47
- ____exports.ModCallbackCustom.POST_GRID_ENTITY_COLLISION = 19
51
+ ____exports.ModCallbackCustom.POST_GRID_ENTITY_COLLISION = 21
48
52
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_GRID_ENTITY_COLLISION] = "POST_GRID_ENTITY_COLLISION"
49
- ____exports.ModCallbackCustom.POST_GRID_ENTITY_INIT = 20
53
+ ____exports.ModCallbackCustom.POST_GRID_ENTITY_INIT = 22
50
54
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_GRID_ENTITY_INIT] = "POST_GRID_ENTITY_INIT"
51
- ____exports.ModCallbackCustom.POST_GRID_ENTITY_REMOVE = 21
55
+ ____exports.ModCallbackCustom.POST_GRID_ENTITY_REMOVE = 23
52
56
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_GRID_ENTITY_REMOVE] = "POST_GRID_ENTITY_REMOVE"
53
- ____exports.ModCallbackCustom.POST_GRID_ENTITY_RENDER = 22
57
+ ____exports.ModCallbackCustom.POST_GRID_ENTITY_RENDER = 24
54
58
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_GRID_ENTITY_RENDER] = "POST_GRID_ENTITY_RENDER"
55
- ____exports.ModCallbackCustom.POST_GRID_ENTITY_STATE_CHANGED = 23
59
+ ____exports.ModCallbackCustom.POST_GRID_ENTITY_STATE_CHANGED = 25
56
60
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_GRID_ENTITY_STATE_CHANGED] = "POST_GRID_ENTITY_STATE_CHANGED"
57
- ____exports.ModCallbackCustom.POST_GRID_ENTITY_UPDATE = 24
61
+ ____exports.ModCallbackCustom.POST_GRID_ENTITY_UPDATE = 26
58
62
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_GRID_ENTITY_UPDATE] = "POST_GRID_ENTITY_UPDATE"
59
- ____exports.ModCallbackCustom.POST_HOLY_MANTLE_REMOVED = 25
63
+ ____exports.ModCallbackCustom.POST_HOLY_MANTLE_REMOVED = 27
60
64
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_HOLY_MANTLE_REMOVED] = "POST_HOLY_MANTLE_REMOVED"
61
- ____exports.ModCallbackCustom.POST_ITEM_DISCHARGE = 26
65
+ ____exports.ModCallbackCustom.POST_ITEM_DISCHARGE = 28
62
66
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_ITEM_DISCHARGE] = "POST_ITEM_DISCHARGE"
63
- ____exports.ModCallbackCustom.POST_ITEM_PICKUP = 27
67
+ ____exports.ModCallbackCustom.POST_ITEM_PICKUP = 29
64
68
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_ITEM_PICKUP] = "POST_ITEM_PICKUP"
65
- ____exports.ModCallbackCustom.POST_KNIFE_INIT_LATE = 28
69
+ ____exports.ModCallbackCustom.POST_KNIFE_INIT_LATE = 30
66
70
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_KNIFE_INIT_LATE] = "POST_KNIFE_INIT_LATE"
67
- ____exports.ModCallbackCustom.POST_LASER_INIT_LATE = 29
71
+ ____exports.ModCallbackCustom.POST_LASER_INIT_LATE = 31
68
72
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_LASER_INIT_LATE] = "POST_LASER_INIT_LATE"
69
- ____exports.ModCallbackCustom.POST_NEW_LEVEL_REORDERED = 30
73
+ ____exports.ModCallbackCustom.POST_NEW_LEVEL_REORDERED = 32
70
74
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_NEW_LEVEL_REORDERED] = "POST_NEW_LEVEL_REORDERED"
71
- ____exports.ModCallbackCustom.POST_NEW_ROOM_EARLY = 31
75
+ ____exports.ModCallbackCustom.POST_NEW_ROOM_EARLY = 33
72
76
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_NEW_ROOM_EARLY] = "POST_NEW_ROOM_EARLY"
73
- ____exports.ModCallbackCustom.POST_NEW_ROOM_REORDERED = 32
77
+ ____exports.ModCallbackCustom.POST_NEW_ROOM_REORDERED = 34
74
78
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_NEW_ROOM_REORDERED] = "POST_NEW_ROOM_REORDERED"
75
- ____exports.ModCallbackCustom.POST_NPC_INIT_LATE = 33
79
+ ____exports.ModCallbackCustom.POST_NPC_INIT_LATE = 35
76
80
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_NPC_INIT_LATE] = "POST_NPC_INIT_LATE"
77
- ____exports.ModCallbackCustom.POST_NPC_STATE_CHANGED = 34
81
+ ____exports.ModCallbackCustom.POST_NPC_STATE_CHANGED = 36
78
82
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_NPC_STATE_CHANGED] = "POST_NPC_STATE_CHANGED"
79
- ____exports.ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED = 35
83
+ ____exports.ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED = 37
80
84
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED] = "POST_PEFFECT_UPDATE_REORDERED"
81
- ____exports.ModCallbackCustom.POST_PICKUP_COLLECT = 36
85
+ ____exports.ModCallbackCustom.POST_PICKUP_COLLECT = 38
82
86
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PICKUP_COLLECT] = "POST_PICKUP_COLLECT"
83
- ____exports.ModCallbackCustom.POST_PICKUP_INIT_FIRST = 37
87
+ ____exports.ModCallbackCustom.POST_PICKUP_INIT_FIRST = 39
84
88
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PICKUP_INIT_FIRST] = "POST_PICKUP_INIT_FIRST"
85
- ____exports.ModCallbackCustom.POST_PICKUP_INIT_LATE = 38
89
+ ____exports.ModCallbackCustom.POST_PICKUP_INIT_LATE = 40
86
90
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PICKUP_INIT_LATE] = "POST_PICKUP_INIT_LATE"
87
- ____exports.ModCallbackCustom.POST_PICKUP_STATE_CHANGED = 39
91
+ ____exports.ModCallbackCustom.POST_PICKUP_STATE_CHANGED = 41
88
92
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PICKUP_STATE_CHANGED] = "POST_PICKUP_STATE_CHANGED"
89
- ____exports.ModCallbackCustom.POST_PIT_RENDER = 40
93
+ ____exports.ModCallbackCustom.POST_PIT_RENDER = 42
90
94
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PIT_RENDER] = "POST_PIT_RENDER"
91
- ____exports.ModCallbackCustom.POST_PIT_UPDATE = 41
95
+ ____exports.ModCallbackCustom.POST_PIT_UPDATE = 43
92
96
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PIT_UPDATE] = "POST_PIT_UPDATE"
93
- ____exports.ModCallbackCustom.POST_PLAYER_CHANGE_HEALTH = 42
97
+ ____exports.ModCallbackCustom.POST_PLAYER_CHANGE_HEALTH = 44
94
98
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PLAYER_CHANGE_HEALTH] = "POST_PLAYER_CHANGE_HEALTH"
95
- ____exports.ModCallbackCustom.POST_PLAYER_CHANGE_TYPE = 43
99
+ ____exports.ModCallbackCustom.POST_PLAYER_CHANGE_TYPE = 45
96
100
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PLAYER_CHANGE_TYPE] = "POST_PLAYER_CHANGE_TYPE"
97
- ____exports.ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED = 44
101
+ ____exports.ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED = 46
98
102
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED] = "POST_PLAYER_COLLECTIBLE_ADDED"
99
- ____exports.ModCallbackCustom.POST_PLAYER_COLLECTIBLE_REMOVED = 45
103
+ ____exports.ModCallbackCustom.POST_PLAYER_COLLECTIBLE_REMOVED = 47
100
104
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PLAYER_COLLECTIBLE_REMOVED] = "POST_PLAYER_COLLECTIBLE_REMOVED"
101
- ____exports.ModCallbackCustom.POST_PLAYER_FATAL_DAMAGE = 46
105
+ ____exports.ModCallbackCustom.POST_PLAYER_FATAL_DAMAGE = 48
102
106
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PLAYER_FATAL_DAMAGE] = "POST_PLAYER_FATAL_DAMAGE"
103
- ____exports.ModCallbackCustom.POST_PLAYER_INIT_LATE = 47
107
+ ____exports.ModCallbackCustom.POST_PLAYER_INIT_LATE = 49
104
108
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PLAYER_INIT_LATE] = "POST_PLAYER_INIT_LATE"
105
- ____exports.ModCallbackCustom.POST_PLAYER_INIT_REORDERED = 48
109
+ ____exports.ModCallbackCustom.POST_PLAYER_INIT_REORDERED = 50
106
110
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PLAYER_INIT_REORDERED] = "POST_PLAYER_INIT_REORDERED"
107
- ____exports.ModCallbackCustom.POST_PLAYER_RENDER_REORDERED = 49
111
+ ____exports.ModCallbackCustom.POST_PLAYER_RENDER_REORDERED = 51
108
112
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PLAYER_RENDER_REORDERED] = "POST_PLAYER_RENDER_REORDERED"
109
- ____exports.ModCallbackCustom.POST_PLAYER_UPDATE_REORDERED = 50
113
+ ____exports.ModCallbackCustom.POST_PLAYER_UPDATE_REORDERED = 52
110
114
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PLAYER_UPDATE_REORDERED] = "POST_PLAYER_UPDATE_REORDERED"
111
- ____exports.ModCallbackCustom.POST_POOP_RENDER = 51
115
+ ____exports.ModCallbackCustom.POST_POOP_RENDER = 53
112
116
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_POOP_RENDER] = "POST_POOP_RENDER"
113
- ____exports.ModCallbackCustom.POST_POOP_UPDATE = 52
117
+ ____exports.ModCallbackCustom.POST_POOP_UPDATE = 54
114
118
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_POOP_UPDATE] = "POST_POOP_UPDATE"
115
- ____exports.ModCallbackCustom.POST_PRESSURE_PLATE_RENDER = 53
119
+ ____exports.ModCallbackCustom.POST_PRESSURE_PLATE_RENDER = 55
116
120
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PRESSURE_PLATE_RENDER] = "POST_PRESSURE_PLATE_RENDER"
117
- ____exports.ModCallbackCustom.POST_PRESSURE_PLATE_UPDATE = 54
121
+ ____exports.ModCallbackCustom.POST_PRESSURE_PLATE_UPDATE = 56
118
122
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PRESSURE_PLATE_UPDATE] = "POST_PRESSURE_PLATE_UPDATE"
119
- ____exports.ModCallbackCustom.POST_PROJECTILE_INIT_LATE = 55
123
+ ____exports.ModCallbackCustom.POST_PROJECTILE_INIT_LATE = 57
120
124
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PROJECTILE_INIT_LATE] = "POST_PROJECTILE_INIT_LATE"
121
- ____exports.ModCallbackCustom.POST_PURCHASE = 56
125
+ ____exports.ModCallbackCustom.POST_PURCHASE = 58
122
126
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_PURCHASE] = "POST_PURCHASE"
123
- ____exports.ModCallbackCustom.POST_ROCK_RENDER = 57
127
+ ____exports.ModCallbackCustom.POST_ROCK_RENDER = 59
124
128
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_ROCK_RENDER] = "POST_ROCK_RENDER"
125
- ____exports.ModCallbackCustom.POST_ROCK_UPDATE = 58
129
+ ____exports.ModCallbackCustom.POST_ROCK_UPDATE = 60
126
130
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_ROCK_UPDATE] = "POST_ROCK_UPDATE"
127
- ____exports.ModCallbackCustom.POST_ROOM_CLEAR_CHANGED = 59
131
+ ____exports.ModCallbackCustom.POST_ROOM_CLEAR_CHANGED = 61
128
132
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_ROOM_CLEAR_CHANGED] = "POST_ROOM_CLEAR_CHANGED"
129
- ____exports.ModCallbackCustom.POST_SACRIFICE = 60
133
+ ____exports.ModCallbackCustom.POST_SACRIFICE = 62
130
134
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_SACRIFICE] = "POST_SACRIFICE"
131
- ____exports.ModCallbackCustom.POST_SLOT_ANIMATION_CHANGED = 61
135
+ ____exports.ModCallbackCustom.POST_SLOT_ANIMATION_CHANGED = 63
132
136
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_SLOT_ANIMATION_CHANGED] = "POST_SLOT_ANIMATION_CHANGED"
133
- ____exports.ModCallbackCustom.POST_SLOT_DESTROYED = 62
137
+ ____exports.ModCallbackCustom.POST_SLOT_DESTROYED = 64
134
138
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_SLOT_DESTROYED] = "POST_SLOT_DESTROYED"
135
- ____exports.ModCallbackCustom.POST_SLOT_INIT = 63
139
+ ____exports.ModCallbackCustom.POST_SLOT_INIT = 65
136
140
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_SLOT_INIT] = "POST_SLOT_INIT"
137
- ____exports.ModCallbackCustom.POST_SLOT_RENDER = 64
141
+ ____exports.ModCallbackCustom.POST_SLOT_RENDER = 66
138
142
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_SLOT_RENDER] = "POST_SLOT_RENDER"
139
- ____exports.ModCallbackCustom.POST_SLOT_UPDATE = 65
143
+ ____exports.ModCallbackCustom.POST_SLOT_UPDATE = 67
140
144
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_SLOT_UPDATE] = "POST_SLOT_UPDATE"
141
- ____exports.ModCallbackCustom.POST_SPIKES_RENDER = 66
145
+ ____exports.ModCallbackCustom.POST_SPIKES_RENDER = 68
142
146
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_SPIKES_RENDER] = "POST_SPIKES_RENDER"
143
- ____exports.ModCallbackCustom.POST_SPIKES_UPDATE = 67
147
+ ____exports.ModCallbackCustom.POST_SPIKES_UPDATE = 69
144
148
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_SPIKES_UPDATE] = "POST_SPIKES_UPDATE"
145
- ____exports.ModCallbackCustom.POST_TEAR_INIT_LATE = 68
149
+ ____exports.ModCallbackCustom.POST_TEAR_INIT_LATE = 70
146
150
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_TEAR_INIT_LATE] = "POST_TEAR_INIT_LATE"
147
- ____exports.ModCallbackCustom.POST_TEAR_INIT_VERY_LATE = 69
151
+ ____exports.ModCallbackCustom.POST_TEAR_INIT_VERY_LATE = 71
148
152
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_TEAR_INIT_VERY_LATE] = "POST_TEAR_INIT_VERY_LATE"
149
- ____exports.ModCallbackCustom.POST_TNT_RENDER = 70
153
+ ____exports.ModCallbackCustom.POST_TNT_RENDER = 72
150
154
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_TNT_RENDER] = "POST_TNT_RENDER"
151
- ____exports.ModCallbackCustom.POST_TNT_UPDATE = 71
155
+ ____exports.ModCallbackCustom.POST_TNT_UPDATE = 73
152
156
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_TNT_UPDATE] = "POST_TNT_UPDATE"
153
- ____exports.ModCallbackCustom.POST_TRANSFORMATION = 72
157
+ ____exports.ModCallbackCustom.POST_TRANSFORMATION = 74
154
158
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_TRANSFORMATION] = "POST_TRANSFORMATION"
155
- ____exports.ModCallbackCustom.POST_TRINKET_BREAK = 73
159
+ ____exports.ModCallbackCustom.POST_TRINKET_BREAK = 75
156
160
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.POST_TRINKET_BREAK] = "POST_TRINKET_BREAK"
157
- ____exports.ModCallbackCustom.PRE_BERSERK_DEATH = 74
161
+ ____exports.ModCallbackCustom.PRE_BERSERK_DEATH = 76
158
162
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.PRE_BERSERK_DEATH] = "PRE_BERSERK_DEATH"
159
- ____exports.ModCallbackCustom.PRE_CUSTOM_REVIVE = 75
163
+ ____exports.ModCallbackCustom.PRE_CUSTOM_REVIVE = 77
160
164
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.PRE_CUSTOM_REVIVE] = "PRE_CUSTOM_REVIVE"
161
- ____exports.ModCallbackCustom.PRE_ITEM_PICKUP = 76
165
+ ____exports.ModCallbackCustom.PRE_ITEM_PICKUP = 78
162
166
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.PRE_ITEM_PICKUP] = "PRE_ITEM_PICKUP"
163
- ____exports.ModCallbackCustom.PRE_NEW_LEVEL = 77
167
+ ____exports.ModCallbackCustom.PRE_NEW_LEVEL = 79
164
168
  ____exports.ModCallbackCustom[____exports.ModCallbackCustom.PRE_NEW_LEVEL] = "PRE_NEW_LEVEL"
165
169
  return ____exports
@@ -23,7 +23,8 @@ local saveDataManager = ____exports.saveDataManager
23
23
  function useCardSoulOfIsaac(self)
24
24
  v.room.trackedCollectibles:clear()
25
25
  end
26
- function postPickupUpdateCollectible(self, collectible)
26
+ function postPickupUpdateCollectible(self, pickup)
27
+ local collectible = pickup
27
28
  if collectible.SubType == CollectibleType.NULL then
28
29
  return
29
30
  end
@@ -3,6 +3,8 @@ local ____customRevive = require("callbacks.customRevive")
3
3
  local customReviveCallbacksInit = ____customRevive.customReviveCallbacksInit
4
4
  local ____itemPickup = require("callbacks.itemPickup")
5
5
  local itemPickupCallbacksInit = ____itemPickup.itemPickupCallbacksInit
6
+ local ____postAmbush = require("callbacks.postAmbush")
7
+ local postAmbushCallbacksInit = ____postAmbush.postAmbushCallbacksInit
6
8
  local ____postBombInitLate = require("callbacks.postBombInitLate")
7
9
  local postBombInitLateCallbackInit = ____postBombInitLate.postBombInitLateCallbackInit
8
10
  local ____postBoneSwing = require("callbacks.postBoneSwing")
@@ -124,6 +126,7 @@ local reorderedCallbacksInit = ____reorderedCallbacks.reorderedCallbacksInit
124
126
  function ____exports.initCustomCallbacks(self, mod)
125
127
  customReviveCallbacksInit(nil, mod)
126
128
  itemPickupCallbacksInit(nil, mod)
129
+ postAmbushCallbacksInit(nil, mod)
127
130
  postBombInitLateCallbackInit(nil, mod)
128
131
  postBoneSwingCallbackInit(nil, mod)
129
132
  postCollectibleInitFirstCallbackInit(nil, mod)
@@ -1,3 +1,5 @@
1
+ import { PostAmbushFinishedRegisterParameters } from "../callbacks/subscriptions/postAmbushFinished";
2
+ import { PostAmbushStartedRegisterParameters } from "../callbacks/subscriptions/postAmbushStarted";
1
3
  import { PostBombInitRegisterParameters } from "../callbacks/subscriptions/postBombInitLate";
2
4
  import { PostBoneSwingRegisterParameters } from "../callbacks/subscriptions/postBoneSwing";
3
5
  import { PostCollectibleInitFirstRegisterParameters } from "../callbacks/subscriptions/postCollectibleInitFirst";
@@ -78,6 +80,8 @@ import { PreItemPickupRegisterParameters } from "../callbacks/subscriptions/preI
78
80
  import { PreNewLevelRegisterParameters } from "../callbacks/subscriptions/preNewLevel";
79
81
  import { ModCallbackCustom } from "../enums/ModCallbackCustom";
80
82
  export interface AddCallbackParameterCustom {
83
+ [ModCallbackCustom.POST_AMBUSH_FINISHED]: PostAmbushFinishedRegisterParameters;
84
+ [ModCallbackCustom.POST_AMBUSH_STARTED]: PostAmbushStartedRegisterParameters;
81
85
  [ModCallbackCustom.POST_BOMB_INIT_LATE]: PostBombInitRegisterParameters;
82
86
  [ModCallbackCustom.POST_BONE_SWING]: PostBoneSwingRegisterParameters;
83
87
  [ModCallbackCustom.POST_COLLECTIBLE_INIT_FIRST]: PostCollectibleInitFirstRegisterParameters;
@@ -1,4 +1,8 @@
1
1
  local ____exports = {}
2
+ local ____postAmbushFinished = require("callbacks.subscriptions.postAmbushFinished")
3
+ local postAmbushFinishedRegister = ____postAmbushFinished.postAmbushFinishedRegister
4
+ local ____postAmbushStarted = require("callbacks.subscriptions.postAmbushStarted")
5
+ local postAmbushStartedRegister = ____postAmbushStarted.postAmbushStartedRegister
2
6
  local ____postBombInitLate = require("callbacks.subscriptions.postBombInitLate")
3
7
  local postBombInitLateRegister = ____postBombInitLate.postBombInitLateRegister
4
8
  local ____postBoneSwing = require("callbacks.subscriptions.postBoneSwing")
@@ -158,6 +162,8 @@ local preNewLevelRegister = ____preNewLevel.preNewLevelRegister
158
162
  local ____ModCallbackCustom = require("enums.ModCallbackCustom")
159
163
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
160
164
  ____exports.CALLBACK_REGISTER_FUNCTIONS = {
165
+ [ModCallbackCustom.POST_AMBUSH_FINISHED] = postAmbushFinishedRegister,
166
+ [ModCallbackCustom.POST_AMBUSH_STARTED] = postAmbushStartedRegister,
161
167
  [ModCallbackCustom.POST_BOMB_INIT_LATE] = postBombInitLateRegister,
162
168
  [ModCallbackCustom.POST_BONE_SWING] = postBoneSwingRegister,
163
169
  [ModCallbackCustom.POST_COLLECTIBLE_INIT_FIRST] = postCollectibleInitFirstRegister,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "3.5.0",
3
+ "version": "3.7.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -22,6 +22,6 @@
22
22
  "main": "index",
23
23
  "types": "index.d.ts",
24
24
  "dependencies": {
25
- "isaac-typescript-definitions": "^2.0.59"
25
+ "isaac-typescript-definitions": "^2.1.1"
26
26
  }
27
27
  }