isaacscript-common 7.4.1 → 7.5.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/callbacks/postGridEntity.d.ts.map +1 -1
- package/dist/callbacks/postGridEntity.lua +53 -6
- package/dist/callbacks/postPlayerChangeStat.d.ts.map +1 -1
- package/dist/callbacks/postPlayerChangeStat.lua +9 -2
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.lua +5 -2
- package/dist/callbacks/subscriptions/postGridEntityCustomInit.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomInit.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomInit.lua +23 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRemove.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRemove.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRemove.lua +23 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.lua +29 -0
- package/dist/callbacks/subscriptions/postPlayerChangeStat.d.ts +3 -2
- package/dist/callbacks/subscriptions/postPlayerChangeStat.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.d.ts +131 -81
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.lua +67 -61
- package/dist/enums/StatType.d.ts +3 -1
- package/dist/enums/StatType.d.ts.map +1 -1
- package/dist/enums/StatType.lua +2 -0
- package/dist/features/customGridEntity.d.ts +30 -13
- package/dist/features/customGridEntity.d.ts.map +1 -1
- package/dist/features/customGridEntity.lua +67 -48
- package/dist/features/customStage/customStageGridEntities.d.ts.map +1 -1
- package/dist/features/customStage/customStageGridEntities.lua +37 -31
- package/dist/functions/dev.d.ts +20 -0
- package/dist/functions/dev.d.ts.map +1 -0
- package/dist/functions/dev.lua +34 -0
- package/dist/functions/gridEntities.d.ts +3 -0
- package/dist/functions/gridEntities.d.ts.map +1 -1
- package/dist/functions/gridEntities.lua +35 -4
- package/dist/functions/playerStats.d.ts.map +1 -1
- package/dist/functions/playerStats.lua +2 -1
- package/dist/functions/rooms.d.ts +5 -0
- package/dist/functions/rooms.d.ts.map +1 -1
- package/dist/functions/rooms.lua +12 -2
- package/dist/index.d.ts +11145 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +1134 -8
- package/dist/interfaces/StatTypeType.d.ts +1 -0
- package/dist/interfaces/StatTypeType.d.ts.map +1 -1
- package/dist/interfaces/private/AddCallbackParameterCustom.d.ts +6 -0
- package/dist/interfaces/private/AddCallbackParameterCustom.d.ts.map +1 -1
- package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
- package/dist/objects/callbackRegisterFunctions.lua +9 -0
- package/dist/types/PossibleStatType.d.ts +7 -0
- package/dist/types/PossibleStatType.d.ts.map +1 -0
- package/dist/{interfaces/index.lua → types/PossibleStatType.lua} +0 -0
- package/package.json +1 -1
- package/src/callbacks/postGridEntity.ts +75 -10
- package/src/callbacks/postPlayerChangeStat.ts +8 -4
- package/src/callbacks/subscriptions/postGridEntityCustomBroken.ts +4 -0
- package/src/callbacks/subscriptions/postGridEntityCustomInit.ts +38 -0
- package/src/callbacks/subscriptions/postGridEntityCustomRemove.ts +35 -0
- package/src/callbacks/subscriptions/postGridEntityCustomStateChanged.ts +42 -0
- package/src/callbacks/subscriptions/postPlayerChangeStat.ts +4 -7
- package/src/enums/ModCallbackCustom.ts +73 -20
- package/src/enums/StatType.ts +3 -3
- package/src/features/customGridEntity.ts +87 -61
- package/src/features/customStage/customStageGridEntities.ts +16 -7
- package/src/functions/dev.ts +31 -0
- package/src/functions/gridEntities.ts +33 -1
- package/src/functions/playerStats.ts +1 -0
- package/src/functions/rooms.ts +18 -0
- package/src/index.ts +208 -9
- package/src/interfaces/StatTypeType.ts +1 -0
- package/src/interfaces/private/AddCallbackParameterCustom.ts +6 -0
- package/src/objects/callbackRegisterFunctions.ts +9 -0
- package/src/types/PossibleStatType.ts +12 -0
- package/dist/classes/index.d.ts +0 -3
- package/dist/classes/index.d.ts.map +0 -1
- package/dist/classes/index.lua +0 -18
- package/dist/core/index.d.ts +0 -5
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.lua +0 -34
- package/dist/enums/DecorationVariant.d.ts +0 -10
- package/dist/enums/DecorationVariant.d.ts.map +0 -1
- package/dist/enums/DecorationVariant.lua +0 -7
- package/dist/enums/index.d.ts +0 -11
- package/dist/enums/index.d.ts.map +0 -1
- package/dist/enums/index.lua +0 -82
- package/dist/features/index.d.ts +0 -30
- package/dist/features/index.d.ts.map +0 -1
- package/dist/features/index.lua +0 -216
- package/dist/functions/index.d.ts +0 -100
- package/dist/functions/index.d.ts.map +0 -1
- package/dist/functions/index.lua +0 -794
- package/dist/interfaces/index.d.ts +0 -12
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/maps/index.d.ts +0 -5
- package/dist/maps/index.d.ts.map +0 -1
- package/dist/maps/index.lua +0 -34
- package/dist/objects/index.d.ts +0 -2
- package/dist/objects/index.d.ts.map +0 -1
- package/dist/objects/index.lua +0 -10
- package/dist/types/index.d.ts +0 -11
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.lua +0 -10
- package/src/classes/index.ts +0 -2
- package/src/classes/indexTypeDoc.ts +0 -2
- package/src/core/index.ts +0 -4
- package/src/core/indexTypeDoc.ts +0 -4
- package/src/enums/DecorationVariant.ts +0 -10
- package/src/enums/index.ts +0 -10
- package/src/enums/indexTypeDoc.ts +0 -10
- package/src/features/index.ts +0 -59
- package/src/features/indexTypeDoc.ts +0 -30
- package/src/functions/index.ts +0 -101
- package/src/functions/indexTypeDoc.ts +0 -101
- package/src/indexTypeDoc.ts +0 -13
- package/src/interfaces/index.ts +0 -11
- package/src/interfaces/indexTypeDoc.ts +0 -11
- package/src/maps/index.ts +0 -4
- package/src/maps/indexTypeDoc.ts +0 -4
- package/src/objects/index.ts +0 -1
- package/src/objects/indexTypeDoc.ts +0 -1
- package/src/types/index.ts +0 -10
- package/src/types/indexTypeDoc.ts +0 -10
|
@@ -193,7 +193,7 @@ export declare enum ModCallbackCustom {
|
|
|
193
193
|
POST_EFFECT_INIT_LATE = 13,
|
|
194
194
|
/**
|
|
195
195
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
196
|
-
* was on the previous frame.
|
|
196
|
+
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
197
197
|
*
|
|
198
198
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
199
199
|
* only fire if it matches the `EffectVariant` provided.
|
|
@@ -232,7 +232,8 @@ export declare enum ModCallbackCustom {
|
|
|
232
232
|
POST_FAMILIAR_INIT_LATE = 16,
|
|
233
233
|
/**
|
|
234
234
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
235
|
-
* was on the previous frame.
|
|
235
|
+
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
236
|
+
* field.)
|
|
236
237
|
*
|
|
237
238
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
238
239
|
* only fire if it matches the `FamiliarVariant` provided.
|
|
@@ -305,7 +306,8 @@ export declare enum ModCallbackCustom {
|
|
|
305
306
|
POST_GREED_MODE_WAVE = 22,
|
|
306
307
|
/**
|
|
307
308
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
308
|
-
* the broken state for the respective grid entity type.
|
|
309
|
+
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
310
|
+
* `GridEntityType.ROCK` (2) when its state changes to `RockState.BROKEN` (2).)
|
|
309
311
|
*
|
|
310
312
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
311
313
|
* only fire if it matches the `GridEntityType` provided.
|
|
@@ -330,12 +332,8 @@ export declare enum ModCallbackCustom {
|
|
|
330
332
|
*/
|
|
331
333
|
POST_GRID_ENTITY_COLLISION = 24,
|
|
332
334
|
/**
|
|
333
|
-
*
|
|
334
|
-
* `spawnCustomGridEntity` helper function
|
|
335
|
-
*
|
|
336
|
-
* In most cases, you will want to remove the grid entity inside of this callback in order to
|
|
337
|
-
* prevent further "broken" callbacks from firing. (This would not be the case if you were trying
|
|
338
|
-
* to emulate a super tinted rock that takes multiple explosions to destroy, for example.)
|
|
335
|
+
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
336
|
+
* with the `spawnCustomGridEntity` helper function.
|
|
339
337
|
*
|
|
340
338
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
341
339
|
* only fire if it matches the `GridEntityType` provided.
|
|
@@ -349,23 +347,54 @@ export declare enum ModCallbackCustom {
|
|
|
349
347
|
*/
|
|
350
348
|
POST_GRID_ENTITY_CUSTOM_BROKEN = 25,
|
|
351
349
|
/**
|
|
352
|
-
*
|
|
353
|
-
* `spawnCustomGridEntity` helper function.
|
|
350
|
+
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
351
|
+
* with the `spawnCustomGridEntity` helper function.
|
|
354
352
|
*
|
|
355
353
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
356
354
|
* only fire if it matches the `GridEntityType` provided.
|
|
357
355
|
*
|
|
358
356
|
* ```ts
|
|
359
|
-
* function
|
|
357
|
+
* function postGridEntityCustomCollision(
|
|
360
358
|
* gridEntity: GridEntity,
|
|
361
359
|
* gridEntityTypeCustom: GridEntityType,
|
|
360
|
+
* entity: Entity,
|
|
362
361
|
* ): void {}
|
|
363
362
|
* ```
|
|
364
363
|
*/
|
|
365
364
|
POST_GRID_ENTITY_CUSTOM_COLLISION = 26,
|
|
366
365
|
/**
|
|
367
|
-
*
|
|
368
|
-
* `spawnCustomGridEntity` helper function
|
|
366
|
+
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
367
|
+
* the `spawnCustomGridEntity` helper function.
|
|
368
|
+
*
|
|
369
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
370
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
371
|
+
*
|
|
372
|
+
* ```ts
|
|
373
|
+
* function postGridEntityCustomInit(
|
|
374
|
+
* gridEntity: GridEntity,
|
|
375
|
+
* gridEntityTypeCustom: GridEntityType,
|
|
376
|
+
* ): void {}
|
|
377
|
+
* ```
|
|
378
|
+
*/
|
|
379
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 27,
|
|
380
|
+
/**
|
|
381
|
+
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
382
|
+
* with the `spawnCustomGridEntity` helper function.
|
|
383
|
+
*
|
|
384
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
385
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
386
|
+
*
|
|
387
|
+
* ```ts
|
|
388
|
+
* function postGridEntityCustomRemove(
|
|
389
|
+
* gridIndex: int,
|
|
390
|
+
* gridEntityTypeCustom: GridEntityType,
|
|
391
|
+
* ): void {}
|
|
392
|
+
* ```
|
|
393
|
+
*/
|
|
394
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 28,
|
|
395
|
+
/**
|
|
396
|
+
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
397
|
+
* with the `spawnCustomGridEntity` helper function.
|
|
369
398
|
*
|
|
370
399
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
371
400
|
* only fire if it matches the `GridEntityType` provided.
|
|
@@ -377,10 +406,27 @@ export declare enum ModCallbackCustom {
|
|
|
377
406
|
* ): void {}
|
|
378
407
|
* ```
|
|
379
408
|
*/
|
|
380
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
409
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 29,
|
|
381
410
|
/**
|
|
382
|
-
*
|
|
383
|
-
* `spawnCustomGridEntity` helper function
|
|
411
|
+
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
412
|
+
* created with the `spawnCustomGridEntity` helper function.
|
|
413
|
+
*
|
|
414
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
415
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
416
|
+
*
|
|
417
|
+
* ```ts
|
|
418
|
+
* function postGridEntityCustomStateChanged(
|
|
419
|
+
* gridEntity: GridEntity,
|
|
420
|
+
* gridEntityTypeCustom: GridEntityType,
|
|
421
|
+
* oldState: int,
|
|
422
|
+
* newState: int,
|
|
423
|
+
* ): void {}
|
|
424
|
+
* ```
|
|
425
|
+
*/
|
|
426
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 30,
|
|
427
|
+
/**
|
|
428
|
+
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
429
|
+
* with the `spawnCustomGridEntity` helper function.
|
|
384
430
|
*
|
|
385
431
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
386
432
|
* only fire if it matches the `GridEntityType` provided.
|
|
@@ -392,7 +438,7 @@ export declare enum ModCallbackCustom {
|
|
|
392
438
|
* ): void {}
|
|
393
439
|
* ```
|
|
394
440
|
*/
|
|
395
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
441
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 31,
|
|
396
442
|
/**
|
|
397
443
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
398
444
|
*
|
|
@@ -408,11 +454,13 @@ export declare enum ModCallbackCustom {
|
|
|
408
454
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
409
455
|
* ```
|
|
410
456
|
*/
|
|
411
|
-
POST_GRID_ENTITY_INIT =
|
|
457
|
+
POST_GRID_ENTITY_INIT = 32,
|
|
412
458
|
/**
|
|
413
459
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
414
460
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
415
461
|
*
|
|
462
|
+
* (Leaving a room with a grid entity does not count as "removing" it.)
|
|
463
|
+
*
|
|
416
464
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
417
465
|
* only fire if it matches the `GridEntityType` provided.
|
|
418
466
|
*
|
|
@@ -423,7 +471,7 @@ export declare enum ModCallbackCustom {
|
|
|
423
471
|
* ): void {}
|
|
424
472
|
* ```
|
|
425
473
|
*/
|
|
426
|
-
POST_GRID_ENTITY_REMOVE =
|
|
474
|
+
POST_GRID_ENTITY_REMOVE = 33,
|
|
427
475
|
/**
|
|
428
476
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
429
477
|
*
|
|
@@ -436,9 +484,10 @@ export declare enum ModCallbackCustom {
|
|
|
436
484
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
437
485
|
* ```
|
|
438
486
|
*/
|
|
439
|
-
POST_GRID_ENTITY_RENDER =
|
|
487
|
+
POST_GRID_ENTITY_RENDER = 34,
|
|
440
488
|
/**
|
|
441
|
-
* Fires from the `POST_UPDATE` callback when a grid entity changes its state.
|
|
489
|
+
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
490
|
+
* "state" refers to the `GridEntity.State` field.)
|
|
442
491
|
*
|
|
443
492
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
444
493
|
* only fire if it matches the `GridEntityType` provided.
|
|
@@ -451,7 +500,7 @@ export declare enum ModCallbackCustom {
|
|
|
451
500
|
* ): void {}
|
|
452
501
|
* ```
|
|
453
502
|
*/
|
|
454
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
503
|
+
POST_GRID_ENTITY_STATE_CHANGED = 35,
|
|
455
504
|
/**
|
|
456
505
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
457
506
|
*
|
|
@@ -464,7 +513,7 @@ export declare enum ModCallbackCustom {
|
|
|
464
513
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
465
514
|
* ```
|
|
466
515
|
*/
|
|
467
|
-
POST_GRID_ENTITY_UPDATE =
|
|
516
|
+
POST_GRID_ENTITY_UPDATE = 36,
|
|
468
517
|
/**
|
|
469
518
|
* Fires from the `POST_PEFFECT_UPDATE` callback when the player loses a Holy Mantle temporary
|
|
470
519
|
* collectible effect.
|
|
@@ -486,7 +535,7 @@ export declare enum ModCallbackCustom {
|
|
|
486
535
|
* ): void {}
|
|
487
536
|
* ```
|
|
488
537
|
*/
|
|
489
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
538
|
+
POST_HOLY_MANTLE_REMOVED = 37,
|
|
490
539
|
/**
|
|
491
540
|
* Fires from `POST_PEFFECT_UPDATE` callback when the player loses charge on their active
|
|
492
541
|
* collectible item, implying that the item was just used.
|
|
@@ -508,7 +557,7 @@ export declare enum ModCallbackCustom {
|
|
|
508
557
|
* ): void {}
|
|
509
558
|
* ```
|
|
510
559
|
*/
|
|
511
|
-
POST_ITEM_DISCHARGE =
|
|
560
|
+
POST_ITEM_DISCHARGE = 38,
|
|
512
561
|
/**
|
|
513
562
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item is no longer queued (i.e. when the
|
|
514
563
|
* animation of the player holding the item above their head is finished and the item is actually
|
|
@@ -528,7 +577,7 @@ export declare enum ModCallbackCustom {
|
|
|
528
577
|
* ): void {}
|
|
529
578
|
* ```
|
|
530
579
|
*/
|
|
531
|
-
POST_ITEM_PICKUP =
|
|
580
|
+
POST_ITEM_PICKUP = 39,
|
|
532
581
|
/**
|
|
533
582
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
534
583
|
*
|
|
@@ -542,7 +591,7 @@ export declare enum ModCallbackCustom {
|
|
|
542
591
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
543
592
|
* ```
|
|
544
593
|
*/
|
|
545
|
-
POST_KNIFE_INIT_LATE =
|
|
594
|
+
POST_KNIFE_INIT_LATE = 40,
|
|
546
595
|
/**
|
|
547
596
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
548
597
|
*
|
|
@@ -556,7 +605,7 @@ export declare enum ModCallbackCustom {
|
|
|
556
605
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
557
606
|
* ```
|
|
558
607
|
*/
|
|
559
|
-
POST_LASER_INIT_LATE =
|
|
608
|
+
POST_LASER_INIT_LATE = 41,
|
|
560
609
|
/**
|
|
561
610
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
562
611
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -573,7 +622,7 @@ export declare enum ModCallbackCustom {
|
|
|
573
622
|
* function postNewLevelReordered(): void {}
|
|
574
623
|
* ```
|
|
575
624
|
*/
|
|
576
|
-
POST_NEW_LEVEL_REORDERED =
|
|
625
|
+
POST_NEW_LEVEL_REORDERED = 42,
|
|
577
626
|
/**
|
|
578
627
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
579
628
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -584,7 +633,7 @@ export declare enum ModCallbackCustom {
|
|
|
584
633
|
* function postNewRoomEarly(): void {}
|
|
585
634
|
* ```
|
|
586
635
|
*/
|
|
587
|
-
POST_NEW_ROOM_EARLY =
|
|
636
|
+
POST_NEW_ROOM_EARLY = 43,
|
|
588
637
|
/**
|
|
589
638
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
590
639
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -601,7 +650,7 @@ export declare enum ModCallbackCustom {
|
|
|
601
650
|
* function postNewRoomReordered(): void {}
|
|
602
651
|
* ```
|
|
603
652
|
*/
|
|
604
|
-
POST_NEW_ROOM_REORDERED =
|
|
653
|
+
POST_NEW_ROOM_REORDERED = 44,
|
|
605
654
|
/**
|
|
606
655
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
607
656
|
*
|
|
@@ -615,10 +664,10 @@ export declare enum ModCallbackCustom {
|
|
|
615
664
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
616
665
|
* ```
|
|
617
666
|
*/
|
|
618
|
-
POST_NPC_INIT_LATE =
|
|
667
|
+
POST_NPC_INIT_LATE = 45,
|
|
619
668
|
/**
|
|
620
669
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
621
|
-
* the previous frame.
|
|
670
|
+
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
622
671
|
*
|
|
623
672
|
* - When registering the callback, takes an optional second argument that will make the callback
|
|
624
673
|
* only fire if it matches the `EntityType` provided.
|
|
@@ -633,7 +682,7 @@ export declare enum ModCallbackCustom {
|
|
|
633
682
|
* ): void {}
|
|
634
683
|
* ```
|
|
635
684
|
*/
|
|
636
|
-
POST_NPC_STATE_CHANGED =
|
|
685
|
+
POST_NPC_STATE_CHANGED = 46,
|
|
637
686
|
/**
|
|
638
687
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
639
688
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -656,7 +705,7 @@ export declare enum ModCallbackCustom {
|
|
|
656
705
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
657
706
|
* ```
|
|
658
707
|
*/
|
|
659
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
708
|
+
POST_PEFFECT_UPDATE_REORDERED = 47,
|
|
660
709
|
/**
|
|
661
710
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
662
711
|
*
|
|
@@ -669,7 +718,7 @@ export declare enum ModCallbackCustom {
|
|
|
669
718
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
670
719
|
* ```
|
|
671
720
|
*/
|
|
672
|
-
POST_PICKUP_COLLECT =
|
|
721
|
+
POST_PICKUP_COLLECT = 48,
|
|
673
722
|
/**
|
|
674
723
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
675
724
|
* respective pickup on the run.
|
|
@@ -684,7 +733,7 @@ export declare enum ModCallbackCustom {
|
|
|
684
733
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
685
734
|
* ```
|
|
686
735
|
*/
|
|
687
|
-
POST_PICKUP_INIT_FIRST =
|
|
736
|
+
POST_PICKUP_INIT_FIRST = 49,
|
|
688
737
|
/**
|
|
689
738
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
690
739
|
*
|
|
@@ -698,10 +747,10 @@ export declare enum ModCallbackCustom {
|
|
|
698
747
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
699
748
|
* ```
|
|
700
749
|
*/
|
|
701
|
-
POST_PICKUP_INIT_LATE =
|
|
750
|
+
POST_PICKUP_INIT_LATE = 50,
|
|
702
751
|
/**
|
|
703
752
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
704
|
-
* on the previous frame.
|
|
753
|
+
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
705
754
|
*
|
|
706
755
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
707
756
|
* only fire if it matches the `PickupVariant` provided.
|
|
@@ -714,7 +763,7 @@ export declare enum ModCallbackCustom {
|
|
|
714
763
|
* ): void {}
|
|
715
764
|
* ```
|
|
716
765
|
*/
|
|
717
|
-
POST_PICKUP_STATE_CHANGED =
|
|
766
|
+
POST_PICKUP_STATE_CHANGED = 51,
|
|
718
767
|
/**
|
|
719
768
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
720
769
|
*
|
|
@@ -725,7 +774,7 @@ export declare enum ModCallbackCustom {
|
|
|
725
774
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
726
775
|
* ```
|
|
727
776
|
*/
|
|
728
|
-
POST_PIT_RENDER =
|
|
777
|
+
POST_PIT_RENDER = 52,
|
|
729
778
|
/**
|
|
730
779
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
731
780
|
*
|
|
@@ -736,7 +785,7 @@ export declare enum ModCallbackCustom {
|
|
|
736
785
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
737
786
|
* ```
|
|
738
787
|
*/
|
|
739
|
-
POST_PIT_UPDATE =
|
|
788
|
+
POST_PIT_UPDATE = 53,
|
|
740
789
|
/**
|
|
741
790
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's health (i.e. hearts) is different
|
|
742
791
|
* than what it was on the previous frame. For more information, see the `PlayerHealth` enum.
|
|
@@ -756,7 +805,7 @@ export declare enum ModCallbackCustom {
|
|
|
756
805
|
* ): void {}
|
|
757
806
|
* ```
|
|
758
807
|
*/
|
|
759
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
808
|
+
POST_PLAYER_CHANGE_HEALTH = 54,
|
|
760
809
|
/**
|
|
761
810
|
* Fires from the `POST_PEFFECT_UPDATE` callback when one of the player's stats change from what
|
|
762
811
|
* they were on the previous frame.
|
|
@@ -785,7 +834,7 @@ export declare enum ModCallbackCustom {
|
|
|
785
834
|
* ): void {}
|
|
786
835
|
* ```
|
|
787
836
|
*/
|
|
788
|
-
POST_PLAYER_CHANGE_STAT =
|
|
837
|
+
POST_PLAYER_CHANGE_STAT = 55,
|
|
789
838
|
/**
|
|
790
839
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity changes its player type
|
|
791
840
|
* (i.e. character) from what it was on the previous frame. For example, it will fire after using
|
|
@@ -803,7 +852,7 @@ export declare enum ModCallbackCustom {
|
|
|
803
852
|
* ): void {}
|
|
804
853
|
* ```
|
|
805
854
|
*/
|
|
806
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
855
|
+
POST_PLAYER_CHANGE_TYPE = 56,
|
|
807
856
|
/**
|
|
808
857
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is higher than
|
|
809
858
|
* what it was on the previous frame.
|
|
@@ -818,7 +867,7 @@ export declare enum ModCallbackCustom {
|
|
|
818
867
|
* ): void {}
|
|
819
868
|
* ```
|
|
820
869
|
*/
|
|
821
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
870
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 57,
|
|
822
871
|
/**
|
|
823
872
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is lower than
|
|
824
873
|
* what it was on the previous frame.
|
|
@@ -833,7 +882,7 @@ export declare enum ModCallbackCustom {
|
|
|
833
882
|
* ): void {}
|
|
834
883
|
* ```
|
|
835
884
|
*/
|
|
836
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
885
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 58,
|
|
837
886
|
/**
|
|
838
887
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
839
888
|
* prevent the fatal damage.
|
|
@@ -850,7 +899,7 @@ export declare enum ModCallbackCustom {
|
|
|
850
899
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
851
900
|
* ```
|
|
852
901
|
*/
|
|
853
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
902
|
+
POST_PLAYER_FATAL_DAMAGE = 59,
|
|
854
903
|
/**
|
|
855
904
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
856
905
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -871,7 +920,7 @@ export declare enum ModCallbackCustom {
|
|
|
871
920
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
872
921
|
* ```
|
|
873
922
|
*/
|
|
874
|
-
POST_PLAYER_INIT_FIRST =
|
|
923
|
+
POST_PLAYER_INIT_FIRST = 60,
|
|
875
924
|
/**
|
|
876
925
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
877
926
|
*
|
|
@@ -890,7 +939,7 @@ export declare enum ModCallbackCustom {
|
|
|
890
939
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
891
940
|
* ```
|
|
892
941
|
*/
|
|
893
|
-
POST_PLAYER_INIT_LATE =
|
|
942
|
+
POST_PLAYER_INIT_LATE = 61,
|
|
894
943
|
/**
|
|
895
944
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
896
945
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -913,7 +962,7 @@ export declare enum ModCallbackCustom {
|
|
|
913
962
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
914
963
|
* ```
|
|
915
964
|
*/
|
|
916
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
965
|
+
POST_PLAYER_RENDER_REORDERED = 62,
|
|
917
966
|
/**
|
|
918
967
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
919
968
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -936,7 +985,7 @@ export declare enum ModCallbackCustom {
|
|
|
936
985
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
937
986
|
* ```
|
|
938
987
|
*/
|
|
939
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
988
|
+
POST_PLAYER_UPDATE_REORDERED = 63,
|
|
940
989
|
/**
|
|
941
990
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
942
991
|
*
|
|
@@ -947,7 +996,7 @@ export declare enum ModCallbackCustom {
|
|
|
947
996
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
948
997
|
* ```
|
|
949
998
|
*/
|
|
950
|
-
POST_POOP_RENDER =
|
|
999
|
+
POST_POOP_RENDER = 64,
|
|
951
1000
|
/**
|
|
952
1001
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
953
1002
|
*
|
|
@@ -958,7 +1007,7 @@ export declare enum ModCallbackCustom {
|
|
|
958
1007
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
959
1008
|
* ```
|
|
960
1009
|
*/
|
|
961
|
-
POST_POOP_UPDATE =
|
|
1010
|
+
POST_POOP_UPDATE = 65,
|
|
962
1011
|
/**
|
|
963
1012
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
964
1013
|
*
|
|
@@ -969,7 +1018,7 @@ export declare enum ModCallbackCustom {
|
|
|
969
1018
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
970
1019
|
* ```
|
|
971
1020
|
*/
|
|
972
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
1021
|
+
POST_PRESSURE_PLATE_RENDER = 66,
|
|
973
1022
|
/**
|
|
974
1023
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
975
1024
|
*
|
|
@@ -980,7 +1029,7 @@ export declare enum ModCallbackCustom {
|
|
|
980
1029
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
981
1030
|
* ```
|
|
982
1031
|
*/
|
|
983
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
1032
|
+
POST_PRESSURE_PLATE_UPDATE = 67,
|
|
984
1033
|
/**
|
|
985
1034
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
986
1035
|
*
|
|
@@ -994,7 +1043,7 @@ export declare enum ModCallbackCustom {
|
|
|
994
1043
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
995
1044
|
* ```
|
|
996
1045
|
*/
|
|
997
|
-
POST_PROJECTILE_INIT_LATE =
|
|
1046
|
+
POST_PROJECTILE_INIT_LATE = 68,
|
|
998
1047
|
/**
|
|
999
1048
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player first picks up a new item. The
|
|
1000
1049
|
* pickup returned in the callback is assumed to be the first pickup that no longer exists.
|
|
@@ -1008,7 +1057,7 @@ export declare enum ModCallbackCustom {
|
|
|
1008
1057
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
1009
1058
|
* ```
|
|
1010
1059
|
*/
|
|
1011
|
-
POST_PURCHASE =
|
|
1060
|
+
POST_PURCHASE = 69,
|
|
1012
1061
|
/**
|
|
1013
1062
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
1014
1063
|
*
|
|
@@ -1019,7 +1068,7 @@ export declare enum ModCallbackCustom {
|
|
|
1019
1068
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
1020
1069
|
* ```
|
|
1021
1070
|
*/
|
|
1022
|
-
POST_ROCK_RENDER =
|
|
1071
|
+
POST_ROCK_RENDER = 70,
|
|
1023
1072
|
/**
|
|
1024
1073
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
1025
1074
|
*
|
|
@@ -1030,9 +1079,10 @@ export declare enum ModCallbackCustom {
|
|
|
1030
1079
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
1031
1080
|
* ```
|
|
1032
1081
|
*/
|
|
1033
|
-
POST_ROCK_UPDATE =
|
|
1082
|
+
POST_ROCK_UPDATE = 71,
|
|
1034
1083
|
/**
|
|
1035
|
-
* Fires from the `POST_UPDATE` callback when the clear state of a room changes
|
|
1084
|
+
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
1085
|
+
* the `Room.IsClear` method).
|
|
1036
1086
|
*
|
|
1037
1087
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
1038
1088
|
* only fire if the room clear state matches the boolean provided.
|
|
@@ -1041,7 +1091,7 @@ export declare enum ModCallbackCustom {
|
|
|
1041
1091
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
1042
1092
|
* ```
|
|
1043
1093
|
*/
|
|
1044
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
1094
|
+
POST_ROOM_CLEAR_CHANGED = 72,
|
|
1045
1095
|
/**
|
|
1046
1096
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
1047
1097
|
* Room.
|
|
@@ -1055,7 +1105,7 @@ export declare enum ModCallbackCustom {
|
|
|
1055
1105
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
1056
1106
|
* ```
|
|
1057
1107
|
*/
|
|
1058
|
-
POST_SACRIFICE =
|
|
1108
|
+
POST_SACRIFICE = 73,
|
|
1059
1109
|
/**
|
|
1060
1110
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
1061
1111
|
*
|
|
@@ -1066,7 +1116,7 @@ export declare enum ModCallbackCustom {
|
|
|
1066
1116
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
1067
1117
|
* ```
|
|
1068
1118
|
*/
|
|
1069
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
1119
|
+
POST_SLOT_ANIMATION_CHANGED = 74,
|
|
1070
1120
|
/**
|
|
1071
1121
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
1072
1122
|
* has broken.
|
|
@@ -1080,7 +1130,7 @@ export declare enum ModCallbackCustom {
|
|
|
1080
1130
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
1081
1131
|
* ```
|
|
1082
1132
|
*/
|
|
1083
|
-
POST_SLOT_DESTROYED =
|
|
1133
|
+
POST_SLOT_DESTROYED = 75,
|
|
1084
1134
|
/**
|
|
1085
1135
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
1086
1136
|
*
|
|
@@ -1096,7 +1146,7 @@ export declare enum ModCallbackCustom {
|
|
|
1096
1146
|
* function postSlotInit(slot: Entity): void {}
|
|
1097
1147
|
* ```
|
|
1098
1148
|
*/
|
|
1099
|
-
POST_SLOT_INIT =
|
|
1149
|
+
POST_SLOT_INIT = 76,
|
|
1100
1150
|
/**
|
|
1101
1151
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
1102
1152
|
*
|
|
@@ -1107,7 +1157,7 @@ export declare enum ModCallbackCustom {
|
|
|
1107
1157
|
* function postSlotRender(slot: Entity): void {}
|
|
1108
1158
|
* ```
|
|
1109
1159
|
*/
|
|
1110
|
-
POST_SLOT_RENDER =
|
|
1160
|
+
POST_SLOT_RENDER = 77,
|
|
1111
1161
|
/**
|
|
1112
1162
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
1113
1163
|
*
|
|
@@ -1118,7 +1168,7 @@ export declare enum ModCallbackCustom {
|
|
|
1118
1168
|
* function postSlotUpdate(slot: Entity): void {}
|
|
1119
1169
|
* ```
|
|
1120
1170
|
*/
|
|
1121
|
-
POST_SLOT_UPDATE =
|
|
1171
|
+
POST_SLOT_UPDATE = 78,
|
|
1122
1172
|
/**
|
|
1123
1173
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
1124
1174
|
*
|
|
@@ -1129,7 +1179,7 @@ export declare enum ModCallbackCustom {
|
|
|
1129
1179
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
1130
1180
|
* ```
|
|
1131
1181
|
*/
|
|
1132
|
-
POST_SPIKES_RENDER =
|
|
1182
|
+
POST_SPIKES_RENDER = 79,
|
|
1133
1183
|
/**
|
|
1134
1184
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
1135
1185
|
*
|
|
@@ -1140,7 +1190,7 @@ export declare enum ModCallbackCustom {
|
|
|
1140
1190
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
1141
1191
|
* ```
|
|
1142
1192
|
*/
|
|
1143
|
-
POST_SPIKES_UPDATE =
|
|
1193
|
+
POST_SPIKES_UPDATE = 80,
|
|
1144
1194
|
/**
|
|
1145
1195
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1146
1196
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -1155,7 +1205,7 @@ export declare enum ModCallbackCustom {
|
|
|
1155
1205
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
1156
1206
|
* ```
|
|
1157
1207
|
*/
|
|
1158
|
-
POST_TEAR_INIT_LATE =
|
|
1208
|
+
POST_TEAR_INIT_LATE = 81,
|
|
1159
1209
|
/**
|
|
1160
1210
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1161
1211
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -1169,7 +1219,7 @@ export declare enum ModCallbackCustom {
|
|
|
1169
1219
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
1170
1220
|
* ```
|
|
1171
1221
|
*/
|
|
1172
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
1222
|
+
POST_TEAR_INIT_VERY_LATE = 82,
|
|
1173
1223
|
/**
|
|
1174
1224
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
1175
1225
|
*
|
|
@@ -1180,7 +1230,7 @@ export declare enum ModCallbackCustom {
|
|
|
1180
1230
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
1181
1231
|
* ```
|
|
1182
1232
|
*/
|
|
1183
|
-
POST_TNT_RENDER =
|
|
1233
|
+
POST_TNT_RENDER = 83,
|
|
1184
1234
|
/**
|
|
1185
1235
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
1186
1236
|
*
|
|
@@ -1191,7 +1241,7 @@ export declare enum ModCallbackCustom {
|
|
|
1191
1241
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
1192
1242
|
* ```
|
|
1193
1243
|
*/
|
|
1194
|
-
POST_TNT_UPDATE =
|
|
1244
|
+
POST_TNT_UPDATE = 84,
|
|
1195
1245
|
/**
|
|
1196
1246
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player gains or loses a new
|
|
1197
1247
|
* transformation.
|
|
@@ -1209,7 +1259,7 @@ export declare enum ModCallbackCustom {
|
|
|
1209
1259
|
* ): void {}
|
|
1210
1260
|
* ```
|
|
1211
1261
|
*/
|
|
1212
|
-
POST_TRANSFORMATION =
|
|
1262
|
+
POST_TRANSFORMATION = 85,
|
|
1213
1263
|
/**
|
|
1214
1264
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
1215
1265
|
*
|
|
@@ -1223,7 +1273,7 @@ export declare enum ModCallbackCustom {
|
|
|
1223
1273
|
* ): void {}
|
|
1224
1274
|
* ```
|
|
1225
1275
|
*/
|
|
1226
|
-
POST_TRINKET_BREAK =
|
|
1276
|
+
POST_TRINKET_BREAK = 86,
|
|
1227
1277
|
/**
|
|
1228
1278
|
* Fires from the `POST_PEFFECT_UPDATE` callback on the frame before a Berserk effect ends when
|
|
1229
1279
|
* the player is predicted to die (e.g. they currently have no health left or they took damage in
|
|
@@ -1238,7 +1288,7 @@ export declare enum ModCallbackCustom {
|
|
|
1238
1288
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
1239
1289
|
* ```
|
|
1240
1290
|
*/
|
|
1241
|
-
PRE_BERSERK_DEATH =
|
|
1291
|
+
PRE_BERSERK_DEATH = 87,
|
|
1242
1292
|
/**
|
|
1243
1293
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
1244
1294
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -1256,7 +1306,7 @@ export declare enum ModCallbackCustom {
|
|
|
1256
1306
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
1257
1307
|
* ```
|
|
1258
1308
|
*/
|
|
1259
|
-
PRE_CUSTOM_REVIVE =
|
|
1309
|
+
PRE_CUSTOM_REVIVE = 88,
|
|
1260
1310
|
/**
|
|
1261
1311
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item becomes queued (i.e. when the player
|
|
1262
1312
|
* begins to hold the item above their head).
|
|
@@ -1275,7 +1325,7 @@ export declare enum ModCallbackCustom {
|
|
|
1275
1325
|
* ): void {}
|
|
1276
1326
|
* ```
|
|
1277
1327
|
*/
|
|
1278
|
-
PRE_ITEM_PICKUP =
|
|
1328
|
+
PRE_ITEM_PICKUP = 89,
|
|
1279
1329
|
/**
|
|
1280
1330
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
1281
1331
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -1289,6 +1339,6 @@ export declare enum ModCallbackCustom {
|
|
|
1289
1339
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
1290
1340
|
* ```
|
|
1291
1341
|
*/
|
|
1292
|
-
PRE_NEW_LEVEL =
|
|
1342
|
+
PRE_NEW_LEVEL = 90
|
|
1293
1343
|
}
|
|
1294
1344
|
//# sourceMappingURL=ModCallbackCustom.d.ts.map
|