isaacscript-common 48.1.0 → 49.0.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/isaacscript-common.lua +161 -157
- package/dist/src/functions/doors.lua +1 -1
- package/dist/src/functions/nextStage.lua +5 -5
- package/dist/src/functions/stage.lua +2 -2
- package/dist/src/objects/bossNamePNGFileNames.lua +24 -24
- package/dist/src/objects/bossPortraitPNGFileNames.lua +24 -24
- package/dist/src/objects/levelNames.lua +1 -1
- package/dist/src/objects/stageToMusic.lua +1 -1
- package/dist/src/objects/stageToStageID.lua +1 -1
- package/dist/src/sets/bossSets.lua +8 -8
- package/dist/src/sets/storyBossesSet.lua +1 -1
- package/package.json +2 -2
- package/src/functions/doors.ts +1 -1
- package/src/functions/nextStage.ts +5 -5
- package/src/functions/stage.ts +2 -2
- package/src/objects/bossNamePNGFileNames.ts +24 -24
- package/src/objects/bossPortraitPNGFileNames.ts +24 -24
- package/src/objects/levelNames.ts +1 -1
- package/src/objects/stageToMusic.ts +1 -1
- package/src/objects/stageToStageID.ts +1 -1
- package/src/sets/bossSets.ts +8 -8
- package/src/sets/storyBossesSet.ts +1 -1
|
@@ -132,7 +132,7 @@ end
|
|
|
132
132
|
--- Helper function to check if the provided door is the one that leads to the off-grid room that
|
|
133
133
|
-- contains the portal to The Void. (In vanilla, the door will only appear in the Hush Boss Room.)
|
|
134
134
|
function ____exports.isVoidDoor(self, door)
|
|
135
|
-
return door.TargetRoomIndex == asNumber(nil, GridRoom.
|
|
135
|
+
return door.TargetRoomIndex == asNumber(nil, GridRoom.VOID)
|
|
136
136
|
end
|
|
137
137
|
--- Helper function to remove a single door.
|
|
138
138
|
function ____exports.removeDoor(self, door)
|
|
@@ -39,10 +39,10 @@ function ____exports.getNextStage(self)
|
|
|
39
39
|
return LevelStage.BLUE_WOMB
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
|
-
____cond4 = ____cond4 or ____switch4 == GridRoom.
|
|
42
|
+
____cond4 = ____cond4 or ____switch4 == GridRoom.VOID
|
|
43
43
|
if ____cond4 then
|
|
44
44
|
do
|
|
45
|
-
return LevelStage.
|
|
45
|
+
return LevelStage.VOID
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
____cond4 = ____cond4 or ____switch4 == GridRoom.SECRET_EXIT
|
|
@@ -76,8 +76,8 @@ function ____exports.getNextStage(self)
|
|
|
76
76
|
if stage == LevelStage.DARK_ROOM_CHEST then
|
|
77
77
|
return LevelStage.DARK_ROOM_CHEST
|
|
78
78
|
end
|
|
79
|
-
if stage == LevelStage.
|
|
80
|
-
return LevelStage.
|
|
79
|
+
if stage == LevelStage.VOID then
|
|
80
|
+
return LevelStage.VOID
|
|
81
81
|
end
|
|
82
82
|
return asNumber(nil, stage) + 1
|
|
83
83
|
end
|
|
@@ -129,7 +129,7 @@ function ____exports.getNextStageType(self, upwards)
|
|
|
129
129
|
end
|
|
130
130
|
return StageType.WRATH_OF_THE_LAMB
|
|
131
131
|
end
|
|
132
|
-
if nextStage == LevelStage.
|
|
132
|
+
if nextStage == LevelStage.VOID then
|
|
133
133
|
return StageType.ORIGINAL
|
|
134
134
|
end
|
|
135
135
|
if nextStage == LevelStage.HOME then
|
|
@@ -170,7 +170,7 @@ end
|
|
|
170
170
|
-- the Secret Room and a 50% chance of teleporting the player to the Super Secret Room, because the
|
|
171
171
|
-- I AM ERROR room is never entered into the list of possibilities.
|
|
172
172
|
function ____exports.isFinalFloor(self, stage, stageType)
|
|
173
|
-
return stage == LevelStage.DARK_ROOM_CHEST or stage == LevelStage.
|
|
173
|
+
return stage == LevelStage.DARK_ROOM_CHEST or stage == LevelStage.VOID or stage == LevelStage.HOME or stage == LevelStage.WOMB_2 and ____exports.isRepentanceStage(nil, stageType)
|
|
174
174
|
end
|
|
175
175
|
--- Helper function to check if the provided effective stage is one that has the possibility to grant
|
|
176
176
|
-- a natural Devil Room or Angel Room after killing the boss.
|
|
@@ -191,7 +191,7 @@ end
|
|
|
191
191
|
-- considered to be a stage that has a random boss collectible since all of the non-Delirium Boss
|
|
192
192
|
-- Rooms will drop random boss collectibles.
|
|
193
193
|
function ____exports.isStageWithRandomBossCollectible(self, stage)
|
|
194
|
-
return not ____exports.isStageWithStoryBoss(nil, stage) or stage == LevelStage.
|
|
194
|
+
return not ____exports.isStageWithStoryBoss(nil, stage) or stage == LevelStage.VOID
|
|
195
195
|
end
|
|
196
196
|
--- Helper function to check if the provided stage will spawn a locked door to Downpour/Dross after
|
|
197
197
|
-- defeating the boss.
|
|
@@ -25,68 +25,68 @@ ____exports.BOSS_NAME_PNG_FILE_NAMES = {
|
|
|
25
25
|
[BossID.STEVEN] = "bossname_79.1_steven.png",
|
|
26
26
|
[BossID.CHAD] = "bossname_28.1_chad.png",
|
|
27
27
|
[BossID.HEADLESS_HORSEMAN] = "bossname_82.0_headlesshorseman.png",
|
|
28
|
-
[BossID.
|
|
28
|
+
[BossID.FALLEN] = "bossname_81.0_thefallen.png",
|
|
29
29
|
[BossID.SATAN] = "bossname_84.0_satan.png",
|
|
30
30
|
[BossID.IT_LIVES] = "bossname_78.1_itlives.png",
|
|
31
|
-
[BossID.
|
|
32
|
-
[BossID.
|
|
31
|
+
[BossID.HOLLOW] = "bossname_19.1_thehollow.png",
|
|
32
|
+
[BossID.CARRION_QUEEN] = "bossname_28.2_carrionqueen.png",
|
|
33
33
|
[BossID.GURDY_JR] = "bossname_99.0_gurdyjr.png",
|
|
34
|
-
[BossID.
|
|
35
|
-
[BossID.
|
|
34
|
+
[BossID.HUSK] = "bossname_67.1_thehusk.png",
|
|
35
|
+
[BossID.BLOAT] = "bossname_68.1_bloat.png",
|
|
36
36
|
[BossID.LOKII] = "bossname_69.1_lokii.png",
|
|
37
|
-
[BossID.
|
|
37
|
+
[BossID.BLIGHTED_OVUM] = "bossname_79.2_blightedovum.png",
|
|
38
38
|
[BossID.TERATOMA] = "bossname_71.1_teratoma.png",
|
|
39
|
-
[BossID.
|
|
39
|
+
[BossID.WIDOW] = "bossname_100.0_widow.png",
|
|
40
40
|
[BossID.MASK_OF_INFAMY] = "bossname_97.0_maskofinfamy.png",
|
|
41
|
-
[BossID.
|
|
41
|
+
[BossID.WRETCHED] = "bossname_100.1_thewretched.png",
|
|
42
42
|
[BossID.PIN] = "bossname_62.0_pin.png",
|
|
43
43
|
[BossID.CONQUEST] = "bossname_65.1_conquest.png",
|
|
44
44
|
[BossID.ISAAC] = "playername_01_isaac.png",
|
|
45
45
|
[BossID.BLUE_BABY] = "bossname_102.1_bluebaby.png",
|
|
46
46
|
[BossID.DADDY_LONG_LEGS] = "bossname_101.0_daddylonglegs.png",
|
|
47
47
|
[BossID.TRIACHNID] = "bossname_101.1_triachnid.png",
|
|
48
|
-
[BossID.
|
|
48
|
+
[BossID.HAUNT] = "bossname_260.0_thehaunt.png",
|
|
49
49
|
[BossID.DINGLE] = "bossname_261.0_dingle.png",
|
|
50
50
|
[BossID.MEGA_MAW] = "bossname_262.0_megamaw.png",
|
|
51
|
-
[BossID.
|
|
51
|
+
[BossID.GATE] = "bossname_263.0_megamaw2.png",
|
|
52
52
|
[BossID.MEGA_FATTY] = "bossname_264.0_megafatty.png",
|
|
53
|
-
[BossID.
|
|
53
|
+
[BossID.CAGE] = "bossname_265.0_fatty2.png",
|
|
54
54
|
[BossID.MAMA_GURDY] = "bossname_266.0_mamagurdy.png",
|
|
55
55
|
[BossID.DARK_ONE] = "bossname_267.0_darkone.png",
|
|
56
|
-
[BossID.
|
|
56
|
+
[BossID.ADVERSARY] = "bossname_268.0_darkone2.png",
|
|
57
57
|
[BossID.POLYCEPHALUS] = "bossname_269.0_polycephalus.png",
|
|
58
58
|
[BossID.MR_FRED] = "bossname_270.0_megafred.png",
|
|
59
|
-
[BossID.
|
|
59
|
+
[BossID.LAMB] = "bossname_273.0_thelamb.png",
|
|
60
60
|
[BossID.MEGA_SATAN] = "bossname_274.0_megasatan.png",
|
|
61
61
|
[BossID.GURGLINGS] = "bossname_276.0_gurglings.png",
|
|
62
|
-
[BossID.
|
|
62
|
+
[BossID.STAIN] = "bossname_401.0_thestain.png",
|
|
63
63
|
[BossID.BROWNIE] = "bossname_402.0_brownie.png",
|
|
64
|
-
[BossID.
|
|
64
|
+
[BossID.FORSAKEN] = "bossname_403.0_theforsaken.png",
|
|
65
65
|
[BossID.LITTLE_HORN] = "bossname_404.0_littlehorn.png",
|
|
66
66
|
[BossID.RAG_MAN] = "bossname_405.0_ragman.png",
|
|
67
67
|
[BossID.ULTRA_GREED] = "bossname_406.0_ultragreed.png",
|
|
68
68
|
[BossID.HUSH] = "bossname_407.0_hush.png",
|
|
69
69
|
[BossID.DANGLE] = "bossname_dangle.png",
|
|
70
70
|
[BossID.TURDLING] = "bossname_turdlings.png",
|
|
71
|
-
[BossID.
|
|
71
|
+
[BossID.FRAIL] = "bossname_thefrail.png",
|
|
72
72
|
[BossID.RAG_MEGA] = "bossname_ragmega.png",
|
|
73
73
|
[BossID.SISTERS_VIS] = "bossname_sisterssvis.png",
|
|
74
74
|
[BossID.BIG_HORN] = "bossname_bighorn.png",
|
|
75
75
|
[BossID.DELIRIUM] = "bossname_delirium.png",
|
|
76
|
-
[BossID.
|
|
77
|
-
[BossID.
|
|
76
|
+
[BossID.MATRIARCH] = "bossname_matriarch.png",
|
|
77
|
+
[BossID.PILE] = "bossname_polycephalus2.png",
|
|
78
78
|
[BossID.REAP_CREEP] = "bossname_reapcreep.png",
|
|
79
79
|
[BossID.LIL_BLUB] = "bossname_beelzeblub.png",
|
|
80
80
|
[BossID.WORMWOOD] = "bossname_wormwood.png",
|
|
81
81
|
[BossID.RAINMAKER] = "bossname_rainmaker.png",
|
|
82
|
-
[BossID.
|
|
83
|
-
[BossID.
|
|
82
|
+
[BossID.VISAGE] = "bossname_visage.png",
|
|
83
|
+
[BossID.SIREN] = "bossname_siren.png",
|
|
84
84
|
[BossID.TUFF_TWINS] = "bossname_tufftwins.png",
|
|
85
|
-
[BossID.
|
|
85
|
+
[BossID.HERETIC] = "bossname_heretic.png",
|
|
86
86
|
[BossID.HORNFEL] = "bossname_hornfel.png",
|
|
87
87
|
[BossID.GREAT_GIDEON] = "bossname_gideon.png",
|
|
88
88
|
[BossID.BABY_PLUM] = "bossname_babyplum.png",
|
|
89
|
-
[BossID.
|
|
89
|
+
[BossID.SCOURGE] = "bossname_scourge.png",
|
|
90
90
|
[BossID.CHIMERA] = "bossname_chimera.png",
|
|
91
91
|
[BossID.ROTGUT] = "bossname_rotgut.png",
|
|
92
92
|
[BossID.MOTHER] = "bossname_mother.png",
|
|
@@ -97,11 +97,11 @@ ____exports.BOSS_NAME_PNG_FILE_NAMES = {
|
|
|
97
97
|
[BossID.SINGE] = "bossname_singe.png",
|
|
98
98
|
[BossID.BUMBINO] = "bossname_bumbino.png",
|
|
99
99
|
[BossID.COLOSTOMIA] = "bossname_colostomia.png",
|
|
100
|
-
[BossID.
|
|
100
|
+
[BossID.SHELL] = "bossname_shell.png",
|
|
101
101
|
[BossID.TURDLET] = "bossname_turdlet.png",
|
|
102
102
|
[BossID.RAGLICH] = "bossname_raglich.png",
|
|
103
103
|
[BossID.DOGMA] = "bossname_dogma.png",
|
|
104
|
-
[BossID.
|
|
104
|
+
[BossID.BEAST] = "bossname_dogma.png",
|
|
105
105
|
[BossID.HORNY_BOYS] = "bossname_hornyboys.png",
|
|
106
106
|
[BossID.CLUTCH] = "bossname_clutch.png"
|
|
107
107
|
}
|
|
@@ -25,68 +25,68 @@ ____exports.BOSS_PORTRAIT_PNG_FILE_NAMES = {
|
|
|
25
25
|
[BossID.STEVEN] = "portrait_79.1_steven.png",
|
|
26
26
|
[BossID.CHAD] = "portrait_28.1_chad.png",
|
|
27
27
|
[BossID.HEADLESS_HORSEMAN] = "portrait_82.0_headlesshorseman.png",
|
|
28
|
-
[BossID.
|
|
28
|
+
[BossID.FALLEN] = "portrait_81.0_thefallen.png",
|
|
29
29
|
[BossID.SATAN] = "portrait_84.0_satan.png",
|
|
30
30
|
[BossID.IT_LIVES] = "portrait_78.1_itlives.png",
|
|
31
|
-
[BossID.
|
|
32
|
-
[BossID.
|
|
31
|
+
[BossID.HOLLOW] = "portrait_19.1_thehollow.png",
|
|
32
|
+
[BossID.CARRION_QUEEN] = "portrait_28.2_carrionqueen.png",
|
|
33
33
|
[BossID.GURDY_JR] = "portrait_99.0_gurdyjr.png",
|
|
34
|
-
[BossID.
|
|
35
|
-
[BossID.
|
|
34
|
+
[BossID.HUSK] = "portrait_67.1_thehusk.png",
|
|
35
|
+
[BossID.BLOAT] = "portrait_68.1_bloat.png",
|
|
36
36
|
[BossID.LOKII] = "portrait_69.1_lokii.png",
|
|
37
|
-
[BossID.
|
|
37
|
+
[BossID.BLIGHTED_OVUM] = "portrait_79.2_blightedovum.png",
|
|
38
38
|
[BossID.TERATOMA] = "portrait_71.1_teratoma.png",
|
|
39
|
-
[BossID.
|
|
39
|
+
[BossID.WIDOW] = "portrait_100.0_widow.png",
|
|
40
40
|
[BossID.MASK_OF_INFAMY] = "portrait_97.0_maskofinfamy.png",
|
|
41
|
-
[BossID.
|
|
41
|
+
[BossID.WRETCHED] = "portrait_100.1_thewretched.png",
|
|
42
42
|
[BossID.PIN] = "portrait_62.0_pin.png",
|
|
43
43
|
[BossID.CONQUEST] = "portrait_65.1_conquest.png",
|
|
44
44
|
[BossID.ISAAC] = "portrait_102.0_isaac.png",
|
|
45
45
|
[BossID.BLUE_BABY] = "portrait_102.1_bluebaby.png",
|
|
46
46
|
[BossID.DADDY_LONG_LEGS] = "portrait_101.0_daddylonglegs.png",
|
|
47
47
|
[BossID.TRIACHNID] = "portrait_101.1_triachnid.png",
|
|
48
|
-
[BossID.
|
|
48
|
+
[BossID.HAUNT] = "portrait_260.0_thehaunt.png",
|
|
49
49
|
[BossID.DINGLE] = "portrait_261.0_dingle.png",
|
|
50
50
|
[BossID.MEGA_MAW] = "portrait_262.0_megamaw.png",
|
|
51
|
-
[BossID.
|
|
51
|
+
[BossID.GATE] = "portrait_263.0_megamaw2.png",
|
|
52
52
|
[BossID.MEGA_FATTY] = "portrait_264.0_megafatty.png",
|
|
53
|
-
[BossID.
|
|
53
|
+
[BossID.CAGE] = "portrait_265.0_fatty2.png",
|
|
54
54
|
[BossID.MAMA_GURDY] = "portrait_266.0_mamagurdy.png",
|
|
55
55
|
[BossID.DARK_ONE] = "portrait_267.0_darkone.png",
|
|
56
|
-
[BossID.
|
|
56
|
+
[BossID.ADVERSARY] = "portrait_268.0_darkone2.png",
|
|
57
57
|
[BossID.POLYCEPHALUS] = "portrait_269.0_polycephalus.png",
|
|
58
58
|
[BossID.MR_FRED] = "portrait_270.0_megafred.png",
|
|
59
|
-
[BossID.
|
|
59
|
+
[BossID.LAMB] = "portrait_273.0_thelamb.png",
|
|
60
60
|
[BossID.MEGA_SATAN] = "portrait_274.0_megasatan.png",
|
|
61
61
|
[BossID.GURGLINGS] = "portrait_276.0_gurglings.png",
|
|
62
|
-
[BossID.
|
|
62
|
+
[BossID.STAIN] = "portrait_401.0_thestain.png",
|
|
63
63
|
[BossID.BROWNIE] = "portrait_402.0_brownie.png",
|
|
64
|
-
[BossID.
|
|
64
|
+
[BossID.FORSAKEN] = "portrait_403.0_theforsaken.png",
|
|
65
65
|
[BossID.LITTLE_HORN] = "portrait_404.0_littlehorn.png",
|
|
66
66
|
[BossID.RAG_MAN] = "portrait_405.0_ragman.png",
|
|
67
67
|
[BossID.ULTRA_GREED] = "portrait_406.0_ultragreed.png",
|
|
68
68
|
[BossID.HUSH] = "portrait_407.0_hush.png",
|
|
69
69
|
[BossID.DANGLE] = "portrait_dangle.png",
|
|
70
70
|
[BossID.TURDLING] = "portrait_turdlings.png",
|
|
71
|
-
[BossID.
|
|
71
|
+
[BossID.FRAIL] = "portrait_thefrail.png",
|
|
72
72
|
[BossID.RAG_MEGA] = "portrait_ragmega.png",
|
|
73
73
|
[BossID.SISTERS_VIS] = "portrait_sistersvis.png",
|
|
74
74
|
[BossID.BIG_HORN] = "portrait_bighorn.png",
|
|
75
75
|
[BossID.DELIRIUM] = "portrait_delirium.png",
|
|
76
|
-
[BossID.
|
|
77
|
-
[BossID.
|
|
76
|
+
[BossID.MATRIARCH] = "portrait_matriarch.png",
|
|
77
|
+
[BossID.PILE] = "portrait_269.1_polycephalus2.png",
|
|
78
78
|
[BossID.REAP_CREEP] = "portrait_900.0_reapcreep.png",
|
|
79
79
|
[BossID.LIL_BLUB] = "portrait_901.0_beelzeblub.png",
|
|
80
80
|
[BossID.WORMWOOD] = "portrait_902.0_wormwood.png",
|
|
81
81
|
[BossID.RAINMAKER] = "portrait_902.0_rainmaker.png",
|
|
82
|
-
[BossID.
|
|
83
|
-
[BossID.
|
|
82
|
+
[BossID.VISAGE] = "portrait_903.0_visage.png",
|
|
83
|
+
[BossID.SIREN] = "portrait_904.0_siren.png",
|
|
84
84
|
[BossID.TUFF_TWINS] = "portrait_19.100_tufftwins.png",
|
|
85
|
-
[BossID.
|
|
85
|
+
[BossID.HERETIC] = "portrait_905.0_heretic.png",
|
|
86
86
|
[BossID.HORNFEL] = "portrait_906.0_hornfel.png",
|
|
87
87
|
[BossID.GREAT_GIDEON] = "portrait_907.0_gideon.png",
|
|
88
88
|
[BossID.BABY_PLUM] = "portrait_908.0_babyplum.png",
|
|
89
|
-
[BossID.
|
|
89
|
+
[BossID.SCOURGE] = "portrait_909.0_scourge.png",
|
|
90
90
|
[BossID.CHIMERA] = "portrait_910.0_chimera.png",
|
|
91
91
|
[BossID.ROTGUT] = "portrait_911.0_rotgut.png",
|
|
92
92
|
[BossID.MOTHER] = "portrait_mother.png",
|
|
@@ -97,11 +97,11 @@ ____exports.BOSS_PORTRAIT_PNG_FILE_NAMES = {
|
|
|
97
97
|
[BossID.SINGE] = "portrait_singe.png",
|
|
98
98
|
[BossID.BUMBINO] = "portrait_bumbino.png",
|
|
99
99
|
[BossID.COLOSTOMIA] = "portrait_colostomia.png",
|
|
100
|
-
[BossID.
|
|
100
|
+
[BossID.SHELL] = "portrait_shell.png",
|
|
101
101
|
[BossID.TURDLET] = "portrait_turdlet.png",
|
|
102
102
|
[BossID.RAGLICH] = "portrait_raglich.png",
|
|
103
103
|
[BossID.DOGMA] = "portrait_dogma.png",
|
|
104
|
-
[BossID.
|
|
104
|
+
[BossID.BEAST] = "portrait_dogma.png",
|
|
105
105
|
[BossID.HORNY_BOYS] = "portrait_hornyboys.png",
|
|
106
106
|
[BossID.CLUTCH] = "portrait_clutch.png"
|
|
107
107
|
}
|
|
@@ -97,7 +97,7 @@ ____exports.LEVEL_NAMES = {
|
|
|
97
97
|
[StageType.REPENTANCE] = "Undefined",
|
|
98
98
|
[StageType.REPENTANCE_B] = "Undefined"
|
|
99
99
|
},
|
|
100
|
-
[LevelStage.
|
|
100
|
+
[LevelStage.VOID] = {
|
|
101
101
|
[StageType.ORIGINAL] = "The Void",
|
|
102
102
|
[StageType.WRATH_OF_THE_LAMB] = "The Void",
|
|
103
103
|
[StageType.AFTERBIRTH] = "The Void",
|
|
@@ -87,7 +87,7 @@ ____exports.STAGE_TO_MUSIC = {
|
|
|
87
87
|
[LevelStage.BLUE_WOMB] = BLUE_WOMB_TO_MUSIC,
|
|
88
88
|
[LevelStage.SHEOL_CATHEDRAL] = SHEOL_CATHEDRAL_TO_MUSIC,
|
|
89
89
|
[LevelStage.DARK_ROOM_CHEST] = DARK_ROOM_CHEST_TO_MUSIC,
|
|
90
|
-
[LevelStage.
|
|
90
|
+
[LevelStage.VOID] = VOID_TO_MUSIC,
|
|
91
91
|
[LevelStage.HOME] = HOME_TO_MUSIC
|
|
92
92
|
}
|
|
93
93
|
return ____exports
|
|
@@ -87,7 +87,7 @@ ____exports.STAGE_TO_STAGE_ID = {
|
|
|
87
87
|
[LevelStage.BLUE_WOMB] = BLUE_WOMB_TO_STAGE_ID,
|
|
88
88
|
[LevelStage.SHEOL_CATHEDRAL] = SHEOL_CATHEDRAL_TO_STAGE_ID,
|
|
89
89
|
[LevelStage.DARK_ROOM_CHEST] = DARK_ROOM_CHEST_TO_STAGE_ID,
|
|
90
|
-
[LevelStage.
|
|
90
|
+
[LevelStage.VOID] = VOID_TO_STAGE_ID,
|
|
91
91
|
[LevelStage.HOME] = HOME_TO_STAGE_ID
|
|
92
92
|
}
|
|
93
93
|
return ____exports
|
|
@@ -78,7 +78,7 @@ local CELLAR_BOSSES_SET = __TS__New(
|
|
|
78
78
|
(tostring(EntityType.FALLEN) .. ".") .. tostring(FallenVariant.FALLEN),
|
|
79
79
|
tostring(EntityType.HEADLESS_HORSEMAN) .. ".0",
|
|
80
80
|
(tostring(EntityType.WIDOW) .. ".") .. tostring(WidowVariant.WIDOW),
|
|
81
|
-
(tostring(EntityType.
|
|
81
|
+
(tostring(EntityType.HAUNT) .. ".") .. tostring(HauntVariant.HAUNT),
|
|
82
82
|
tostring(EntityType.LITTLE_HORN) .. ".0",
|
|
83
83
|
(tostring(EntityType.RAG_MAN) .. ".") .. tostring(RagManVariant.RAG_MAN),
|
|
84
84
|
tostring(EntityType.BABY_PLUM) .. ".0"
|
|
@@ -167,16 +167,16 @@ local CAVES_BOSSES_SET = __TS__New(
|
|
|
167
167
|
local CATACOMBS_BOSSES_SET = __TS__New(
|
|
168
168
|
ReadonlySet,
|
|
169
169
|
{
|
|
170
|
-
(tostring(EntityType.LARRY_JR) .. ".") .. tostring(LarryJrVariant.
|
|
170
|
+
(tostring(EntityType.LARRY_JR) .. ".") .. tostring(LarryJrVariant.HOLLOW),
|
|
171
171
|
(tostring(EntityType.CHUB) .. ".") .. tostring(ChubVariant.CARRION_QUEEN),
|
|
172
172
|
(tostring(EntityType.PIN) .. ".") .. tostring(PinVariant.FRAIL),
|
|
173
173
|
tostring(EntityType.PESTILENCE) .. ".0",
|
|
174
|
-
(tostring(EntityType.DUKE_OF_FLIES) .. ".") .. tostring(DukeOfFliesVariant.
|
|
174
|
+
(tostring(EntityType.DUKE_OF_FLIES) .. ".") .. tostring(DukeOfFliesVariant.HUSK),
|
|
175
175
|
(tostring(EntityType.PEEP) .. ".") .. tostring(PeepVariant.PEEP),
|
|
176
176
|
(tostring(EntityType.FALLEN) .. ".") .. tostring(FallenVariant.FALLEN),
|
|
177
177
|
tostring(EntityType.HEADLESS_HORSEMAN) .. ".0",
|
|
178
178
|
tostring(EntityType.GURDY_JR) .. ".0",
|
|
179
|
-
(tostring(EntityType.WIDOW) .. ".") .. tostring(WidowVariant.
|
|
179
|
+
(tostring(EntityType.WIDOW) .. ".") .. tostring(WidowVariant.WRETCHED),
|
|
180
180
|
tostring(EntityType.DARK_ONE) .. ".0",
|
|
181
181
|
(tostring(EntityType.POLYCEPHALUS) .. ".") .. tostring(PolycephalusVariant.POLYCEPHALUS),
|
|
182
182
|
tostring(EntityType.FORSAKEN) .. ".0",
|
|
@@ -222,8 +222,8 @@ local MINES_BOSSES_SET = __TS__New(
|
|
|
222
222
|
local ASHPIT_BOSSES_SET = __TS__New(
|
|
223
223
|
ReadonlySet,
|
|
224
224
|
{
|
|
225
|
-
(tostring(EntityType.LARRY_JR) .. ".") .. tostring(LarryJrVariant.
|
|
226
|
-
(tostring(EntityType.POLYCEPHALUS) .. ".") .. tostring(PolycephalusVariant.
|
|
225
|
+
(tostring(EntityType.LARRY_JR) .. ".") .. tostring(LarryJrVariant.SHELL),
|
|
226
|
+
(tostring(EntityType.POLYCEPHALUS) .. ".") .. tostring(PolycephalusVariant.PILE),
|
|
227
227
|
tostring(EntityType.GREAT_GIDEON) .. ".0",
|
|
228
228
|
tostring(EntityType.SINGE) .. ".0",
|
|
229
229
|
tostring(EntityType.CLUTCH) .. ".0"
|
|
@@ -275,7 +275,7 @@ local NECROPOLIS_BOSSES_SET = __TS__New(
|
|
|
275
275
|
tostring(EntityType.HEADLESS_HORSEMAN) .. ".0",
|
|
276
276
|
tostring(EntityType.MASK_OF_INFAMY) .. ".0",
|
|
277
277
|
tostring(EntityType.ADVERSARY) .. ".0",
|
|
278
|
-
(tostring(EntityType.POLYCEPHALUS) .. ".") .. tostring(PolycephalusVariant.
|
|
278
|
+
(tostring(EntityType.POLYCEPHALUS) .. ".") .. tostring(PolycephalusVariant.PILE),
|
|
279
279
|
tostring(EntityType.BROWNIE) .. ".0",
|
|
280
280
|
tostring(EntityType.SISTERS_VIS) .. ".0"
|
|
281
281
|
}
|
|
@@ -424,7 +424,7 @@ local STAGE_10_STAGE_TYPE_TO_BOSS_SET_MAP = __TS__New(ReadonlyMap, {{StageType.O
|
|
|
424
424
|
local DARK_ROOM_BOSSES_SET = __TS__New(
|
|
425
425
|
ReadonlySet,
|
|
426
426
|
{
|
|
427
|
-
(tostring(EntityType.
|
|
427
|
+
(tostring(EntityType.LAMB) .. ".") .. tostring(LambVariant.LAMB),
|
|
428
428
|
tostring(EntityType.MEGA_SATAN) .. ".0"
|
|
429
429
|
}
|
|
430
430
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "49.0.0",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"main": "dist/src/index",
|
|
26
26
|
"types": "dist/index.rollup.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"isaac-typescript-definitions": "^
|
|
28
|
+
"isaac-typescript-definitions": "^20.0.1"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/functions/doors.ts
CHANGED
|
@@ -521,7 +521,7 @@ export function isSecretRoomDoor(door: GridEntityDoor): boolean {
|
|
|
521
521
|
* contains the portal to The Void. (In vanilla, the door will only appear in the Hush Boss Room.)
|
|
522
522
|
*/
|
|
523
523
|
export function isVoidDoor(door: GridEntityDoor): boolean {
|
|
524
|
-
return door.TargetRoomIndex === asNumber(GridRoom.
|
|
524
|
+
return door.TargetRoomIndex === asNumber(GridRoom.VOID);
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
/**
|
|
@@ -45,8 +45,8 @@ export function getNextStage(): LevelStage {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// -9
|
|
48
|
-
case GridRoom.
|
|
49
|
-
return LevelStage.
|
|
48
|
+
case GridRoom.VOID: {
|
|
49
|
+
return LevelStage.VOID;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
// -10
|
|
@@ -103,9 +103,9 @@ export function getNextStage(): LevelStage {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// 12
|
|
106
|
-
if (stage === LevelStage.
|
|
106
|
+
if (stage === LevelStage.VOID) {
|
|
107
107
|
// The Void goes to The Void.
|
|
108
|
-
return LevelStage.
|
|
108
|
+
return LevelStage.VOID;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
// By default, go to the next floor.
|
|
@@ -192,7 +192,7 @@ export function getNextStageType(upwards = false): StageType {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
// 12
|
|
195
|
-
if (nextStage === LevelStage.
|
|
195
|
+
if (nextStage === LevelStage.VOID) {
|
|
196
196
|
// The Void does not have any alternate floors.
|
|
197
197
|
return StageType.ORIGINAL;
|
|
198
198
|
}
|
package/src/functions/stage.ts
CHANGED
|
@@ -199,7 +199,7 @@ export function goToStage(stage: LevelStage, stageType: StageType): void {
|
|
|
199
199
|
export function isFinalFloor(stage: LevelStage, stageType: StageType): boolean {
|
|
200
200
|
return (
|
|
201
201
|
stage === LevelStage.DARK_ROOM_CHEST ||
|
|
202
|
-
stage === LevelStage.
|
|
202
|
+
stage === LevelStage.VOID ||
|
|
203
203
|
stage === LevelStage.HOME ||
|
|
204
204
|
(stage === LevelStage.WOMB_2 && isRepentanceStage(stageType)) // Corpse 2
|
|
205
205
|
);
|
|
@@ -244,7 +244,7 @@ export function isStageWithNaturalDevilRoom(
|
|
|
244
244
|
* Rooms will drop random boss collectibles.
|
|
245
245
|
*/
|
|
246
246
|
export function isStageWithRandomBossCollectible(stage: LevelStage): boolean {
|
|
247
|
-
return !isStageWithStoryBoss(stage) || stage === LevelStage.
|
|
247
|
+
return !isStageWithStoryBoss(stage) || stage === LevelStage.VOID;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
/**
|
|
@@ -26,20 +26,20 @@ export const BOSS_NAME_PNG_FILE_NAMES = {
|
|
|
26
26
|
[BossID.STEVEN]: "bossname_79.1_steven.png", // 20
|
|
27
27
|
[BossID.CHAD]: "bossname_28.1_chad.png", // 21
|
|
28
28
|
[BossID.HEADLESS_HORSEMAN]: "bossname_82.0_headlesshorseman.png", // 22
|
|
29
|
-
[BossID.
|
|
29
|
+
[BossID.FALLEN]: "bossname_81.0_thefallen.png", // 23
|
|
30
30
|
[BossID.SATAN]: "bossname_84.0_satan.png", // 24
|
|
31
31
|
[BossID.IT_LIVES]: "bossname_78.1_itlives.png", // 25
|
|
32
|
-
[BossID.
|
|
33
|
-
[BossID.
|
|
32
|
+
[BossID.HOLLOW]: "bossname_19.1_thehollow.png", // 26
|
|
33
|
+
[BossID.CARRION_QUEEN]: "bossname_28.2_carrionqueen.png", // 27
|
|
34
34
|
[BossID.GURDY_JR]: "bossname_99.0_gurdyjr.png", // 28
|
|
35
|
-
[BossID.
|
|
36
|
-
[BossID.
|
|
35
|
+
[BossID.HUSK]: "bossname_67.1_thehusk.png", // 29
|
|
36
|
+
[BossID.BLOAT]: "bossname_68.1_bloat.png", // 30
|
|
37
37
|
[BossID.LOKII]: "bossname_69.1_lokii.png", // 31
|
|
38
|
-
[BossID.
|
|
38
|
+
[BossID.BLIGHTED_OVUM]: "bossname_79.2_blightedovum.png", // 32
|
|
39
39
|
[BossID.TERATOMA]: "bossname_71.1_teratoma.png", // 33
|
|
40
|
-
[BossID.
|
|
40
|
+
[BossID.WIDOW]: "bossname_100.0_widow.png", // 34
|
|
41
41
|
[BossID.MASK_OF_INFAMY]: "bossname_97.0_maskofinfamy.png", // 35
|
|
42
|
-
[BossID.
|
|
42
|
+
[BossID.WRETCHED]: "bossname_100.1_thewretched.png", // 36
|
|
43
43
|
[BossID.PIN]: "bossname_62.0_pin.png", // 37
|
|
44
44
|
[BossID.CONQUEST]: "bossname_65.1_conquest.png", // 38
|
|
45
45
|
// There is no dedicated "bossname_" PNG file for Isaac.
|
|
@@ -47,49 +47,49 @@ export const BOSS_NAME_PNG_FILE_NAMES = {
|
|
|
47
47
|
[BossID.BLUE_BABY]: "bossname_102.1_bluebaby.png", // 40
|
|
48
48
|
[BossID.DADDY_LONG_LEGS]: "bossname_101.0_daddylonglegs.png", // 41
|
|
49
49
|
[BossID.TRIACHNID]: "bossname_101.1_triachnid.png", // 42
|
|
50
|
-
[BossID.
|
|
50
|
+
[BossID.HAUNT]: "bossname_260.0_thehaunt.png", // 43
|
|
51
51
|
[BossID.DINGLE]: "bossname_261.0_dingle.png", // 44
|
|
52
52
|
[BossID.MEGA_MAW]: "bossname_262.0_megamaw.png", // 45
|
|
53
|
-
[BossID.
|
|
53
|
+
[BossID.GATE]: "bossname_263.0_megamaw2.png", // 46
|
|
54
54
|
[BossID.MEGA_FATTY]: "bossname_264.0_megafatty.png", // 47
|
|
55
|
-
[BossID.
|
|
55
|
+
[BossID.CAGE]: "bossname_265.0_fatty2.png", // 48
|
|
56
56
|
[BossID.MAMA_GURDY]: "bossname_266.0_mamagurdy.png", // 49
|
|
57
57
|
[BossID.DARK_ONE]: "bossname_267.0_darkone.png", // 50
|
|
58
|
-
[BossID.
|
|
58
|
+
[BossID.ADVERSARY]: "bossname_268.0_darkone2.png", // 51
|
|
59
59
|
[BossID.POLYCEPHALUS]: "bossname_269.0_polycephalus.png", // 52
|
|
60
60
|
[BossID.MR_FRED]: "bossname_270.0_megafred.png", // 53
|
|
61
|
-
[BossID.
|
|
61
|
+
[BossID.LAMB]: "bossname_273.0_thelamb.png", // 54
|
|
62
62
|
[BossID.MEGA_SATAN]: "bossname_274.0_megasatan.png", // 55
|
|
63
63
|
[BossID.GURGLINGS]: "bossname_276.0_gurglings.png", // 56
|
|
64
|
-
[BossID.
|
|
64
|
+
[BossID.STAIN]: "bossname_401.0_thestain.png", // 57
|
|
65
65
|
[BossID.BROWNIE]: "bossname_402.0_brownie.png", // 58
|
|
66
|
-
[BossID.
|
|
66
|
+
[BossID.FORSAKEN]: "bossname_403.0_theforsaken.png", // 59
|
|
67
67
|
[BossID.LITTLE_HORN]: "bossname_404.0_littlehorn.png", // 60
|
|
68
68
|
[BossID.RAG_MAN]: "bossname_405.0_ragman.png", // 61
|
|
69
69
|
[BossID.ULTRA_GREED]: "bossname_406.0_ultragreed.png", // 62
|
|
70
70
|
[BossID.HUSH]: "bossname_407.0_hush.png", // 63
|
|
71
71
|
[BossID.DANGLE]: "bossname_dangle.png", // 64
|
|
72
72
|
[BossID.TURDLING]: "bossname_turdlings.png", // 65
|
|
73
|
-
[BossID.
|
|
73
|
+
[BossID.FRAIL]: "bossname_thefrail.png", // 66
|
|
74
74
|
[BossID.RAG_MEGA]: "bossname_ragmega.png", // 67
|
|
75
75
|
[BossID.SISTERS_VIS]: "bossname_sisterssvis.png", // 68
|
|
76
76
|
[BossID.BIG_HORN]: "bossname_bighorn.png", // 69
|
|
77
77
|
[BossID.DELIRIUM]: "bossname_delirium.png", // 70
|
|
78
78
|
// There is no `BossID` with a value of 71.
|
|
79
|
-
[BossID.
|
|
80
|
-
[BossID.
|
|
79
|
+
[BossID.MATRIARCH]: "bossname_matriarch.png", // 72
|
|
80
|
+
[BossID.PILE]: "bossname_polycephalus2.png", // 73
|
|
81
81
|
[BossID.REAP_CREEP]: "bossname_reapcreep.png", // 74
|
|
82
82
|
[BossID.LIL_BLUB]: "bossname_beelzeblub.png", // 75
|
|
83
83
|
[BossID.WORMWOOD]: "bossname_wormwood.png", // 76
|
|
84
84
|
[BossID.RAINMAKER]: "bossname_rainmaker.png", // 77
|
|
85
|
-
[BossID.
|
|
86
|
-
[BossID.
|
|
85
|
+
[BossID.VISAGE]: "bossname_visage.png", // 78
|
|
86
|
+
[BossID.SIREN]: "bossname_siren.png", // 79
|
|
87
87
|
[BossID.TUFF_TWINS]: "bossname_tufftwins.png", // 80
|
|
88
|
-
[BossID.
|
|
88
|
+
[BossID.HERETIC]: "bossname_heretic.png", // 81
|
|
89
89
|
[BossID.HORNFEL]: "bossname_hornfel.png", // 82
|
|
90
90
|
[BossID.GREAT_GIDEON]: "bossname_gideon.png", // 83
|
|
91
91
|
[BossID.BABY_PLUM]: "bossname_babyplum.png", // 84
|
|
92
|
-
[BossID.
|
|
92
|
+
[BossID.SCOURGE]: "bossname_scourge.png", // 85
|
|
93
93
|
[BossID.CHIMERA]: "bossname_chimera.png", // 86
|
|
94
94
|
[BossID.ROTGUT]: "bossname_rotgut.png", // 87
|
|
95
95
|
[BossID.MOTHER]: "bossname_mother.png", // 88
|
|
@@ -102,12 +102,12 @@ export const BOSS_NAME_PNG_FILE_NAMES = {
|
|
|
102
102
|
[BossID.SINGE]: "bossname_singe.png", // 93
|
|
103
103
|
[BossID.BUMBINO]: "bossname_bumbino.png", // 94
|
|
104
104
|
[BossID.COLOSTOMIA]: "bossname_colostomia.png", // 95
|
|
105
|
-
[BossID.
|
|
105
|
+
[BossID.SHELL]: "bossname_shell.png", // 96
|
|
106
106
|
[BossID.TURDLET]: "bossname_turdlet.png", // 97
|
|
107
107
|
[BossID.RAGLICH]: "bossname_raglich.png", // 98
|
|
108
108
|
[BossID.DOGMA]: "bossname_dogma.png", // 99
|
|
109
109
|
// There is no versus-screen for The Beast, so use Dogma instead.
|
|
110
|
-
[BossID.
|
|
110
|
+
[BossID.BEAST]: "bossname_dogma.png", // 100
|
|
111
111
|
[BossID.HORNY_BOYS]: "bossname_hornyboys.png", // 101
|
|
112
112
|
[BossID.CLUTCH]: "bossname_clutch.png", // 102
|
|
113
113
|
} as const satisfies Record<BossID, string>;
|