isaacscript-common 51.1.0 → 51.2.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 +36 -0
- package/dist/isaacscript-common.lua +219 -36
- package/dist/src/functions/bosses.d.ts +2 -0
- package/dist/src/functions/bosses.d.ts.map +1 -1
- package/dist/src/functions/bosses.lua +55 -33
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.lua +8 -0
- package/dist/src/objects/bossIDToEntityTypeVariant.d.ts +105 -0
- package/dist/src/objects/bossIDToEntityTypeVariant.d.ts.map +1 -0
- package/dist/src/objects/bossIDToEntityTypeVariant.lua +141 -0
- package/dist/src/sets/bossSets.d.ts.map +1 -1
- package/dist/src/sets/bossSets.lua +4 -2
- package/package.json +1 -1
- package/src/functions/bosses.ts +63 -33
- package/src/index.ts +1 -0
- package/src/objects/bossIDToEntityTypeVariant.ts +359 -0
- package/src/sets/bossSets.ts +17 -16
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { BeastVariant, BigHornVariant, ChubVariant, DaddyLongLegsVariant, DingleVariant, DogmaVariant, DukeOfFliesVariant, EntityType, FallenVariant, FistulaVariant, GeminiVariant, GurglingVariant, HauntVariant, IsaacVariant, LambVariant, LarryJrVariant, LittleHornVariant, LokiVariant, MamaGurdyVariant, MegaSatanVariant, MomVariant, MomsHeartVariant, Monstro2Variant, MotherVariant, PeepVariant, PinVariant, PolycephalusVariant, RagManVariant, RagMegaVariant, RaglichVariant, SatanVariant, UltraGreedVariant, WarVariant, WidowVariant } from "isaac-typescript-definitions";
|
|
2
|
+
export declare const BOSS_ID_TO_ENTITY_TYPE_VARIANT: {
|
|
3
|
+
readonly 1: readonly [EntityType.MONSTRO, 0];
|
|
4
|
+
readonly 2: readonly [EntityType.LARRY_JR, LarryJrVariant.LARRY_JR];
|
|
5
|
+
readonly 3: readonly [EntityType.CHUB, ChubVariant.CHUB];
|
|
6
|
+
readonly 4: readonly [EntityType.GURDY, 0];
|
|
7
|
+
readonly 5: readonly [EntityType.MONSTRO_2, Monstro2Variant.MONSTRO_2];
|
|
8
|
+
readonly 6: readonly [EntityType.MOM, MomVariant.MOM];
|
|
9
|
+
readonly 7: readonly [EntityType.PIN, PinVariant.SCOLEX];
|
|
10
|
+
readonly 8: readonly [EntityType.MOMS_HEART, MomsHeartVariant.MOMS_HEART];
|
|
11
|
+
readonly 9: readonly [EntityType.FAMINE, 0];
|
|
12
|
+
readonly 10: readonly [EntityType.PESTILENCE, 0];
|
|
13
|
+
readonly 11: readonly [EntityType.WAR, WarVariant.WAR];
|
|
14
|
+
readonly 12: readonly [EntityType.DEATH, 0];
|
|
15
|
+
readonly 13: readonly [EntityType.DUKE_OF_FLIES, DukeOfFliesVariant.DUKE_OF_FLIES];
|
|
16
|
+
readonly 14: readonly [EntityType.PEEP, PeepVariant.PEEP];
|
|
17
|
+
readonly 15: readonly [EntityType.LOKI, LokiVariant.LOKI];
|
|
18
|
+
readonly 16: readonly [EntityType.BLASTOCYST_BIG, 0];
|
|
19
|
+
readonly 17: readonly [EntityType.GEMINI, GeminiVariant.GEMINI];
|
|
20
|
+
readonly 18: readonly [EntityType.FISTULA_BIG, FistulaVariant.FISTULA];
|
|
21
|
+
readonly 19: readonly [EntityType.MONSTRO_2, Monstro2Variant.GISH];
|
|
22
|
+
readonly 20: readonly [EntityType.GEMINI, GeminiVariant.STEVEN];
|
|
23
|
+
readonly 21: readonly [EntityType.CHUB, ChubVariant.CHAD];
|
|
24
|
+
readonly 22: readonly [EntityType.HEADLESS_HORSEMAN, 0];
|
|
25
|
+
readonly 23: readonly [EntityType.FALLEN, FallenVariant.FALLEN];
|
|
26
|
+
readonly 24: readonly [EntityType.SATAN, SatanVariant.SATAN];
|
|
27
|
+
readonly 25: readonly [EntityType.MOMS_HEART, MomsHeartVariant.IT_LIVES];
|
|
28
|
+
readonly 26: readonly [EntityType.LARRY_JR, LarryJrVariant.HOLLOW];
|
|
29
|
+
readonly 27: readonly [EntityType.CHUB, ChubVariant.CARRION_QUEEN];
|
|
30
|
+
readonly 28: readonly [EntityType.GURDY_JR, 0];
|
|
31
|
+
readonly 29: readonly [EntityType.DUKE_OF_FLIES, DukeOfFliesVariant.HUSK];
|
|
32
|
+
readonly 30: readonly [EntityType.PEEP, PeepVariant.BLOAT];
|
|
33
|
+
readonly 31: readonly [EntityType.LOKI, LokiVariant.LOKII];
|
|
34
|
+
readonly 32: readonly [EntityType.GEMINI, GeminiVariant.BLIGHTED_OVUM];
|
|
35
|
+
readonly 33: readonly [EntityType.FISTULA_BIG, FistulaVariant.TERATOMA];
|
|
36
|
+
readonly 34: readonly [EntityType.WIDOW, WidowVariant.WIDOW];
|
|
37
|
+
readonly 35: readonly [EntityType.MASK_OF_INFAMY, 0];
|
|
38
|
+
readonly 36: readonly [EntityType.WIDOW, WidowVariant.WRETCHED];
|
|
39
|
+
readonly 37: readonly [EntityType.PIN, PinVariant.PIN];
|
|
40
|
+
readonly 38: readonly [EntityType.WAR, WarVariant.CONQUEST];
|
|
41
|
+
readonly 39: readonly [EntityType.ISAAC, IsaacVariant.ISAAC];
|
|
42
|
+
readonly 40: readonly [EntityType.ISAAC, IsaacVariant.BLUE_BABY];
|
|
43
|
+
readonly 41: readonly [EntityType.DADDY_LONG_LEGS, DaddyLongLegsVariant.DADDY_LONG_LEGS];
|
|
44
|
+
readonly 42: readonly [EntityType.DADDY_LONG_LEGS, DaddyLongLegsVariant.TRIACHNID];
|
|
45
|
+
readonly 43: readonly [EntityType.HAUNT, HauntVariant.HAUNT];
|
|
46
|
+
readonly 44: readonly [EntityType.DINGLE, DingleVariant.DINGLE];
|
|
47
|
+
readonly 45: readonly [EntityType.MEGA_MAW, 0];
|
|
48
|
+
readonly 46: readonly [EntityType.GATE, 0];
|
|
49
|
+
readonly 47: readonly [EntityType.MEGA_FATTY, 0];
|
|
50
|
+
readonly 48: readonly [EntityType.CAGE, 0];
|
|
51
|
+
readonly 49: readonly [EntityType.MAMA_GURDY, MamaGurdyVariant.MAMA_GURDY];
|
|
52
|
+
readonly 50: readonly [EntityType.DARK_ONE, 0];
|
|
53
|
+
readonly 51: readonly [EntityType.ADVERSARY, 0];
|
|
54
|
+
readonly 52: readonly [EntityType.POLYCEPHALUS, PolycephalusVariant.POLYCEPHALUS];
|
|
55
|
+
readonly 53: readonly [EntityType.MR_FRED, 0];
|
|
56
|
+
readonly 54: readonly [EntityType.LAMB, LambVariant.LAMB];
|
|
57
|
+
readonly 55: readonly [EntityType.MEGA_SATAN, MegaSatanVariant.MEGA_SATAN];
|
|
58
|
+
readonly 56: readonly [EntityType.GURGLING, GurglingVariant.GURGLING_BOSS];
|
|
59
|
+
readonly 57: readonly [EntityType.STAIN, 0];
|
|
60
|
+
readonly 58: readonly [EntityType.BROWNIE, 0];
|
|
61
|
+
readonly 59: readonly [EntityType.FORSAKEN, 0];
|
|
62
|
+
readonly 60: readonly [EntityType.LITTLE_HORN, LittleHornVariant.LITTLE_HORN];
|
|
63
|
+
readonly 61: readonly [EntityType.RAG_MAN, RagManVariant.RAG_MAN];
|
|
64
|
+
readonly 62: readonly [EntityType.ULTRA_GREED, UltraGreedVariant.ULTRA_GREED];
|
|
65
|
+
readonly 63: readonly [EntityType.HUSH, 0];
|
|
66
|
+
readonly 64: readonly [EntityType.DINGLE, DingleVariant.DANGLE];
|
|
67
|
+
readonly 65: readonly [EntityType.GURGLING, GurglingVariant.TURDLING];
|
|
68
|
+
readonly 66: readonly [EntityType.PIN, PinVariant.FRAIL];
|
|
69
|
+
readonly 67: readonly [EntityType.RAG_MEGA, RagMegaVariant.RAG_MEGA];
|
|
70
|
+
readonly 68: readonly [EntityType.SISTERS_VIS, 0];
|
|
71
|
+
readonly 69: readonly [EntityType.BIG_HORN, BigHornVariant.BIG_HORN];
|
|
72
|
+
readonly 70: readonly [EntityType.DELIRIUM, 0];
|
|
73
|
+
readonly 72: readonly [EntityType.MATRIARCH, 0];
|
|
74
|
+
readonly 73: readonly [EntityType.POLYCEPHALUS, PolycephalusVariant.PILE];
|
|
75
|
+
readonly 74: readonly [EntityType.REAP_CREEP, 0];
|
|
76
|
+
readonly 75: readonly [EntityType.LIL_BLUB, 0];
|
|
77
|
+
readonly 76: readonly [EntityType.PIN, PinVariant.WORMWOOD];
|
|
78
|
+
readonly 77: readonly [EntityType.RAINMAKER, 0];
|
|
79
|
+
readonly 78: readonly [EntityType.VISAGE, 0];
|
|
80
|
+
readonly 79: readonly [EntityType.SIREN, 0];
|
|
81
|
+
readonly 80: readonly [EntityType.LARRY_JR, LarryJrVariant.TUFF_TWIN];
|
|
82
|
+
readonly 81: readonly [EntityType.HERETIC, 0];
|
|
83
|
+
readonly 82: readonly [EntityType.HORNFEL, 0];
|
|
84
|
+
readonly 83: readonly [EntityType.GREAT_GIDEON, 0];
|
|
85
|
+
readonly 84: readonly [EntityType.BABY_PLUM, 0];
|
|
86
|
+
readonly 85: readonly [EntityType.SCOURGE, 0];
|
|
87
|
+
readonly 86: readonly [EntityType.CHIMERA, 0];
|
|
88
|
+
readonly 87: readonly [EntityType.ROTGUT, 0];
|
|
89
|
+
readonly 88: readonly [EntityType.MOTHER, MotherVariant.MOTHER_1];
|
|
90
|
+
readonly 89: readonly [EntityType.MOM, MomVariant.MOM];
|
|
91
|
+
readonly 90: readonly [EntityType.MOMS_HEART, MomsHeartVariant.MOMS_HEART];
|
|
92
|
+
readonly 91: readonly [EntityType.MIN_MIN, 0];
|
|
93
|
+
readonly 92: readonly [EntityType.CLOG, 0];
|
|
94
|
+
readonly 93: readonly [EntityType.SINGE, 0];
|
|
95
|
+
readonly 94: readonly [EntityType.BUMBINO, 0];
|
|
96
|
+
readonly 95: readonly [EntityType.COLOSTOMIA, 0];
|
|
97
|
+
readonly 96: readonly [EntityType.LARRY_JR, LarryJrVariant.SHELL];
|
|
98
|
+
readonly 97: readonly [EntityType.TURDLET, 0];
|
|
99
|
+
readonly 98: readonly [EntityType.RAGLICH, RaglichVariant.RAGLICH];
|
|
100
|
+
readonly 99: readonly [EntityType.DOGMA, DogmaVariant.DOGMA_PHASE_1];
|
|
101
|
+
readonly 100: readonly [EntityType.BEAST, BeastVariant.BEAST];
|
|
102
|
+
readonly 101: readonly [EntityType.HORNY_BOYS, 0];
|
|
103
|
+
readonly 102: readonly [EntityType.CLUTCH, 0];
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=bossIDToEntityTypeVariant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bossIDToEntityTypeVariant.d.ts","sourceRoot":"","sources":["../../../src/objects/bossIDToEntityTypeVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,cAAc,EAEd,WAAW,EACX,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,YAAY,EACb,MAAM,8BAA8B,CAAC;AAEtC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgUoB,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local BeastVariant = ____isaac_2Dtypescript_2Ddefinitions.BeastVariant
|
|
4
|
+
local BigHornVariant = ____isaac_2Dtypescript_2Ddefinitions.BigHornVariant
|
|
5
|
+
local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
|
|
6
|
+
local ChubVariant = ____isaac_2Dtypescript_2Ddefinitions.ChubVariant
|
|
7
|
+
local DaddyLongLegsVariant = ____isaac_2Dtypescript_2Ddefinitions.DaddyLongLegsVariant
|
|
8
|
+
local DingleVariant = ____isaac_2Dtypescript_2Ddefinitions.DingleVariant
|
|
9
|
+
local DogmaVariant = ____isaac_2Dtypescript_2Ddefinitions.DogmaVariant
|
|
10
|
+
local DukeOfFliesVariant = ____isaac_2Dtypescript_2Ddefinitions.DukeOfFliesVariant
|
|
11
|
+
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
12
|
+
local FallenVariant = ____isaac_2Dtypescript_2Ddefinitions.FallenVariant
|
|
13
|
+
local FistulaVariant = ____isaac_2Dtypescript_2Ddefinitions.FistulaVariant
|
|
14
|
+
local GeminiVariant = ____isaac_2Dtypescript_2Ddefinitions.GeminiVariant
|
|
15
|
+
local GurglingVariant = ____isaac_2Dtypescript_2Ddefinitions.GurglingVariant
|
|
16
|
+
local HauntVariant = ____isaac_2Dtypescript_2Ddefinitions.HauntVariant
|
|
17
|
+
local IsaacVariant = ____isaac_2Dtypescript_2Ddefinitions.IsaacVariant
|
|
18
|
+
local LambVariant = ____isaac_2Dtypescript_2Ddefinitions.LambVariant
|
|
19
|
+
local LarryJrVariant = ____isaac_2Dtypescript_2Ddefinitions.LarryJrVariant
|
|
20
|
+
local LittleHornVariant = ____isaac_2Dtypescript_2Ddefinitions.LittleHornVariant
|
|
21
|
+
local LokiVariant = ____isaac_2Dtypescript_2Ddefinitions.LokiVariant
|
|
22
|
+
local MamaGurdyVariant = ____isaac_2Dtypescript_2Ddefinitions.MamaGurdyVariant
|
|
23
|
+
local MegaSatanVariant = ____isaac_2Dtypescript_2Ddefinitions.MegaSatanVariant
|
|
24
|
+
local MomVariant = ____isaac_2Dtypescript_2Ddefinitions.MomVariant
|
|
25
|
+
local MomsHeartVariant = ____isaac_2Dtypescript_2Ddefinitions.MomsHeartVariant
|
|
26
|
+
local Monstro2Variant = ____isaac_2Dtypescript_2Ddefinitions.Monstro2Variant
|
|
27
|
+
local MotherVariant = ____isaac_2Dtypescript_2Ddefinitions.MotherVariant
|
|
28
|
+
local PeepVariant = ____isaac_2Dtypescript_2Ddefinitions.PeepVariant
|
|
29
|
+
local PinVariant = ____isaac_2Dtypescript_2Ddefinitions.PinVariant
|
|
30
|
+
local PolycephalusVariant = ____isaac_2Dtypescript_2Ddefinitions.PolycephalusVariant
|
|
31
|
+
local RagManVariant = ____isaac_2Dtypescript_2Ddefinitions.RagManVariant
|
|
32
|
+
local RagMegaVariant = ____isaac_2Dtypescript_2Ddefinitions.RagMegaVariant
|
|
33
|
+
local RaglichVariant = ____isaac_2Dtypescript_2Ddefinitions.RaglichVariant
|
|
34
|
+
local SatanVariant = ____isaac_2Dtypescript_2Ddefinitions.SatanVariant
|
|
35
|
+
local UltraGreedVariant = ____isaac_2Dtypescript_2Ddefinitions.UltraGreedVariant
|
|
36
|
+
local WarVariant = ____isaac_2Dtypescript_2Ddefinitions.WarVariant
|
|
37
|
+
local WidowVariant = ____isaac_2Dtypescript_2Ddefinitions.WidowVariant
|
|
38
|
+
____exports.BOSS_ID_TO_ENTITY_TYPE_VARIANT = {
|
|
39
|
+
[BossID.MONSTRO] = {EntityType.MONSTRO, 0},
|
|
40
|
+
[BossID.LARRY_JR] = {EntityType.LARRY_JR, LarryJrVariant.LARRY_JR},
|
|
41
|
+
[BossID.CHUB] = {EntityType.CHUB, ChubVariant.CHUB},
|
|
42
|
+
[BossID.GURDY] = {EntityType.GURDY, 0},
|
|
43
|
+
[BossID.MONSTRO_2] = {EntityType.MONSTRO_2, Monstro2Variant.MONSTRO_2},
|
|
44
|
+
[BossID.MOM] = {EntityType.MOM, MomVariant.MOM},
|
|
45
|
+
[BossID.SCOLEX] = {EntityType.PIN, PinVariant.SCOLEX},
|
|
46
|
+
[BossID.MOMS_HEART] = {EntityType.MOMS_HEART, MomsHeartVariant.MOMS_HEART},
|
|
47
|
+
[BossID.FAMINE] = {EntityType.FAMINE, 0},
|
|
48
|
+
[BossID.PESTILENCE] = {EntityType.PESTILENCE, 0},
|
|
49
|
+
[BossID.WAR] = {EntityType.WAR, WarVariant.WAR},
|
|
50
|
+
[BossID.DEATH] = {EntityType.DEATH, 0},
|
|
51
|
+
[BossID.DUKE_OF_FLIES] = {EntityType.DUKE_OF_FLIES, DukeOfFliesVariant.DUKE_OF_FLIES},
|
|
52
|
+
[BossID.PEEP] = {EntityType.PEEP, PeepVariant.PEEP},
|
|
53
|
+
[BossID.LOKI] = {EntityType.LOKI, LokiVariant.LOKI},
|
|
54
|
+
[BossID.BLASTOCYST] = {EntityType.BLASTOCYST_BIG, 0},
|
|
55
|
+
[BossID.GEMINI] = {EntityType.GEMINI, GeminiVariant.GEMINI},
|
|
56
|
+
[BossID.FISTULA] = {EntityType.FISTULA_BIG, FistulaVariant.FISTULA},
|
|
57
|
+
[BossID.GISH] = {EntityType.MONSTRO_2, Monstro2Variant.GISH},
|
|
58
|
+
[BossID.STEVEN] = {EntityType.GEMINI, GeminiVariant.STEVEN},
|
|
59
|
+
[BossID.CHAD] = {EntityType.CHUB, ChubVariant.CHAD},
|
|
60
|
+
[BossID.HEADLESS_HORSEMAN] = {EntityType.HEADLESS_HORSEMAN, 0},
|
|
61
|
+
[BossID.FALLEN] = {EntityType.FALLEN, FallenVariant.FALLEN},
|
|
62
|
+
[BossID.SATAN] = {EntityType.SATAN, SatanVariant.SATAN},
|
|
63
|
+
[BossID.IT_LIVES] = {EntityType.MOMS_HEART, MomsHeartVariant.IT_LIVES},
|
|
64
|
+
[BossID.HOLLOW] = {EntityType.LARRY_JR, LarryJrVariant.HOLLOW},
|
|
65
|
+
[BossID.CARRION_QUEEN] = {EntityType.CHUB, ChubVariant.CARRION_QUEEN},
|
|
66
|
+
[BossID.GURDY_JR] = {EntityType.GURDY_JR, 0},
|
|
67
|
+
[BossID.HUSK] = {EntityType.DUKE_OF_FLIES, DukeOfFliesVariant.HUSK},
|
|
68
|
+
[BossID.BLOAT] = {EntityType.PEEP, PeepVariant.BLOAT},
|
|
69
|
+
[BossID.LOKII] = {EntityType.LOKI, LokiVariant.LOKII},
|
|
70
|
+
[BossID.BLIGHTED_OVUM] = {EntityType.GEMINI, GeminiVariant.BLIGHTED_OVUM},
|
|
71
|
+
[BossID.TERATOMA] = {EntityType.FISTULA_BIG, FistulaVariant.TERATOMA},
|
|
72
|
+
[BossID.WIDOW] = {EntityType.WIDOW, WidowVariant.WIDOW},
|
|
73
|
+
[BossID.MASK_OF_INFAMY] = {EntityType.MASK_OF_INFAMY, 0},
|
|
74
|
+
[BossID.WRETCHED] = {EntityType.WIDOW, WidowVariant.WRETCHED},
|
|
75
|
+
[BossID.PIN] = {EntityType.PIN, PinVariant.PIN},
|
|
76
|
+
[BossID.CONQUEST] = {EntityType.WAR, WarVariant.CONQUEST},
|
|
77
|
+
[BossID.ISAAC] = {EntityType.ISAAC, IsaacVariant.ISAAC},
|
|
78
|
+
[BossID.BLUE_BABY] = {EntityType.ISAAC, IsaacVariant.BLUE_BABY},
|
|
79
|
+
[BossID.DADDY_LONG_LEGS] = {EntityType.DADDY_LONG_LEGS, DaddyLongLegsVariant.DADDY_LONG_LEGS},
|
|
80
|
+
[BossID.TRIACHNID] = {EntityType.DADDY_LONG_LEGS, DaddyLongLegsVariant.TRIACHNID},
|
|
81
|
+
[BossID.HAUNT] = {EntityType.HAUNT, HauntVariant.HAUNT},
|
|
82
|
+
[BossID.DINGLE] = {EntityType.DINGLE, DingleVariant.DINGLE},
|
|
83
|
+
[BossID.MEGA_MAW] = {EntityType.MEGA_MAW, 0},
|
|
84
|
+
[BossID.GATE] = {EntityType.GATE, 0},
|
|
85
|
+
[BossID.MEGA_FATTY] = {EntityType.MEGA_FATTY, 0},
|
|
86
|
+
[BossID.CAGE] = {EntityType.CAGE, 0},
|
|
87
|
+
[BossID.MAMA_GURDY] = {EntityType.MAMA_GURDY, MamaGurdyVariant.MAMA_GURDY},
|
|
88
|
+
[BossID.DARK_ONE] = {EntityType.DARK_ONE, 0},
|
|
89
|
+
[BossID.ADVERSARY] = {EntityType.ADVERSARY, 0},
|
|
90
|
+
[BossID.POLYCEPHALUS] = {EntityType.POLYCEPHALUS, PolycephalusVariant.POLYCEPHALUS},
|
|
91
|
+
[BossID.MR_FRED] = {EntityType.MR_FRED, 0},
|
|
92
|
+
[BossID.LAMB] = {EntityType.LAMB, LambVariant.LAMB},
|
|
93
|
+
[BossID.MEGA_SATAN] = {EntityType.MEGA_SATAN, MegaSatanVariant.MEGA_SATAN},
|
|
94
|
+
[BossID.GURGLING] = {EntityType.GURGLING, GurglingVariant.GURGLING_BOSS},
|
|
95
|
+
[BossID.STAIN] = {EntityType.STAIN, 0},
|
|
96
|
+
[BossID.BROWNIE] = {EntityType.BROWNIE, 0},
|
|
97
|
+
[BossID.FORSAKEN] = {EntityType.FORSAKEN, 0},
|
|
98
|
+
[BossID.LITTLE_HORN] = {EntityType.LITTLE_HORN, LittleHornVariant.LITTLE_HORN},
|
|
99
|
+
[BossID.RAG_MAN] = {EntityType.RAG_MAN, RagManVariant.RAG_MAN},
|
|
100
|
+
[BossID.ULTRA_GREED] = {EntityType.ULTRA_GREED, UltraGreedVariant.ULTRA_GREED},
|
|
101
|
+
[BossID.HUSH] = {EntityType.HUSH, 0},
|
|
102
|
+
[BossID.DANGLE] = {EntityType.DINGLE, DingleVariant.DANGLE},
|
|
103
|
+
[BossID.TURDLING] = {EntityType.GURGLING, GurglingVariant.TURDLING},
|
|
104
|
+
[BossID.FRAIL] = {EntityType.PIN, PinVariant.FRAIL},
|
|
105
|
+
[BossID.RAG_MEGA] = {EntityType.RAG_MEGA, RagMegaVariant.RAG_MEGA},
|
|
106
|
+
[BossID.SISTERS_VIS] = {EntityType.SISTERS_VIS, 0},
|
|
107
|
+
[BossID.BIG_HORN] = {EntityType.BIG_HORN, BigHornVariant.BIG_HORN},
|
|
108
|
+
[BossID.DELIRIUM] = {EntityType.DELIRIUM, 0},
|
|
109
|
+
[BossID.MATRIARCH] = {EntityType.MATRIARCH, 0},
|
|
110
|
+
[BossID.PILE] = {EntityType.POLYCEPHALUS, PolycephalusVariant.PILE},
|
|
111
|
+
[BossID.REAP_CREEP] = {EntityType.REAP_CREEP, 0},
|
|
112
|
+
[BossID.LIL_BLUB] = {EntityType.LIL_BLUB, 0},
|
|
113
|
+
[BossID.WORMWOOD] = {EntityType.PIN, PinVariant.WORMWOOD},
|
|
114
|
+
[BossID.RAINMAKER] = {EntityType.RAINMAKER, 0},
|
|
115
|
+
[BossID.VISAGE] = {EntityType.VISAGE, 0},
|
|
116
|
+
[BossID.SIREN] = {EntityType.SIREN, 0},
|
|
117
|
+
[BossID.TUFF_TWINS] = {EntityType.LARRY_JR, LarryJrVariant.TUFF_TWIN},
|
|
118
|
+
[BossID.HERETIC] = {EntityType.HERETIC, 0},
|
|
119
|
+
[BossID.HORNFEL] = {EntityType.HORNFEL, 0},
|
|
120
|
+
[BossID.GREAT_GIDEON] = {EntityType.GREAT_GIDEON, 0},
|
|
121
|
+
[BossID.BABY_PLUM] = {EntityType.BABY_PLUM, 0},
|
|
122
|
+
[BossID.SCOURGE] = {EntityType.SCOURGE, 0},
|
|
123
|
+
[BossID.CHIMERA] = {EntityType.CHIMERA, 0},
|
|
124
|
+
[BossID.ROTGUT] = {EntityType.ROTGUT, 0},
|
|
125
|
+
[BossID.MOTHER] = {EntityType.MOTHER, MotherVariant.MOTHER_1},
|
|
126
|
+
[BossID.MAUSOLEUM_MOM] = {EntityType.MOM, MomVariant.MOM},
|
|
127
|
+
[BossID.MAUSOLEUM_MOMS_HEART] = {EntityType.MOMS_HEART, MomsHeartVariant.MOMS_HEART},
|
|
128
|
+
[BossID.MIN_MIN] = {EntityType.MIN_MIN, 0},
|
|
129
|
+
[BossID.CLOG] = {EntityType.CLOG, 0},
|
|
130
|
+
[BossID.SINGE] = {EntityType.SINGE, 0},
|
|
131
|
+
[BossID.BUMBINO] = {EntityType.BUMBINO, 0},
|
|
132
|
+
[BossID.COLOSTOMIA] = {EntityType.COLOSTOMIA, 0},
|
|
133
|
+
[BossID.SHELL] = {EntityType.LARRY_JR, LarryJrVariant.SHELL},
|
|
134
|
+
[BossID.TURDLET] = {EntityType.TURDLET, 0},
|
|
135
|
+
[BossID.RAGLICH] = {EntityType.RAGLICH, RaglichVariant.RAGLICH},
|
|
136
|
+
[BossID.DOGMA] = {EntityType.DOGMA, DogmaVariant.DOGMA_PHASE_1},
|
|
137
|
+
[BossID.BEAST] = {EntityType.BEAST, BeastVariant.BEAST},
|
|
138
|
+
[BossID.HORNY_BOYS] = {EntityType.HORNY_BOYS, 0},
|
|
139
|
+
[BossID.CLUTCH] = {EntityType.CLUTCH, 0}
|
|
140
|
+
}
|
|
141
|
+
return ____exports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bossSets.d.ts","sourceRoot":"","sources":["../../../src/sets/bossSets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAa,MAAM,8BAA8B,CAAC;AAod7E,eAAO,MAAM,mCAAmC,gEAiB9C,CAAC;AAEH,eAAO,MAAM,8BAA8B,8CAiBzC,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,MAAM,CAU9C,CAAC;
|
|
1
|
+
{"version":3,"file":"bossSets.d.ts","sourceRoot":"","sources":["../../../src/sets/bossSets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAa,MAAM,8BAA8B,CAAC;AAod7E,eAAO,MAAM,mCAAmC,gEAiB9C,CAAC;AAEH,eAAO,MAAM,8BAA8B,8CAiBzC,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,MAAM,CAU9C,CAAC;AAyBF,eAAO,MAAM,qCAAqC,EAAE,WAAW,CAAC,MAAM,CAMhE,CAAC"}
|
|
@@ -386,11 +386,13 @@ local STORY_BOSS_IDS_SET = __TS__New(ReadonlySet, {
|
|
|
386
386
|
BossID.HUSH,
|
|
387
387
|
BossID.DELIRIUM,
|
|
388
388
|
BossID.MOTHER,
|
|
389
|
+
BossID.MAUSOLEUM_MOM,
|
|
390
|
+
BossID.MAUSOLEUM_MOMS_HEART,
|
|
389
391
|
BossID.DOGMA,
|
|
390
392
|
BossID.BEAST
|
|
391
393
|
})
|
|
392
|
-
if STORY_BOSS_IDS_SET.size + 1 ~= STORY_BOSSES_SET.size then
|
|
393
|
-
error("The
|
|
394
|
+
if STORY_BOSS_IDS_SET.size + 1 - 2 ~= STORY_BOSSES_SET.size then
|
|
395
|
+
error("The \"STORY_BOSS_IDS_SET\" and the \"STORY_BOSSES_SET\" do not match.")
|
|
394
396
|
end
|
|
395
397
|
____exports.ALL_BOSSES_EXCLUDING_STORY_BOSSES_SET = (function()
|
|
396
398
|
local allBossesSet = copySet(nil, ____exports.ALL_BOSSES_SET)
|
package/package.json
CHANGED
package/src/functions/bosses.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
} from "isaac-typescript-definitions";
|
|
6
6
|
import { EntityType, LokiVariant } from "isaac-typescript-definitions";
|
|
7
7
|
import { VectorZero } from "../core/constants";
|
|
8
|
+
import { BOSS_ID_TO_ENTITY_TYPE_VARIANT } from "../objects/bossIDToEntityTypeVariant";
|
|
8
9
|
import {
|
|
9
10
|
ALL_BOSSES_EXCLUDING_STORY_BOSSES_SET,
|
|
10
11
|
ALL_BOSSES_SET,
|
|
@@ -29,6 +30,21 @@ const BOSSES_THAT_REQUIRE_MULTIPLE_SPAWNS = new ReadonlySet<EntityType>([
|
|
|
29
30
|
|
|
30
31
|
const DEFAULT_BOSS_MULTI_SEGMENTS = 4;
|
|
31
32
|
|
|
33
|
+
const ENTITY_TYPE_VARIANT_TO_BOSS_ID: ReadonlyMap<string, BossID> = (() => {
|
|
34
|
+
const entityTypeVariantToBossID = new Map<string, BossID>();
|
|
35
|
+
|
|
36
|
+
for (const [bossIDRaw, entityTypeVariant] of Object.entries(
|
|
37
|
+
BOSS_ID_TO_ENTITY_TYPE_VARIANT,
|
|
38
|
+
)) {
|
|
39
|
+
const bossID = bossIDRaw as unknown as BossID;
|
|
40
|
+
const [entityType, variant] = entityTypeVariant;
|
|
41
|
+
const entityTypeVariantString = `${entityType}.${variant}`;
|
|
42
|
+
entityTypeVariantToBossID.set(entityTypeVariantString, bossID);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return entityTypeVariantToBossID;
|
|
46
|
+
})();
|
|
47
|
+
|
|
32
48
|
/**
|
|
33
49
|
* Helper function to get all of the non-dead bosses in the room.
|
|
34
50
|
*
|
|
@@ -75,6 +91,14 @@ export function getAllBossesSet(
|
|
|
75
91
|
: ALL_BOSSES_EXCLUDING_STORY_BOSSES_SET;
|
|
76
92
|
}
|
|
77
93
|
|
|
94
|
+
export function getBossIDFromEntityTypeVariant(
|
|
95
|
+
entityType: EntityType,
|
|
96
|
+
variant: int,
|
|
97
|
+
): BossID | undefined {
|
|
98
|
+
const entityTypeVariant = `${entityType}.${variant}`;
|
|
99
|
+
return ENTITY_TYPE_VARIANT_TO_BOSS_ID.get(entityTypeVariant);
|
|
100
|
+
}
|
|
101
|
+
|
|
78
102
|
/**
|
|
79
103
|
* Helper function to get the set of vanilla bosses for a particular stage and stage type
|
|
80
104
|
* combination.
|
|
@@ -127,11 +151,50 @@ export function getCombinedBossSet(
|
|
|
127
151
|
return STAGE_TO_COMBINED_BOSS_SET_MAP.get(stage);
|
|
128
152
|
}
|
|
129
153
|
|
|
154
|
+
export function getEntityTypeVariantFromBossID(
|
|
155
|
+
bossID: BossID,
|
|
156
|
+
): readonly [EntityType, int] {
|
|
157
|
+
return BOSS_ID_TO_ENTITY_TYPE_VARIANT[bossID];
|
|
158
|
+
}
|
|
159
|
+
|
|
130
160
|
/** Helper function to check if the provided NPC is a Sin miniboss, such as Sloth or Lust. */
|
|
131
161
|
export function isSin(npc: EntityNPC): boolean {
|
|
132
162
|
return SIN_ENTITY_TYPES_SET.has(npc.Type);
|
|
133
163
|
}
|
|
134
164
|
|
|
165
|
+
function getNumBossSegments(
|
|
166
|
+
entityType: EntityType,
|
|
167
|
+
variant: int,
|
|
168
|
+
numSegments: int | undefined,
|
|
169
|
+
) {
|
|
170
|
+
if (numSegments !== undefined) {
|
|
171
|
+
return numSegments;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
switch (entityType) {
|
|
175
|
+
// 28
|
|
176
|
+
case EntityType.CHUB: {
|
|
177
|
+
// Chub is always composed of 3 segments.
|
|
178
|
+
return 3;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// 69
|
|
182
|
+
case EntityType.LOKI: {
|
|
183
|
+
return variant === asNumber(LokiVariant.LOKII) ? 2 : 1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// 237
|
|
187
|
+
case EntityType.GURGLING: {
|
|
188
|
+
// Gurglings & Turdlings are always encountered in groups of 2.
|
|
189
|
+
return 2;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
default: {
|
|
193
|
+
return DEFAULT_BOSS_MULTI_SEGMENTS;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
135
198
|
/**
|
|
136
199
|
* Helper function to spawn a boss.
|
|
137
200
|
*
|
|
@@ -186,39 +249,6 @@ export function spawnBoss(
|
|
|
186
249
|
return npc;
|
|
187
250
|
}
|
|
188
251
|
|
|
189
|
-
function getNumBossSegments(
|
|
190
|
-
entityType: EntityType,
|
|
191
|
-
variant: int,
|
|
192
|
-
numSegments: int | undefined,
|
|
193
|
-
) {
|
|
194
|
-
if (numSegments !== undefined) {
|
|
195
|
-
return numSegments;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
switch (entityType) {
|
|
199
|
-
// 28
|
|
200
|
-
case EntityType.CHUB: {
|
|
201
|
-
// Chub is always composed of 3 segments.
|
|
202
|
-
return 3;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
// 69
|
|
206
|
-
case EntityType.LOKI: {
|
|
207
|
-
return variant === asNumber(LokiVariant.LOKII) ? 2 : 1;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// 237
|
|
211
|
-
case EntityType.GURGLING: {
|
|
212
|
-
// Gurglings & Turdlings are always encountered in groups of 2.
|
|
213
|
-
return 2;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
default: {
|
|
217
|
-
return DEFAULT_BOSS_MULTI_SEGMENTS;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
252
|
/**
|
|
223
253
|
* Helper function to spawn a boss with a specific seed.
|
|
224
254
|
*
|
package/src/index.ts
CHANGED
|
@@ -130,6 +130,7 @@ export * from "./functions/types";
|
|
|
130
130
|
export * from "./functions/ui";
|
|
131
131
|
export * from "./functions/utils";
|
|
132
132
|
export * from "./functions/vector";
|
|
133
|
+
export * from "./functions/versusScreen";
|
|
133
134
|
export * from "./functions/weighted";
|
|
134
135
|
export * from "./interfaces/ChargeBarSprites";
|
|
135
136
|
export * from "./interfaces/Corner";
|