isaacscript-common 21.6.4 → 21.6.6
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 +1 -1
- package/dist/isaacscript-common.lua +29 -21
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts +4 -0
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +3 -0
- package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts +1 -1
- package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomRevive.lua +3 -5
- package/dist/src/sets/entitiesWithArmorSet.lua +5 -5
- package/package.json +2 -2
- package/src/classes/callbacks/PostPlayerFatalDamage.ts +8 -2
- package/src/classes/features/callbackLogic/CustomRevive.ts +8 -5
- package/src/sets/entitiesWithArmorSet.ts +5 -5
package/dist/index.rollup.d.ts
CHANGED
|
@@ -1864,7 +1864,7 @@ declare class CustomRevive extends Feature {
|
|
|
1864
1864
|
private runInNFrames;
|
|
1865
1865
|
constructor(preCustomRevive: PreCustomRevive, postCustomRevive: PostCustomRevive, runInNFrames: RunInNFrames);
|
|
1866
1866
|
private postRender;
|
|
1867
|
-
private
|
|
1867
|
+
private postFamiliarInitOneUp;
|
|
1868
1868
|
private postNewRoomReordered;
|
|
1869
1869
|
private postPEffectUpdateReordered;
|
|
1870
1870
|
private checkWaitingForItemAnimation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 21.6.
|
|
3
|
+
isaacscript-common 21.6.6
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -5663,11 +5663,18 @@ return ____exports
|
|
|
5663
5663
|
end,
|
|
5664
5664
|
["lua_modules.isaac-typescript-definitions.dist.src.enums.PlayerItemAnimation"] = function(...)
|
|
5665
5665
|
local ____exports = {}
|
|
5666
|
+
--- These are a subset of animations from the "001.000_player.anm2" file.
|
|
5667
|
+
--
|
|
5668
|
+
-- These are listed in order of their appearance from top to bottom.
|
|
5666
5669
|
____exports.PlayerItemAnimation = {}
|
|
5667
5670
|
____exports.PlayerItemAnimation.PICKUP = "Pickup"
|
|
5668
5671
|
____exports.PlayerItemAnimation.LIFT_ITEM = "LiftItem"
|
|
5669
5672
|
____exports.PlayerItemAnimation.HIDE_ITEM = "HideItem"
|
|
5670
5673
|
____exports.PlayerItemAnimation.USE_ITEM = "UseItem"
|
|
5674
|
+
____exports.PlayerItemAnimation.PICKUP_WALK_DOWN = "PickupWalkDown"
|
|
5675
|
+
____exports.PlayerItemAnimation.PICKUP_WALK_LEFT = "PickupWalkLeft"
|
|
5676
|
+
____exports.PlayerItemAnimation.PICKUP_WALK_UP = "PickupWalkUp"
|
|
5677
|
+
____exports.PlayerItemAnimation.PICKUP_WALK_RIGHT = "PickupWalkRight"
|
|
5671
5678
|
return ____exports
|
|
5672
5679
|
end,
|
|
5673
5680
|
["lua_modules.isaac-typescript-definitions.dist.src.enums.PlayerForm"] = function(...)
|
|
@@ -8301,10 +8308,10 @@ ____exports.EntityType.DEATHS_HEAD = 212
|
|
|
8301
8308
|
____exports.EntityType[____exports.EntityType.DEATHS_HEAD] = "DEATHS_HEAD"
|
|
8302
8309
|
____exports.EntityType.MOMS_HAND = 213
|
|
8303
8310
|
____exports.EntityType[____exports.EntityType.MOMS_HAND] = "MOMS_HAND"
|
|
8304
|
-
____exports.EntityType.
|
|
8305
|
-
____exports.EntityType[____exports.EntityType.
|
|
8306
|
-
____exports.EntityType.
|
|
8307
|
-
____exports.EntityType[____exports.EntityType.
|
|
8311
|
+
____exports.EntityType.FLY_LVL_2 = 214
|
|
8312
|
+
____exports.EntityType[____exports.EntityType.FLY_LVL_2] = "FLY_LVL_2"
|
|
8313
|
+
____exports.EntityType.SPIDER_LVL_2 = 215
|
|
8314
|
+
____exports.EntityType[____exports.EntityType.SPIDER_LVL_2] = "SPIDER_LVL_2"
|
|
8308
8315
|
____exports.EntityType.SWINGER = 216
|
|
8309
8316
|
____exports.EntityType[____exports.EntityType.SWINGER] = "SWINGER"
|
|
8310
8317
|
____exports.EntityType.DIP = 217
|
|
@@ -8589,16 +8596,16 @@ ____exports.EntityType.VIS_VERSA = 836
|
|
|
8589
8596
|
____exports.EntityType[____exports.EntityType.VIS_VERSA] = "VIS_VERSA"
|
|
8590
8597
|
____exports.EntityType.HENRY = 837
|
|
8591
8598
|
____exports.EntityType[____exports.EntityType.HENRY] = "HENRY"
|
|
8592
|
-
____exports.EntityType.
|
|
8593
|
-
____exports.EntityType[____exports.EntityType.
|
|
8599
|
+
____exports.EntityType.WILLO_LVL_2 = 838
|
|
8600
|
+
____exports.EntityType[____exports.EntityType.WILLO_LVL_2] = "WILLO_LVL_2"
|
|
8594
8601
|
____exports.EntityType.PON = 840
|
|
8595
8602
|
____exports.EntityType[____exports.EntityType.PON] = "PON"
|
|
8596
8603
|
____exports.EntityType.REVENANT = 841
|
|
8597
8604
|
____exports.EntityType[____exports.EntityType.REVENANT] = "REVENANT"
|
|
8598
8605
|
____exports.EntityType.BOMBGAGGER = 844
|
|
8599
8606
|
____exports.EntityType[____exports.EntityType.BOMBGAGGER] = "BOMBGAGGER"
|
|
8600
|
-
____exports.EntityType.
|
|
8601
|
-
____exports.EntityType[____exports.EntityType.
|
|
8607
|
+
____exports.EntityType.GAPER_LVL_2 = 850
|
|
8608
|
+
____exports.EntityType[____exports.EntityType.GAPER_LVL_2] = "GAPER_LVL_2"
|
|
8602
8609
|
____exports.EntityType.TWITCHY = 851
|
|
8603
8610
|
____exports.EntityType[____exports.EntityType.TWITCHY] = "TWITCHY"
|
|
8604
8611
|
____exports.EntityType.SPIKEBALL = 852
|
|
@@ -8607,8 +8614,8 @@ ____exports.EntityType.SMALL_MAGGOT = 853
|
|
|
8607
8614
|
____exports.EntityType[____exports.EntityType.SMALL_MAGGOT] = "SMALL_MAGGOT"
|
|
8608
8615
|
____exports.EntityType.ADULT_LEECH = 854
|
|
8609
8616
|
____exports.EntityType[____exports.EntityType.ADULT_LEECH] = "ADULT_LEECH"
|
|
8610
|
-
____exports.EntityType.
|
|
8611
|
-
____exports.EntityType[____exports.EntityType.
|
|
8617
|
+
____exports.EntityType.CHARGER_LVL_2 = 855
|
|
8618
|
+
____exports.EntityType[____exports.EntityType.CHARGER_LVL_2] = "CHARGER_LVL_2"
|
|
8612
8619
|
____exports.EntityType.GASBAG = 856
|
|
8613
8620
|
____exports.EntityType[____exports.EntityType.GASBAG] = "GASBAG"
|
|
8614
8621
|
____exports.EntityType.COHORT = 857
|
|
@@ -19581,11 +19588,11 @@ ____exports.ENTITIES_WITH_ARMOR_SET = __TS__New(
|
|
|
19581
19588
|
(tostring(EntityType.FACELESS) .. ".") .. tostring(FacelessVariant.TAINTED_FACELESS),
|
|
19582
19589
|
(tostring(EntityType.MOLE) .. ".") .. tostring(MoleVariant.TAINTED_MOLE),
|
|
19583
19590
|
(tostring(EntityType.GUTTED_FATTY) .. ".") .. tostring(GuttyFattyVariant.GUTTED_FATTY),
|
|
19584
|
-
(tostring(EntityType.
|
|
19585
|
-
(tostring(EntityType.
|
|
19586
|
-
(tostring(EntityType.
|
|
19587
|
-
(tostring(EntityType.
|
|
19588
|
-
(tostring(EntityType.
|
|
19591
|
+
(tostring(EntityType.GAPER_LVL_2) .. ".") .. tostring(Gaper2Variant.GAPER),
|
|
19592
|
+
(tostring(EntityType.GAPER_LVL_2) .. ".") .. tostring(Gaper2Variant.HORF),
|
|
19593
|
+
(tostring(EntityType.GAPER_LVL_2) .. ".") .. tostring(Gaper2Variant.GUSHER),
|
|
19594
|
+
(tostring(EntityType.CHARGER_LVL_2) .. ".") .. tostring(Charger2Variant.CHARGER),
|
|
19595
|
+
(tostring(EntityType.CHARGER_LVL_2) .. ".") .. tostring(Charger2Variant.ELLEECH),
|
|
19589
19596
|
tostring(EntityType.SHADY) .. ".0",
|
|
19590
19597
|
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_1),
|
|
19591
19598
|
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_2),
|
|
@@ -30162,6 +30169,9 @@ function PostPlayerFatalDamage.prototype.____constructor(self)
|
|
|
30162
30169
|
if not inBossRoomOf(nil, BossID.SATAN) then
|
|
30163
30170
|
return nil
|
|
30164
30171
|
end
|
|
30172
|
+
if willPlayerRevive(nil, player) then
|
|
30173
|
+
return nil
|
|
30174
|
+
end
|
|
30165
30175
|
local shouldSustainDeath = self:fire(
|
|
30166
30176
|
player,
|
|
30167
30177
|
0,
|
|
@@ -32691,13 +32701,11 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
|
|
|
32691
32701
|
end
|
|
32692
32702
|
sfxManager:Stop(SoundEffect.ONE_UP)
|
|
32693
32703
|
end
|
|
32694
|
-
self.
|
|
32704
|
+
self.postFamiliarInitOneUp = function(____, familiar)
|
|
32695
32705
|
if self.v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
|
|
32696
32706
|
return
|
|
32697
32707
|
end
|
|
32698
|
-
|
|
32699
|
-
familiar:Remove()
|
|
32700
|
-
end
|
|
32708
|
+
familiar:Remove()
|
|
32701
32709
|
end
|
|
32702
32710
|
self.postNewRoomReordered = function()
|
|
32703
32711
|
if self.v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
|
|
@@ -32717,7 +32725,7 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
|
|
|
32717
32725
|
self:playerIsAboutToDie(player)
|
|
32718
32726
|
end
|
|
32719
32727
|
self.featuresUsed = {ISCFeature.RUN_IN_N_FRAMES}
|
|
32720
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}, {ModCallback.POST_FAMILIAR_INIT, self.
|
|
32728
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}, {ModCallback.POST_FAMILIAR_INIT, self.postFamiliarInitOneUp, {FamiliarVariant.ONE_UP}}}
|
|
32721
32729
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}, {ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}, {ModCallbackCustom.POST_PLAYER_FATAL_DAMAGE, self.postPlayerFatalDamage}, {ModCallbackCustom.PRE_BERSERK_DEATH, self.preBerserkDeath}}
|
|
32722
32730
|
self.preCustomRevive = preCustomRevive
|
|
32723
32731
|
self.postCustomRevive = postCustomRevive
|
|
@@ -11,6 +11,10 @@ export declare class PostPlayerFatalDamage extends CustomCallback<ModCallbackCus
|
|
|
11
11
|
};
|
|
12
12
|
constructor();
|
|
13
13
|
protected shouldFire: typeof shouldFirePlayer;
|
|
14
|
+
/**
|
|
15
|
+
* Using The Bible on Satan is one of the few ways to die without taking damage, so we need to
|
|
16
|
+
* handle this case.
|
|
17
|
+
*/
|
|
14
18
|
private preUseItemBible;
|
|
15
19
|
private entityTakeDmgPlayer;
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostPlayerFatalDamage.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPlayerFatalDamage.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAWlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,wBAAwB,CAAC;IACnF,CAAC;;YAEb,oEAAoE;;;MAGtE;;IAeF,UAAmB,UAAU,0BAAoB;
|
|
1
|
+
{"version":3,"file":"PostPlayerFatalDamage.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPlayerFatalDamage.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAWlE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,wBAAwB,CAAC;IACnF,CAAC;;YAEb,oEAAoE;;;MAGtE;;IAeF,UAAmB,UAAU,0BAAoB;IAEjD;;;OAGG;IAGH,OAAO,CAAC,eAAe,CA8BrB;IAGF,OAAO,CAAC,mBAAmB,CAyCzB;CACH"}
|
|
@@ -25,7 +25,7 @@ export declare class CustomRevive extends Feature {
|
|
|
25
25
|
private runInNFrames;
|
|
26
26
|
constructor(preCustomRevive: PreCustomRevive, postCustomRevive: PostCustomRevive, runInNFrames: RunInNFrames);
|
|
27
27
|
private postRender;
|
|
28
|
-
private
|
|
28
|
+
private postFamiliarInitOneUp;
|
|
29
29
|
private postNewRoomReordered;
|
|
30
30
|
private postPEffectUpdateReordered;
|
|
31
31
|
private checkWaitingForItemAnimation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomRevive.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/CustomRevive.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,aAAK,iBAAiB;IACpB,QAAQ,IAAA;IAER;;;OAGG;IACH,2BAA2B,IAAA;IAE3B,0BAA0B,IAAA;CAC3B;AAED,qBAAa,YAAa,SAAQ,OAAO;IACvB,CAAC;;;;;;MAMf;IAEF,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAe;gBAGjC,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"CustomRevive.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/CustomRevive.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,aAAK,iBAAiB;IACpB,QAAQ,IAAA;IAER;;;OAGG;IACH,2BAA2B,IAAA;IAE3B,0BAA0B,IAAA;CAC3B;AAED,qBAAa,YAAa,SAAQ,OAAO;IACvB,CAAC;;;;;;MAMf;IAEF,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAe;gBAGjC,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY;IAkC5B,OAAO,CAAC,UAAU,CAQhB;IAIF,OAAO,CAAC,qBAAqB,CAM3B;IAGF,OAAO,CAAC,oBAAoB,CAO1B;IAGF,OAAO,CAAC,0BAA0B,CAEhC;IAEF,OAAO,CAAC,4BAA4B;IA6CpC,OAAO,CAAC,qBAAqB,CAK3B;IAGF,OAAO,CAAC,eAAe,CAErB;IAEF;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAmC1B,OAAO,CAAC,eAAe;CASxB"}
|
|
@@ -48,13 +48,11 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
|
|
|
48
48
|
end
|
|
49
49
|
sfxManager:Stop(SoundEffect.ONE_UP)
|
|
50
50
|
end
|
|
51
|
-
self.
|
|
51
|
+
self.postFamiliarInitOneUp = function(____, familiar)
|
|
52
52
|
if self.v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
|
|
53
53
|
return
|
|
54
54
|
end
|
|
55
|
-
|
|
56
|
-
familiar:Remove()
|
|
57
|
-
end
|
|
55
|
+
familiar:Remove()
|
|
58
56
|
end
|
|
59
57
|
self.postNewRoomReordered = function()
|
|
60
58
|
if self.v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
|
|
@@ -74,7 +72,7 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
|
|
|
74
72
|
self:playerIsAboutToDie(player)
|
|
75
73
|
end
|
|
76
74
|
self.featuresUsed = {ISCFeature.RUN_IN_N_FRAMES}
|
|
77
|
-
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}, {ModCallback.POST_FAMILIAR_INIT, self.
|
|
75
|
+
self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}, {ModCallback.POST_FAMILIAR_INIT, self.postFamiliarInitOneUp, {FamiliarVariant.ONE_UP}}}
|
|
78
76
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}, {ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}, {ModCallbackCustom.POST_PLAYER_FATAL_DAMAGE, self.postPlayerFatalDamage}, {ModCallbackCustom.PRE_BERSERK_DEATH, self.preBerserkDeath}}
|
|
79
77
|
self.preCustomRevive = preCustomRevive
|
|
80
78
|
self.postCustomRevive = postCustomRevive
|
|
@@ -63,11 +63,11 @@ ____exports.ENTITIES_WITH_ARMOR_SET = __TS__New(
|
|
|
63
63
|
(tostring(EntityType.FACELESS) .. ".") .. tostring(FacelessVariant.TAINTED_FACELESS),
|
|
64
64
|
(tostring(EntityType.MOLE) .. ".") .. tostring(MoleVariant.TAINTED_MOLE),
|
|
65
65
|
(tostring(EntityType.GUTTED_FATTY) .. ".") .. tostring(GuttyFattyVariant.GUTTED_FATTY),
|
|
66
|
-
(tostring(EntityType.
|
|
67
|
-
(tostring(EntityType.
|
|
68
|
-
(tostring(EntityType.
|
|
69
|
-
(tostring(EntityType.
|
|
70
|
-
(tostring(EntityType.
|
|
66
|
+
(tostring(EntityType.GAPER_LVL_2) .. ".") .. tostring(Gaper2Variant.GAPER),
|
|
67
|
+
(tostring(EntityType.GAPER_LVL_2) .. ".") .. tostring(Gaper2Variant.HORF),
|
|
68
|
+
(tostring(EntityType.GAPER_LVL_2) .. ".") .. tostring(Gaper2Variant.GUSHER),
|
|
69
|
+
(tostring(EntityType.CHARGER_LVL_2) .. ".") .. tostring(Charger2Variant.CHARGER),
|
|
70
|
+
(tostring(EntityType.CHARGER_LVL_2) .. ".") .. tostring(Charger2Variant.ELLEECH),
|
|
71
71
|
tostring(EntityType.SHADY) .. ".0",
|
|
72
72
|
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_1),
|
|
73
73
|
(tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_2),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "21.6.
|
|
3
|
+
"version": "21.6.6",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"main": "dist/src/index",
|
|
23
23
|
"types": "dist/index.rollup.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"isaac-typescript-definitions": "^11.1.
|
|
25
|
+
"isaac-typescript-definitions": "^11.1.3"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -46,6 +46,10 @@ export class PostPlayerFatalDamage extends CustomCallback<ModCallbackCustom.POST
|
|
|
46
46
|
|
|
47
47
|
protected override shouldFire = shouldFirePlayer;
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Using The Bible on Satan is one of the few ways to die without taking damage, so we need to
|
|
51
|
+
* handle this case.
|
|
52
|
+
*/
|
|
49
53
|
// ModCallback.PRE_USE_ITEM (23)
|
|
50
54
|
// CollectibleType.BIBLE (33)
|
|
51
55
|
private preUseItemBible = (
|
|
@@ -56,12 +60,14 @@ export class PostPlayerFatalDamage extends CustomCallback<ModCallbackCustom.POST
|
|
|
56
60
|
_activeSlot: ActiveSlot,
|
|
57
61
|
_customVarData: int,
|
|
58
62
|
): boolean | undefined => {
|
|
59
|
-
// Using The Bible on Satan is one of the few ways to die without taking damage, so we need to
|
|
60
|
-
// handle this case.
|
|
61
63
|
if (!inBossRoomOf(BossID.SATAN)) {
|
|
62
64
|
return undefined;
|
|
63
65
|
}
|
|
64
66
|
|
|
67
|
+
if (willPlayerRevive(player)) {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
|
|
65
71
|
const shouldSustainDeath = this.fire(
|
|
66
72
|
player,
|
|
67
73
|
0,
|
|
@@ -63,7 +63,11 @@ export class CustomRevive extends Feature {
|
|
|
63
63
|
[ModCallback.POST_RENDER, this.postRender],
|
|
64
64
|
|
|
65
65
|
// 7
|
|
66
|
-
[
|
|
66
|
+
[
|
|
67
|
+
ModCallback.POST_FAMILIAR_INIT,
|
|
68
|
+
this.postFamiliarInitOneUp,
|
|
69
|
+
[FamiliarVariant.ONE_UP],
|
|
70
|
+
],
|
|
67
71
|
];
|
|
68
72
|
|
|
69
73
|
this.customCallbacksUsed = [
|
|
@@ -93,14 +97,13 @@ export class CustomRevive extends Feature {
|
|
|
93
97
|
};
|
|
94
98
|
|
|
95
99
|
// ModCallback.POST_FAMILIAR_INIT (7)
|
|
96
|
-
|
|
100
|
+
// FamiliarVariant.ONE_UP (41)
|
|
101
|
+
private postFamiliarInitOneUp = (familiar: EntityFamiliar): void => {
|
|
97
102
|
if (this.v.run.state !== CustomReviveState.WAITING_FOR_ROOM_TRANSITION) {
|
|
98
103
|
return;
|
|
99
104
|
}
|
|
100
105
|
|
|
101
|
-
|
|
102
|
-
familiar.Remove();
|
|
103
|
-
}
|
|
106
|
+
familiar.Remove();
|
|
104
107
|
};
|
|
105
108
|
|
|
106
109
|
// ModCallbackCustom.POST_NEW_ROOM_REORDERED
|
|
@@ -61,11 +61,11 @@ export const ENTITIES_WITH_ARMOR_SET = new ReadonlySet<string>([
|
|
|
61
61
|
`${EntityType.FACELESS}.${FacelessVariant.TAINTED_FACELESS}`, // 827.1
|
|
62
62
|
`${EntityType.MOLE}.${MoleVariant.TAINTED_MOLE}`, // 829.1
|
|
63
63
|
`${EntityType.GUTTED_FATTY}.${GuttyFattyVariant.GUTTED_FATTY}`, // 831.0
|
|
64
|
-
`${EntityType.
|
|
65
|
-
`${EntityType.
|
|
66
|
-
`${EntityType.
|
|
67
|
-
`${EntityType.
|
|
68
|
-
`${EntityType.
|
|
64
|
+
`${EntityType.GAPER_LVL_2}.${Gaper2Variant.GAPER}`, // 850.0
|
|
65
|
+
`${EntityType.GAPER_LVL_2}.${Gaper2Variant.HORF}`, // 850.1
|
|
66
|
+
`${EntityType.GAPER_LVL_2}.${Gaper2Variant.GUSHER}`, // 850.2
|
|
67
|
+
`${EntityType.CHARGER_LVL_2}.${Charger2Variant.CHARGER}`, // 855.0
|
|
68
|
+
`${EntityType.CHARGER_LVL_2}.${Charger2Variant.ELLEECH}`, // 855.1
|
|
69
69
|
`${EntityType.SHADY}.0`, // 888.0
|
|
70
70
|
`${EntityType.MOTHER}.${MotherVariant.MOTHER_1}`, // 912.0
|
|
71
71
|
`${EntityType.MOTHER}.${MotherVariant.MOTHER_2}`, // 912.10
|