isaacscript-common 29.6.2 → 29.8.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.
- package/dist/index.rollup.d.ts +86 -40
- package/dist/isaacscript-common.lua +167 -40
- package/dist/src/callbackClasses.d.ts +2 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +10 -0
- package/dist/src/callbacks.d.ts +41 -39
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +2 -0
- package/dist/src/classes/callbacks/PostProjectileKill.d.ts +16 -0
- package/dist/src/classes/callbacks/PostProjectileKill.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostProjectileKill.lua +46 -0
- package/dist/src/classes/callbacks/PostTearKill.d.ts +16 -0
- package/dist/src/classes/callbacks/PostTearKill.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostTearKill.lua +46 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +67 -39
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +43 -39
- package/dist/src/functions/charge.d.ts +7 -1
- package/dist/src/functions/charge.d.ts.map +1 -1
- package/dist/src/functions/charge.lua +18 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +12 -1
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbackClasses.ts +2 -0
- package/src/callbacks.ts +2 -0
- package/src/classes/callbacks/PostProjectileKill.ts +66 -0
- package/src/classes/callbacks/PostTearKill.ts +64 -0
- package/src/enums/ModCallbackCustom.ts +30 -0
- package/src/functions/charge.ts +18 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +13 -0
package/dist/index.rollup.d.ts
CHANGED
|
@@ -555,7 +555,13 @@ declare interface AddCallbackParametersCustom {
|
|
|
555
555
|
];
|
|
556
556
|
[ModCallbackCustom.POST_PROJECTILE_INIT_LATE]: [
|
|
557
557
|
callback: (projectile: EntityProjectile) => void,
|
|
558
|
-
projectileVariant?: ProjectileVariant
|
|
558
|
+
projectileVariant?: ProjectileVariant,
|
|
559
|
+
subType?: int
|
|
560
|
+
];
|
|
561
|
+
[ModCallbackCustom.POST_PROJECTILE_KILL]: [
|
|
562
|
+
callback: (projectile: EntityProjectile) => void,
|
|
563
|
+
projectileVariant?: ProjectileVariant,
|
|
564
|
+
subType?: number
|
|
559
565
|
];
|
|
560
566
|
[ModCallbackCustom.POST_PROJECTILE_UPDATE_FILTER]: [
|
|
561
567
|
callback: (projectile: EntityProjectile) => void,
|
|
@@ -644,6 +650,11 @@ declare interface AddCallbackParametersCustom {
|
|
|
644
650
|
tearVariant?: TearVariant,
|
|
645
651
|
subType?: int
|
|
646
652
|
];
|
|
653
|
+
[ModCallbackCustom.POST_TEAR_KILL]: [
|
|
654
|
+
callback: (tear: EntityTear) => void,
|
|
655
|
+
tearVariant?: TearVariant,
|
|
656
|
+
subType?: int
|
|
657
|
+
];
|
|
647
658
|
[ModCallbackCustom.POST_TEAR_RENDER_FILTER]: [
|
|
648
659
|
callback: (tear: EntityTear, renderOffset: Vector) => void,
|
|
649
660
|
tearVariant?: TearVariant,
|
|
@@ -6904,6 +6915,13 @@ export declare function getTSTLClassName(object: unknown): string | undefined;
|
|
|
6904
6915
|
*/
|
|
6905
6916
|
export declare function getUnusedDoorSlots(): DoorSlot[];
|
|
6906
6917
|
|
|
6918
|
+
/**
|
|
6919
|
+
* Helper function to find the active slots that the player has the corresponding collectible type
|
|
6920
|
+
* in and have enough charge to be used. Returns an empty array if the player does not have the
|
|
6921
|
+
* collectible in any active slot or does not have enough charges.
|
|
6922
|
+
*/
|
|
6923
|
+
export declare function getUsableActiveItemSlots(player: EntityPlayer, collectibleType: CollectibleType): ActiveSlot[];
|
|
6924
|
+
|
|
6907
6925
|
/**
|
|
6908
6926
|
* Helper function to get an array with every valid vanilla card sub-type.
|
|
6909
6927
|
*
|
|
@@ -10978,6 +10996,20 @@ export declare enum ModCallbackCustom {
|
|
|
10978
10996
|
* ```
|
|
10979
10997
|
*/
|
|
10980
10998
|
POST_PROJECTILE_INIT_LATE = 99,
|
|
10999
|
+
/**
|
|
11000
|
+
* Fires when the provided projectile is removed after colliding with an entity or grid entity.
|
|
11001
|
+
*
|
|
11002
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11003
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11004
|
+
* matches the `ProjectileVariant` provided.
|
|
11005
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11006
|
+
* matches the sub-type provided.
|
|
11007
|
+
*
|
|
11008
|
+
* ```ts
|
|
11009
|
+
* function postProjectileKill(projectile: EntityProjectile): void {}
|
|
11010
|
+
* ```
|
|
11011
|
+
*/
|
|
11012
|
+
POST_PROJECTILE_KILL = 100,
|
|
10981
11013
|
/**
|
|
10982
11014
|
* The exact same thing as the vanilla `POST_PROJECTILE_RENDER` callback, except this callback
|
|
10983
11015
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10992,7 +11024,7 @@ export declare enum ModCallbackCustom {
|
|
|
10992
11024
|
* function postProjectileRenderFilter(projectile: EntityProjectile, renderOffset: Vector): void {}
|
|
10993
11025
|
* ```
|
|
10994
11026
|
*/
|
|
10995
|
-
POST_PROJECTILE_RENDER_FILTER =
|
|
11027
|
+
POST_PROJECTILE_RENDER_FILTER = 101,
|
|
10996
11028
|
/**
|
|
10997
11029
|
* The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
|
|
10998
11030
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11007,7 +11039,7 @@ export declare enum ModCallbackCustom {
|
|
|
11007
11039
|
* function postProjectileUpdateFilter(projectile: EntityProjectile): void {}
|
|
11008
11040
|
* ```
|
|
11009
11041
|
*/
|
|
11010
|
-
POST_PROJECTILE_UPDATE_FILTER =
|
|
11042
|
+
POST_PROJECTILE_UPDATE_FILTER = 102,
|
|
11011
11043
|
/**
|
|
11012
11044
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
11013
11045
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -11023,7 +11055,7 @@ export declare enum ModCallbackCustom {
|
|
|
11023
11055
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
11024
11056
|
* ```
|
|
11025
11057
|
*/
|
|
11026
|
-
POST_PURCHASE =
|
|
11058
|
+
POST_PURCHASE = 103,
|
|
11027
11059
|
/**
|
|
11028
11060
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
11029
11061
|
*
|
|
@@ -11037,7 +11069,7 @@ export declare enum ModCallbackCustom {
|
|
|
11037
11069
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
11038
11070
|
* ```
|
|
11039
11071
|
*/
|
|
11040
|
-
POST_ROCK_RENDER =
|
|
11072
|
+
POST_ROCK_RENDER = 104,
|
|
11041
11073
|
/**
|
|
11042
11074
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
11043
11075
|
*
|
|
@@ -11051,7 +11083,7 @@ export declare enum ModCallbackCustom {
|
|
|
11051
11083
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
11052
11084
|
* ```
|
|
11053
11085
|
*/
|
|
11054
|
-
POST_ROCK_UPDATE =
|
|
11086
|
+
POST_ROCK_UPDATE = 105,
|
|
11055
11087
|
/**
|
|
11056
11088
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
11057
11089
|
* the `Room.IsClear` method).
|
|
@@ -11068,7 +11100,7 @@ export declare enum ModCallbackCustom {
|
|
|
11068
11100
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
11069
11101
|
* ```
|
|
11070
11102
|
*/
|
|
11071
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
11103
|
+
POST_ROOM_CLEAR_CHANGED = 106,
|
|
11072
11104
|
/**
|
|
11073
11105
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
11074
11106
|
* Room.
|
|
@@ -11083,7 +11115,7 @@ export declare enum ModCallbackCustom {
|
|
|
11083
11115
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
11084
11116
|
* ```
|
|
11085
11117
|
*/
|
|
11086
|
-
POST_SACRIFICE =
|
|
11118
|
+
POST_SACRIFICE = 107,
|
|
11087
11119
|
/**
|
|
11088
11120
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
11089
11121
|
*
|
|
@@ -11101,7 +11133,7 @@ export declare enum ModCallbackCustom {
|
|
|
11101
11133
|
* ): void {}
|
|
11102
11134
|
* ```
|
|
11103
11135
|
*/
|
|
11104
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
11136
|
+
POST_SLOT_ANIMATION_CHANGED = 108,
|
|
11105
11137
|
/**
|
|
11106
11138
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
11107
11139
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -11125,7 +11157,7 @@ export declare enum ModCallbackCustom {
|
|
|
11125
11157
|
* ): void {}
|
|
11126
11158
|
* ```
|
|
11127
11159
|
*/
|
|
11128
|
-
POST_SLOT_COLLISION =
|
|
11160
|
+
POST_SLOT_COLLISION = 109,
|
|
11129
11161
|
/**
|
|
11130
11162
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
11131
11163
|
* destroyed or a beggar is removed.
|
|
@@ -11167,7 +11199,7 @@ export declare enum ModCallbackCustom {
|
|
|
11167
11199
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
11168
11200
|
* ```
|
|
11169
11201
|
*/
|
|
11170
|
-
POST_SLOT_DESTROYED =
|
|
11202
|
+
POST_SLOT_DESTROYED = 110,
|
|
11171
11203
|
/**
|
|
11172
11204
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
11173
11205
|
*
|
|
@@ -11186,7 +11218,7 @@ export declare enum ModCallbackCustom {
|
|
|
11186
11218
|
* function postSlotInit(slot: Entity): void {}
|
|
11187
11219
|
* ```
|
|
11188
11220
|
*/
|
|
11189
|
-
POST_SLOT_INIT =
|
|
11221
|
+
POST_SLOT_INIT = 111,
|
|
11190
11222
|
/**
|
|
11191
11223
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
11192
11224
|
*
|
|
@@ -11200,7 +11232,7 @@ export declare enum ModCallbackCustom {
|
|
|
11200
11232
|
* function postSlotRender(slot: Entity): void {}
|
|
11201
11233
|
* ```
|
|
11202
11234
|
*/
|
|
11203
|
-
POST_SLOT_RENDER =
|
|
11235
|
+
POST_SLOT_RENDER = 112,
|
|
11204
11236
|
/**
|
|
11205
11237
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
11206
11238
|
*
|
|
@@ -11214,7 +11246,7 @@ export declare enum ModCallbackCustom {
|
|
|
11214
11246
|
* function postSlotUpdate(slot: Entity): void {}
|
|
11215
11247
|
* ```
|
|
11216
11248
|
*/
|
|
11217
|
-
POST_SLOT_UPDATE =
|
|
11249
|
+
POST_SLOT_UPDATE = 113,
|
|
11218
11250
|
/**
|
|
11219
11251
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
11220
11252
|
*
|
|
@@ -11226,7 +11258,7 @@ export declare enum ModCallbackCustom {
|
|
|
11226
11258
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
11227
11259
|
* ```
|
|
11228
11260
|
*/
|
|
11229
|
-
POST_SPIKES_RENDER =
|
|
11261
|
+
POST_SPIKES_RENDER = 114,
|
|
11230
11262
|
/**
|
|
11231
11263
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
11232
11264
|
*
|
|
@@ -11238,7 +11270,7 @@ export declare enum ModCallbackCustom {
|
|
|
11238
11270
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
11239
11271
|
* ```
|
|
11240
11272
|
*/
|
|
11241
|
-
POST_SPIKES_UPDATE =
|
|
11273
|
+
POST_SPIKES_UPDATE = 115,
|
|
11242
11274
|
/**
|
|
11243
11275
|
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
11244
11276
|
* to specify extra arguments for additional filtration.
|
|
@@ -11253,7 +11285,7 @@ export declare enum ModCallbackCustom {
|
|
|
11253
11285
|
* function postTearInitFilter(tear: EntityTear): void {}
|
|
11254
11286
|
* ```
|
|
11255
11287
|
*/
|
|
11256
|
-
POST_TEAR_INIT_FILTER =
|
|
11288
|
+
POST_TEAR_INIT_FILTER = 116,
|
|
11257
11289
|
/**
|
|
11258
11290
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11259
11291
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -11271,7 +11303,7 @@ export declare enum ModCallbackCustom {
|
|
|
11271
11303
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
11272
11304
|
* ```
|
|
11273
11305
|
*/
|
|
11274
|
-
POST_TEAR_INIT_LATE =
|
|
11306
|
+
POST_TEAR_INIT_LATE = 117,
|
|
11275
11307
|
/**
|
|
11276
11308
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11277
11309
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -11288,7 +11320,21 @@ export declare enum ModCallbackCustom {
|
|
|
11288
11320
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
11289
11321
|
* ```
|
|
11290
11322
|
*/
|
|
11291
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
11323
|
+
POST_TEAR_INIT_VERY_LATE = 118,
|
|
11324
|
+
/**
|
|
11325
|
+
* Fires when the provided tear is removed after colliding with an entity or grid entity.
|
|
11326
|
+
*
|
|
11327
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11328
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11329
|
+
* matches the `TearVariant` provided.
|
|
11330
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11331
|
+
* matches the sub-type provided.
|
|
11332
|
+
*
|
|
11333
|
+
* ```ts
|
|
11334
|
+
* function postTearKill(tear: EntityTear): void {}
|
|
11335
|
+
* ```
|
|
11336
|
+
*/
|
|
11337
|
+
POST_TEAR_KILL = 119,
|
|
11292
11338
|
/**
|
|
11293
11339
|
* The exact same thing as the vanilla `POST_TEAR_RENDER` callback, except this callback allows
|
|
11294
11340
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11303,7 +11349,7 @@ export declare enum ModCallbackCustom {
|
|
|
11303
11349
|
* function postTearRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
|
|
11304
11350
|
* ```
|
|
11305
11351
|
*/
|
|
11306
|
-
POST_TEAR_RENDER_FILTER =
|
|
11352
|
+
POST_TEAR_RENDER_FILTER = 120,
|
|
11307
11353
|
/**
|
|
11308
11354
|
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
11309
11355
|
* to specify extra arguments for additional filtration.
|
|
@@ -11318,7 +11364,7 @@ export declare enum ModCallbackCustom {
|
|
|
11318
11364
|
* function postTearUpdateFilter(tear: EntityTear): void {}
|
|
11319
11365
|
* ```
|
|
11320
11366
|
*/
|
|
11321
|
-
POST_TEAR_UPDATE_FILTER =
|
|
11367
|
+
POST_TEAR_UPDATE_FILTER = 121,
|
|
11322
11368
|
/**
|
|
11323
11369
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
11324
11370
|
*
|
|
@@ -11330,7 +11376,7 @@ export declare enum ModCallbackCustom {
|
|
|
11330
11376
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
11331
11377
|
* ```
|
|
11332
11378
|
*/
|
|
11333
|
-
POST_TNT_RENDER =
|
|
11379
|
+
POST_TNT_RENDER = 122,
|
|
11334
11380
|
/**
|
|
11335
11381
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
11336
11382
|
*
|
|
@@ -11342,7 +11388,7 @@ export declare enum ModCallbackCustom {
|
|
|
11342
11388
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
11343
11389
|
* ```
|
|
11344
11390
|
*/
|
|
11345
|
-
POST_TNT_UPDATE =
|
|
11391
|
+
POST_TNT_UPDATE = 123,
|
|
11346
11392
|
/**
|
|
11347
11393
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
11348
11394
|
* transformation.
|
|
@@ -11361,7 +11407,7 @@ export declare enum ModCallbackCustom {
|
|
|
11361
11407
|
* ): void {}
|
|
11362
11408
|
* ```
|
|
11363
11409
|
*/
|
|
11364
|
-
POST_TRANSFORMATION =
|
|
11410
|
+
POST_TRANSFORMATION = 124,
|
|
11365
11411
|
/**
|
|
11366
11412
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
11367
11413
|
*
|
|
@@ -11376,7 +11422,7 @@ export declare enum ModCallbackCustom {
|
|
|
11376
11422
|
* ): void {}
|
|
11377
11423
|
* ```
|
|
11378
11424
|
*/
|
|
11379
|
-
POST_TRINKET_BREAK =
|
|
11425
|
+
POST_TRINKET_BREAK = 125,
|
|
11380
11426
|
/**
|
|
11381
11427
|
* The same thing as the vanilla `POST_USE_PILL` callback, except this callback passes the
|
|
11382
11428
|
* `PillColor` of the used pill as the final argument. It allows you to filter by the `PillColor`.
|
|
@@ -11399,7 +11445,7 @@ export declare enum ModCallbackCustom {
|
|
|
11399
11445
|
* ): void {}
|
|
11400
11446
|
* ```
|
|
11401
11447
|
*/
|
|
11402
|
-
POST_USE_PILL_FILTER =
|
|
11448
|
+
POST_USE_PILL_FILTER = 126,
|
|
11403
11449
|
/**
|
|
11404
11450
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
11405
11451
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -11415,7 +11461,7 @@ export declare enum ModCallbackCustom {
|
|
|
11415
11461
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
11416
11462
|
* ```
|
|
11417
11463
|
*/
|
|
11418
|
-
PRE_BERSERK_DEATH =
|
|
11464
|
+
PRE_BERSERK_DEATH = 127,
|
|
11419
11465
|
/**
|
|
11420
11466
|
* The exact same thing as the vanilla `PRE_BOMB_COLLISION` callback, except this callback allows
|
|
11421
11467
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11434,7 +11480,7 @@ export declare enum ModCallbackCustom {
|
|
|
11434
11480
|
* ): void {}
|
|
11435
11481
|
* ```
|
|
11436
11482
|
*/
|
|
11437
|
-
PRE_BOMB_COLLISION_FILTER =
|
|
11483
|
+
PRE_BOMB_COLLISION_FILTER = 128,
|
|
11438
11484
|
/**
|
|
11439
11485
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
11440
11486
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -11453,7 +11499,7 @@ export declare enum ModCallbackCustom {
|
|
|
11453
11499
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
11454
11500
|
* ```
|
|
11455
11501
|
*/
|
|
11456
|
-
PRE_CUSTOM_REVIVE =
|
|
11502
|
+
PRE_CUSTOM_REVIVE = 129,
|
|
11457
11503
|
/**
|
|
11458
11504
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
11459
11505
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11478,7 +11524,7 @@ export declare enum ModCallbackCustom {
|
|
|
11478
11524
|
* ): [EntityType, int, int, int] | undefined {}
|
|
11479
11525
|
* ```
|
|
11480
11526
|
*/
|
|
11481
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
11527
|
+
PRE_ENTITY_SPAWN_FILTER = 130,
|
|
11482
11528
|
/**
|
|
11483
11529
|
* The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
|
|
11484
11530
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11497,7 +11543,7 @@ export declare enum ModCallbackCustom {
|
|
|
11497
11543
|
* ): void {}
|
|
11498
11544
|
* ```
|
|
11499
11545
|
*/
|
|
11500
|
-
PRE_FAMILIAR_COLLISION_FILTER =
|
|
11546
|
+
PRE_FAMILIAR_COLLISION_FILTER = 131,
|
|
11501
11547
|
/**
|
|
11502
11548
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
11503
11549
|
* meets all of the conditions to pick it up.
|
|
@@ -11517,7 +11563,7 @@ export declare enum ModCallbackCustom {
|
|
|
11517
11563
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
11518
11564
|
* ```
|
|
11519
11565
|
*/
|
|
11520
|
-
PRE_GET_PEDESTAL =
|
|
11566
|
+
PRE_GET_PEDESTAL = 132,
|
|
11521
11567
|
/**
|
|
11522
11568
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
11523
11569
|
* the player begins to hold the item above their head).
|
|
@@ -11537,7 +11583,7 @@ export declare enum ModCallbackCustom {
|
|
|
11537
11583
|
* ): void {}
|
|
11538
11584
|
* ```
|
|
11539
11585
|
*/
|
|
11540
|
-
PRE_ITEM_PICKUP =
|
|
11586
|
+
PRE_ITEM_PICKUP = 133,
|
|
11541
11587
|
/**
|
|
11542
11588
|
* The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
|
|
11543
11589
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11556,7 +11602,7 @@ export declare enum ModCallbackCustom {
|
|
|
11556
11602
|
* ): void {}
|
|
11557
11603
|
* ```
|
|
11558
11604
|
*/
|
|
11559
|
-
PRE_KNIFE_COLLISION_FILTER =
|
|
11605
|
+
PRE_KNIFE_COLLISION_FILTER = 134,
|
|
11560
11606
|
/**
|
|
11561
11607
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
11562
11608
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -11570,7 +11616,7 @@ export declare enum ModCallbackCustom {
|
|
|
11570
11616
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
11571
11617
|
* ```
|
|
11572
11618
|
*/
|
|
11573
|
-
PRE_NEW_LEVEL =
|
|
11619
|
+
PRE_NEW_LEVEL = 135,
|
|
11574
11620
|
/**
|
|
11575
11621
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
11576
11622
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11591,7 +11637,7 @@ export declare enum ModCallbackCustom {
|
|
|
11591
11637
|
* ): boolean | undefined {}
|
|
11592
11638
|
* ```
|
|
11593
11639
|
*/
|
|
11594
|
-
PRE_NPC_COLLISION_FILTER =
|
|
11640
|
+
PRE_NPC_COLLISION_FILTER = 136,
|
|
11595
11641
|
/**
|
|
11596
11642
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
11597
11643
|
* to specify extra arguments for additional filtration.
|
|
@@ -11608,7 +11654,7 @@ export declare enum ModCallbackCustom {
|
|
|
11608
11654
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
11609
11655
|
* ```
|
|
11610
11656
|
*/
|
|
11611
|
-
PRE_NPC_UPDATE_FILTER =
|
|
11657
|
+
PRE_NPC_UPDATE_FILTER = 137,
|
|
11612
11658
|
/**
|
|
11613
11659
|
* The exact same thing as the vanilla `PRE_PROJECTILE_COLLISION` callback, except this callback
|
|
11614
11660
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11627,7 +11673,7 @@ export declare enum ModCallbackCustom {
|
|
|
11627
11673
|
* ): void {}
|
|
11628
11674
|
* ```
|
|
11629
11675
|
*/
|
|
11630
|
-
PRE_PROJECTILE_COLLISION_FILTER =
|
|
11676
|
+
PRE_PROJECTILE_COLLISION_FILTER = 138,
|
|
11631
11677
|
/**
|
|
11632
11678
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
11633
11679
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11650,7 +11696,7 @@ export declare enum ModCallbackCustom {
|
|
|
11650
11696
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
11651
11697
|
* ```
|
|
11652
11698
|
*/
|
|
11653
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
11699
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 139,
|
|
11654
11700
|
/**
|
|
11655
11701
|
* The exact same thing as the vanilla `PRE_TEAR_COLLISION` callback, except this callback allows
|
|
11656
11702
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11669,7 +11715,7 @@ export declare enum ModCallbackCustom {
|
|
|
11669
11715
|
* ): void {}
|
|
11670
11716
|
* ```
|
|
11671
11717
|
*/
|
|
11672
|
-
PRE_TEAR_COLLISION_FILTER =
|
|
11718
|
+
PRE_TEAR_COLLISION_FILTER = 140
|
|
11673
11719
|
}
|
|
11674
11720
|
|
|
11675
11721
|
/**
|