isaacscript-common 55.2.0 → 56.1.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 +26 -17
- package/dist/isaacscript-common.lua +336 -214
- package/dist/src/core/constants.d.ts +2 -2
- package/dist/src/core/constants.lua +2 -2
- package/dist/src/functions/bosses.d.ts +5 -0
- package/dist/src/functions/bosses.d.ts.map +1 -1
- package/dist/src/functions/bosses.lua +15 -7
- package/dist/src/functions/cards.d.ts +18 -15
- package/dist/src/functions/cards.d.ts.map +1 -1
- package/dist/src/functions/cards.lua +18 -15
- package/dist/src/objects/bossIDToEntityTypeVariant.d.ts +1 -0
- package/dist/src/objects/bossIDToEntityTypeVariant.d.ts.map +1 -1
- package/dist/src/objects/bossIDToEntityTypeVariant.lua +1 -0
- package/dist/src/objects/bossNamePNGFileNames.d.ts +106 -102
- package/dist/src/objects/bossNamePNGFileNames.d.ts.map +1 -1
- package/dist/src/objects/bossNamePNGFileNames.lua +104 -102
- package/dist/src/objects/bossNames.d.ts +111 -0
- package/dist/src/objects/bossNames.d.ts.map +1 -0
- package/dist/src/objects/bossNames.lua +112 -0
- package/dist/src/objects/bossPortraitPNGFileNames.d.ts +106 -102
- package/dist/src/objects/bossPortraitPNGFileNames.d.ts.map +1 -1
- package/dist/src/objects/bossPortraitPNGFileNames.lua +104 -102
- package/package.json +2 -2
- package/src/core/constants.ts +2 -2
- package/src/functions/bosses.ts +11 -0
- package/src/functions/cards.ts +18 -15
- package/src/functions/collectibles.ts +1 -1
- package/src/objects/bossIDToEntityTypeVariant.ts +5 -1
- package/src/objects/bossNamePNGFileNames.ts +112 -106
- package/src/objects/bossNames.ts +118 -0
- package/src/objects/bossPortraitPNGFileNames.ts +115 -109
- package/src/sets/itemConfigCardTypesForCardsSet.ts +4 -4
|
@@ -1,105 +1,109 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* From the "portrait" attribute in the "bossportraits.xml" file. Used when rendering the
|
|
3
|
+
* "versusscreen.anm2" sprite.
|
|
4
|
+
*/
|
|
2
5
|
export declare const BOSS_PORTRAIT_PNG_FILE_NAMES: {
|
|
3
|
-
readonly 1: "
|
|
4
|
-
readonly 2: "
|
|
5
|
-
readonly 3: "
|
|
6
|
-
readonly 4: "
|
|
7
|
-
readonly 5: "
|
|
8
|
-
readonly 6: "
|
|
9
|
-
readonly 7: "
|
|
10
|
-
readonly 8: "
|
|
11
|
-
readonly 9: "
|
|
12
|
-
readonly 10: "
|
|
13
|
-
readonly 11: "
|
|
14
|
-
readonly 12: "
|
|
15
|
-
readonly 13: "
|
|
16
|
-
readonly 14: "
|
|
17
|
-
readonly 15: "
|
|
18
|
-
readonly 16: "
|
|
19
|
-
readonly 17: "
|
|
20
|
-
readonly 18: "
|
|
21
|
-
readonly 19: "
|
|
22
|
-
readonly 20: "
|
|
23
|
-
readonly 21: "
|
|
24
|
-
readonly 22: "
|
|
25
|
-
readonly 23: "
|
|
26
|
-
readonly 24: "
|
|
27
|
-
readonly 25: "
|
|
28
|
-
readonly 26: "
|
|
29
|
-
readonly 27: "
|
|
30
|
-
readonly 28: "
|
|
31
|
-
readonly 29: "
|
|
32
|
-
readonly 30: "
|
|
33
|
-
readonly 31: "
|
|
34
|
-
readonly 32: "
|
|
35
|
-
readonly 33: "
|
|
36
|
-
readonly 34: "
|
|
37
|
-
readonly 35: "
|
|
38
|
-
readonly 36: "
|
|
39
|
-
readonly 37: "
|
|
40
|
-
readonly 38: "
|
|
41
|
-
readonly 39: "
|
|
42
|
-
readonly 40: "
|
|
43
|
-
readonly 41: "
|
|
44
|
-
readonly 42: "
|
|
45
|
-
readonly 43: "
|
|
46
|
-
readonly 44: "
|
|
47
|
-
readonly 45: "
|
|
48
|
-
readonly 46: "
|
|
49
|
-
readonly 47: "
|
|
50
|
-
readonly 48: "
|
|
51
|
-
readonly 49: "
|
|
52
|
-
readonly 50: "
|
|
53
|
-
readonly 51: "
|
|
54
|
-
readonly 52: "
|
|
55
|
-
readonly 53: "
|
|
56
|
-
readonly 54: "
|
|
57
|
-
readonly 55: "
|
|
58
|
-
readonly 56: "
|
|
59
|
-
readonly 57: "
|
|
60
|
-
readonly 58: "
|
|
61
|
-
readonly 59: "
|
|
62
|
-
readonly 60: "
|
|
63
|
-
readonly 61: "
|
|
64
|
-
readonly 62: "
|
|
65
|
-
readonly 63: "
|
|
66
|
-
readonly 64: "
|
|
67
|
-
readonly 65: "
|
|
68
|
-
readonly 66: "
|
|
69
|
-
readonly 67: "
|
|
70
|
-
readonly 68: "
|
|
71
|
-
readonly 69: "
|
|
72
|
-
readonly 70: "
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
84
|
-
readonly
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
6
|
+
readonly 1: "Portrait_20.0_Monstro.png";
|
|
7
|
+
readonly 2: "Portrait_19.0_LarryJr.png";
|
|
8
|
+
readonly 3: "Portrait_28.0_Chub.png";
|
|
9
|
+
readonly 4: "Portrait_36.0_Gurdy.png";
|
|
10
|
+
readonly 5: "Portrait_43.0_Monstro2.png";
|
|
11
|
+
readonly 6: "Portrait_45.0_Mom.png";
|
|
12
|
+
readonly 7: "Portrait_62.1_Scolex.png";
|
|
13
|
+
readonly 8: "Portrait_78.0_MomsHeart.png";
|
|
14
|
+
readonly 9: "Portrait_63.0_Famine.png";
|
|
15
|
+
readonly 10: "Portrait_64.0_Pestilence.png";
|
|
16
|
+
readonly 11: "Portrait_65.0_War.png";
|
|
17
|
+
readonly 12: "Portrait_66.0_Death.png";
|
|
18
|
+
readonly 13: "Portrait_67.0_DukeOfFlies.png";
|
|
19
|
+
readonly 14: "Portrait_68.0_Peep.png";
|
|
20
|
+
readonly 15: "Portrait_69.0_Loki.png";
|
|
21
|
+
readonly 16: "Portrait_74.0_Blastocyst.png";
|
|
22
|
+
readonly 17: "Portrait_79.0_Gemini.png";
|
|
23
|
+
readonly 18: "Portrait_71.0_Fistula.png";
|
|
24
|
+
readonly 19: "Portrait_43.1_Gish.png";
|
|
25
|
+
readonly 20: "Portrait_79.1_Steven.png";
|
|
26
|
+
readonly 21: "Portrait_28.1_CHAD.png";
|
|
27
|
+
readonly 22: "Portrait_82.0_HeadlessHorseman.png";
|
|
28
|
+
readonly 23: "Portrait_81.0_TheFallen.png";
|
|
29
|
+
readonly 24: "Portrait_84.0_Satan.png";
|
|
30
|
+
readonly 25: "Portrait_78.1_ItLives.png";
|
|
31
|
+
readonly 26: "Portrait_19.1_TheHollow.png";
|
|
32
|
+
readonly 27: "Portrait_28.2_CarrionQueen.png";
|
|
33
|
+
readonly 28: "Portrait_99.0_GurdyJr.png";
|
|
34
|
+
readonly 29: "Portrait_67.1_TheHusk.png";
|
|
35
|
+
readonly 30: "Portrait_68.1_Bloat.png";
|
|
36
|
+
readonly 31: "Portrait_69.1_Lokii.png";
|
|
37
|
+
readonly 32: "Portrait_79.2_BlightedOvum.png";
|
|
38
|
+
readonly 33: "Portrait_71.1_Teratoma.png";
|
|
39
|
+
readonly 34: "Portrait_100.0_Widow.png";
|
|
40
|
+
readonly 35: "Portrait_97.0_MaskOfInfamy.png";
|
|
41
|
+
readonly 36: "Portrait_100.1_TheWretched.png";
|
|
42
|
+
readonly 37: "Portrait_62.0_Pin.png";
|
|
43
|
+
readonly 38: "Portrait_65.1_Conquest.png";
|
|
44
|
+
readonly 39: "Portrait_102.0_Isaac.png";
|
|
45
|
+
readonly 40: "Portrait_102.1_BlueBaby.png";
|
|
46
|
+
readonly 41: "Portrait_101.0_DaddyLongLegs.png";
|
|
47
|
+
readonly 42: "Portrait_101.1_Triachnid.png";
|
|
48
|
+
readonly 43: "Portrait_260.0_TheHaunt.png";
|
|
49
|
+
readonly 44: "Portrait_261.0_Dingle.png";
|
|
50
|
+
readonly 45: "Portrait_262.0_MegaMaw.png";
|
|
51
|
+
readonly 46: "Portrait_263.0_MegaMaw2.png";
|
|
52
|
+
readonly 47: "Portrait_264.0_MegaFatty.png";
|
|
53
|
+
readonly 48: "Portrait_265.0_Fatty2.png";
|
|
54
|
+
readonly 49: "Portrait_266.0_MamaGurdy.png";
|
|
55
|
+
readonly 50: "Portrait_267.0_DarkOne.png";
|
|
56
|
+
readonly 51: "Portrait_268.0_DarkOne2.png";
|
|
57
|
+
readonly 52: "Portrait_269.0_Polycephalus.png";
|
|
58
|
+
readonly 53: "Portrait_270.0_MegaFred.png";
|
|
59
|
+
readonly 54: "Portrait_273.0_TheLamb.png";
|
|
60
|
+
readonly 55: "Portrait_274.0_MegaSatan.png";
|
|
61
|
+
readonly 56: "Portrait_276.0_Gurglings.png";
|
|
62
|
+
readonly 57: "Portrait_401.0_TheStain.png";
|
|
63
|
+
readonly 58: "Portrait_402.0_Brownie.png";
|
|
64
|
+
readonly 59: "Portrait_403.0_TheForsaken.png";
|
|
65
|
+
readonly 60: "Portrait_404.0_LittleHorn.png";
|
|
66
|
+
readonly 61: "Portrait_405.0_Ragman.png";
|
|
67
|
+
readonly 62: "Portrait_406.0_UltraGreed.png";
|
|
68
|
+
readonly 63: "Portrait_407.0_Hush.png";
|
|
69
|
+
readonly 64: "Portrait_Dangle.png";
|
|
70
|
+
readonly 65: "Portrait_Turdlings.png";
|
|
71
|
+
readonly 66: "Portrait_TheFrail.png";
|
|
72
|
+
readonly 67: "Portrait_RagMega.png";
|
|
73
|
+
readonly 68: "Portrait_SistersVis.png";
|
|
74
|
+
readonly 69: "Portrait_BigHorn.png";
|
|
75
|
+
readonly 70: "Portrait_Delirium.png";
|
|
76
|
+
readonly 71: "Portrait_406.0_UltraGreed.png";
|
|
77
|
+
readonly 72: "Portrait_Matriarch.png";
|
|
78
|
+
readonly 73: "Portrait_269.1_Polycephalus2.png";
|
|
79
|
+
readonly 74: "Portrait_900.0_ReapCreep.png";
|
|
80
|
+
readonly 75: "Portrait_901.0_Beelzeblub.png";
|
|
81
|
+
readonly 76: "Portrait_902.0_Wormwood.png";
|
|
82
|
+
readonly 77: "Portrait_902.0_Rainmaker.png";
|
|
83
|
+
readonly 78: "Portrait_903.0_Visage.png";
|
|
84
|
+
readonly 79: "Portrait_904.0_Siren.png";
|
|
85
|
+
readonly 80: "Portrait_19.100_TuffTwins.png";
|
|
86
|
+
readonly 81: "Portrait_905.0_Heretic.png";
|
|
87
|
+
readonly 82: "Portrait_906.0_Hornfel.png";
|
|
88
|
+
readonly 83: "Portrait_907.0_Gideon.png";
|
|
89
|
+
readonly 84: "Portrait_908.0_BabyPlum.png";
|
|
90
|
+
readonly 85: "Portrait_909.0_Scourge.png";
|
|
91
|
+
readonly 86: "Portrait_910.0_Chimera.png";
|
|
92
|
+
readonly 87: "Portrait_911.0_Rotgut.png";
|
|
93
|
+
readonly 88: "Portrait_Mother.png";
|
|
94
|
+
readonly 89: "Portrait_45.0_Mom.png";
|
|
95
|
+
readonly 90: "Portrait_78.0_MomsHeart.png";
|
|
96
|
+
readonly 91: "Portrait_MinMin.png";
|
|
97
|
+
readonly 92: "Portrait_Clog.png";
|
|
98
|
+
readonly 93: "Portrait_Singe.png";
|
|
99
|
+
readonly 94: "Portrait_Bumbino.png";
|
|
100
|
+
readonly 95: "Portrait_Colostomia.png";
|
|
101
|
+
readonly 96: "Portrait_Shell.png";
|
|
102
|
+
readonly 97: "Portrait_Turdlet.png";
|
|
103
|
+
readonly 98: "Portrait_Raglich.png";
|
|
104
|
+
readonly 99: "Portrait_Dogma.png";
|
|
105
|
+
readonly 100: "Portrait_The Beast.png";
|
|
106
|
+
readonly 101: "Portrait_HornyBoys.png";
|
|
107
|
+
readonly 102: "Portrait_Clutch.png";
|
|
104
108
|
};
|
|
105
109
|
//# sourceMappingURL=bossPortraitPNGFileNames.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bossPortraitPNGFileNames.d.ts","sourceRoot":"","sources":["../../../src/objects/bossPortraitPNGFileNames.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"bossPortraitPNGFileNames.d.ts","sourceRoot":"","sources":["../../../src/objects/bossPortraitPNGFileNames.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiHE,CAAC"}
|
|
@@ -1,108 +1,110 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
|
|
4
|
-
---
|
|
4
|
+
--- From the "portrait" attribute in the "bossportraits.xml" file. Used when rendering the
|
|
5
|
+
-- "versusscreen.anm2" sprite.
|
|
5
6
|
____exports.BOSS_PORTRAIT_PNG_FILE_NAMES = {
|
|
6
|
-
[BossID.MONSTRO] = "
|
|
7
|
-
[BossID.LARRY_JR] = "
|
|
8
|
-
[BossID.CHUB] = "
|
|
9
|
-
[BossID.GURDY] = "
|
|
10
|
-
[BossID.MONSTRO_2] = "
|
|
11
|
-
[BossID.MOM] = "
|
|
12
|
-
[BossID.SCOLEX] = "
|
|
13
|
-
[BossID.MOMS_HEART] = "
|
|
14
|
-
[BossID.FAMINE] = "
|
|
15
|
-
[BossID.PESTILENCE] = "
|
|
16
|
-
[BossID.WAR] = "
|
|
17
|
-
[BossID.DEATH] = "
|
|
18
|
-
[BossID.DUKE_OF_FLIES] = "
|
|
19
|
-
[BossID.PEEP] = "
|
|
20
|
-
[BossID.LOKI] = "
|
|
21
|
-
[BossID.BLASTOCYST] = "
|
|
22
|
-
[BossID.GEMINI] = "
|
|
23
|
-
[BossID.FISTULA] = "
|
|
24
|
-
[BossID.GISH] = "
|
|
25
|
-
[BossID.STEVEN] = "
|
|
26
|
-
[BossID.CHAD] = "
|
|
27
|
-
[BossID.HEADLESS_HORSEMAN] = "
|
|
28
|
-
[BossID.FALLEN] = "
|
|
29
|
-
[BossID.SATAN] = "
|
|
30
|
-
[BossID.IT_LIVES] = "
|
|
31
|
-
[BossID.HOLLOW] = "
|
|
32
|
-
[BossID.CARRION_QUEEN] = "
|
|
33
|
-
[BossID.GURDY_JR] = "
|
|
34
|
-
[BossID.HUSK] = "
|
|
35
|
-
[BossID.BLOAT] = "
|
|
36
|
-
[BossID.LOKII] = "
|
|
37
|
-
[BossID.BLIGHTED_OVUM] = "
|
|
38
|
-
[BossID.TERATOMA] = "
|
|
39
|
-
[BossID.WIDOW] = "
|
|
40
|
-
[BossID.MASK_OF_INFAMY] = "
|
|
41
|
-
[BossID.WRETCHED] = "
|
|
42
|
-
[BossID.PIN] = "
|
|
43
|
-
[BossID.CONQUEST] = "
|
|
44
|
-
[BossID.ISAAC] = "
|
|
45
|
-
[BossID.BLUE_BABY] = "
|
|
46
|
-
[BossID.DADDY_LONG_LEGS] = "
|
|
47
|
-
[BossID.TRIACHNID] = "
|
|
48
|
-
[BossID.HAUNT] = "
|
|
49
|
-
[BossID.DINGLE] = "
|
|
50
|
-
[BossID.MEGA_MAW] = "
|
|
51
|
-
[BossID.GATE] = "
|
|
52
|
-
[BossID.MEGA_FATTY] = "
|
|
53
|
-
[BossID.CAGE] = "
|
|
54
|
-
[BossID.MAMA_GURDY] = "
|
|
55
|
-
[BossID.DARK_ONE] = "
|
|
56
|
-
[BossID.ADVERSARY] = "
|
|
57
|
-
[BossID.POLYCEPHALUS] = "
|
|
58
|
-
[BossID.MR_FRED] = "
|
|
59
|
-
[BossID.LAMB] = "
|
|
60
|
-
[BossID.MEGA_SATAN] = "
|
|
61
|
-
[BossID.GURGLING] = "
|
|
62
|
-
[BossID.STAIN] = "
|
|
63
|
-
[BossID.BROWNIE] = "
|
|
64
|
-
[BossID.FORSAKEN] = "
|
|
65
|
-
[BossID.LITTLE_HORN] = "
|
|
66
|
-
[BossID.RAG_MAN] = "
|
|
67
|
-
[BossID.ULTRA_GREED] = "
|
|
68
|
-
[BossID.HUSH] = "
|
|
69
|
-
[BossID.DANGLE] = "
|
|
70
|
-
[BossID.TURDLING] = "
|
|
71
|
-
[BossID.FRAIL] = "
|
|
72
|
-
[BossID.RAG_MEGA] = "
|
|
73
|
-
[BossID.SISTERS_VIS] = "
|
|
74
|
-
[BossID.BIG_HORN] = "
|
|
75
|
-
[BossID.DELIRIUM] = "
|
|
76
|
-
[BossID.
|
|
77
|
-
[BossID.
|
|
78
|
-
[BossID.
|
|
79
|
-
[BossID.
|
|
80
|
-
[BossID.
|
|
81
|
-
[BossID.
|
|
82
|
-
[BossID.
|
|
83
|
-
[BossID.
|
|
84
|
-
[BossID.
|
|
85
|
-
[BossID.
|
|
86
|
-
[BossID.
|
|
87
|
-
[BossID.
|
|
88
|
-
[BossID.
|
|
89
|
-
[BossID.
|
|
90
|
-
[BossID.
|
|
91
|
-
[BossID.
|
|
92
|
-
[BossID.
|
|
93
|
-
[BossID.
|
|
94
|
-
[BossID.
|
|
95
|
-
[BossID.
|
|
96
|
-
[BossID.
|
|
97
|
-
[BossID.
|
|
98
|
-
[BossID.
|
|
99
|
-
[BossID.
|
|
100
|
-
[BossID.
|
|
101
|
-
[BossID.
|
|
102
|
-
[BossID.
|
|
103
|
-
[BossID.
|
|
104
|
-
[BossID.
|
|
105
|
-
[BossID.
|
|
106
|
-
[BossID.
|
|
7
|
+
[BossID.MONSTRO] = "Portrait_20.0_Monstro.png",
|
|
8
|
+
[BossID.LARRY_JR] = "Portrait_19.0_LarryJr.png",
|
|
9
|
+
[BossID.CHUB] = "Portrait_28.0_Chub.png",
|
|
10
|
+
[BossID.GURDY] = "Portrait_36.0_Gurdy.png",
|
|
11
|
+
[BossID.MONSTRO_2] = "Portrait_43.0_Monstro2.png",
|
|
12
|
+
[BossID.MOM] = "Portrait_45.0_Mom.png",
|
|
13
|
+
[BossID.SCOLEX] = "Portrait_62.1_Scolex.png",
|
|
14
|
+
[BossID.MOMS_HEART] = "Portrait_78.0_MomsHeart.png",
|
|
15
|
+
[BossID.FAMINE] = "Portrait_63.0_Famine.png",
|
|
16
|
+
[BossID.PESTILENCE] = "Portrait_64.0_Pestilence.png",
|
|
17
|
+
[BossID.WAR] = "Portrait_65.0_War.png",
|
|
18
|
+
[BossID.DEATH] = "Portrait_66.0_Death.png",
|
|
19
|
+
[BossID.DUKE_OF_FLIES] = "Portrait_67.0_DukeOfFlies.png",
|
|
20
|
+
[BossID.PEEP] = "Portrait_68.0_Peep.png",
|
|
21
|
+
[BossID.LOKI] = "Portrait_69.0_Loki.png",
|
|
22
|
+
[BossID.BLASTOCYST] = "Portrait_74.0_Blastocyst.png",
|
|
23
|
+
[BossID.GEMINI] = "Portrait_79.0_Gemini.png",
|
|
24
|
+
[BossID.FISTULA] = "Portrait_71.0_Fistula.png",
|
|
25
|
+
[BossID.GISH] = "Portrait_43.1_Gish.png",
|
|
26
|
+
[BossID.STEVEN] = "Portrait_79.1_Steven.png",
|
|
27
|
+
[BossID.CHAD] = "Portrait_28.1_CHAD.png",
|
|
28
|
+
[BossID.HEADLESS_HORSEMAN] = "Portrait_82.0_HeadlessHorseman.png",
|
|
29
|
+
[BossID.FALLEN] = "Portrait_81.0_TheFallen.png",
|
|
30
|
+
[BossID.SATAN] = "Portrait_84.0_Satan.png",
|
|
31
|
+
[BossID.IT_LIVES] = "Portrait_78.1_ItLives.png",
|
|
32
|
+
[BossID.HOLLOW] = "Portrait_19.1_TheHollow.png",
|
|
33
|
+
[BossID.CARRION_QUEEN] = "Portrait_28.2_CarrionQueen.png",
|
|
34
|
+
[BossID.GURDY_JR] = "Portrait_99.0_GurdyJr.png",
|
|
35
|
+
[BossID.HUSK] = "Portrait_67.1_TheHusk.png",
|
|
36
|
+
[BossID.BLOAT] = "Portrait_68.1_Bloat.png",
|
|
37
|
+
[BossID.LOKII] = "Portrait_69.1_Lokii.png",
|
|
38
|
+
[BossID.BLIGHTED_OVUM] = "Portrait_79.2_BlightedOvum.png",
|
|
39
|
+
[BossID.TERATOMA] = "Portrait_71.1_Teratoma.png",
|
|
40
|
+
[BossID.WIDOW] = "Portrait_100.0_Widow.png",
|
|
41
|
+
[BossID.MASK_OF_INFAMY] = "Portrait_97.0_MaskOfInfamy.png",
|
|
42
|
+
[BossID.WRETCHED] = "Portrait_100.1_TheWretched.png",
|
|
43
|
+
[BossID.PIN] = "Portrait_62.0_Pin.png",
|
|
44
|
+
[BossID.CONQUEST] = "Portrait_65.1_Conquest.png",
|
|
45
|
+
[BossID.ISAAC] = "Portrait_102.0_Isaac.png",
|
|
46
|
+
[BossID.BLUE_BABY] = "Portrait_102.1_BlueBaby.png",
|
|
47
|
+
[BossID.DADDY_LONG_LEGS] = "Portrait_101.0_DaddyLongLegs.png",
|
|
48
|
+
[BossID.TRIACHNID] = "Portrait_101.1_Triachnid.png",
|
|
49
|
+
[BossID.HAUNT] = "Portrait_260.0_TheHaunt.png",
|
|
50
|
+
[BossID.DINGLE] = "Portrait_261.0_Dingle.png",
|
|
51
|
+
[BossID.MEGA_MAW] = "Portrait_262.0_MegaMaw.png",
|
|
52
|
+
[BossID.GATE] = "Portrait_263.0_MegaMaw2.png",
|
|
53
|
+
[BossID.MEGA_FATTY] = "Portrait_264.0_MegaFatty.png",
|
|
54
|
+
[BossID.CAGE] = "Portrait_265.0_Fatty2.png",
|
|
55
|
+
[BossID.MAMA_GURDY] = "Portrait_266.0_MamaGurdy.png",
|
|
56
|
+
[BossID.DARK_ONE] = "Portrait_267.0_DarkOne.png",
|
|
57
|
+
[BossID.ADVERSARY] = "Portrait_268.0_DarkOne2.png",
|
|
58
|
+
[BossID.POLYCEPHALUS] = "Portrait_269.0_Polycephalus.png",
|
|
59
|
+
[BossID.MR_FRED] = "Portrait_270.0_MegaFred.png",
|
|
60
|
+
[BossID.LAMB] = "Portrait_273.0_TheLamb.png",
|
|
61
|
+
[BossID.MEGA_SATAN] = "Portrait_274.0_MegaSatan.png",
|
|
62
|
+
[BossID.GURGLING] = "Portrait_276.0_Gurglings.png",
|
|
63
|
+
[BossID.STAIN] = "Portrait_401.0_TheStain.png",
|
|
64
|
+
[BossID.BROWNIE] = "Portrait_402.0_Brownie.png",
|
|
65
|
+
[BossID.FORSAKEN] = "Portrait_403.0_TheForsaken.png",
|
|
66
|
+
[BossID.LITTLE_HORN] = "Portrait_404.0_LittleHorn.png",
|
|
67
|
+
[BossID.RAG_MAN] = "Portrait_405.0_Ragman.png",
|
|
68
|
+
[BossID.ULTRA_GREED] = "Portrait_406.0_UltraGreed.png",
|
|
69
|
+
[BossID.HUSH] = "Portrait_407.0_Hush.png",
|
|
70
|
+
[BossID.DANGLE] = "Portrait_Dangle.png",
|
|
71
|
+
[BossID.TURDLING] = "Portrait_Turdlings.png",
|
|
72
|
+
[BossID.FRAIL] = "Portrait_TheFrail.png",
|
|
73
|
+
[BossID.RAG_MEGA] = "Portrait_RagMega.png",
|
|
74
|
+
[BossID.SISTERS_VIS] = "Portrait_SistersVis.png",
|
|
75
|
+
[BossID.BIG_HORN] = "Portrait_BigHorn.png",
|
|
76
|
+
[BossID.DELIRIUM] = "Portrait_Delirium.png",
|
|
77
|
+
[BossID.ULTRA_GREEDIER] = "Portrait_406.0_UltraGreed.png",
|
|
78
|
+
[BossID.MATRIARCH] = "Portrait_Matriarch.png",
|
|
79
|
+
[BossID.PILE] = "Portrait_269.1_Polycephalus2.png",
|
|
80
|
+
[BossID.REAP_CREEP] = "Portrait_900.0_ReapCreep.png",
|
|
81
|
+
[BossID.LIL_BLUB] = "Portrait_901.0_Beelzeblub.png",
|
|
82
|
+
[BossID.WORMWOOD] = "Portrait_902.0_Wormwood.png",
|
|
83
|
+
[BossID.RAINMAKER] = "Portrait_902.0_Rainmaker.png",
|
|
84
|
+
[BossID.VISAGE] = "Portrait_903.0_Visage.png",
|
|
85
|
+
[BossID.SIREN] = "Portrait_904.0_Siren.png",
|
|
86
|
+
[BossID.TUFF_TWINS] = "Portrait_19.100_TuffTwins.png",
|
|
87
|
+
[BossID.HERETIC] = "Portrait_905.0_Heretic.png",
|
|
88
|
+
[BossID.HORNFEL] = "Portrait_906.0_Hornfel.png",
|
|
89
|
+
[BossID.GREAT_GIDEON] = "Portrait_907.0_Gideon.png",
|
|
90
|
+
[BossID.BABY_PLUM] = "Portrait_908.0_BabyPlum.png",
|
|
91
|
+
[BossID.SCOURGE] = "Portrait_909.0_Scourge.png",
|
|
92
|
+
[BossID.CHIMERA] = "Portrait_910.0_Chimera.png",
|
|
93
|
+
[BossID.ROTGUT] = "Portrait_911.0_Rotgut.png",
|
|
94
|
+
[BossID.MOTHER] = "Portrait_Mother.png",
|
|
95
|
+
[BossID.MAUSOLEUM_MOM] = "Portrait_45.0_Mom.png",
|
|
96
|
+
[BossID.MAUSOLEUM_MOMS_HEART] = "Portrait_78.0_MomsHeart.png",
|
|
97
|
+
[BossID.MIN_MIN] = "Portrait_MinMin.png",
|
|
98
|
+
[BossID.CLOG] = "Portrait_Clog.png",
|
|
99
|
+
[BossID.SINGE] = "Portrait_Singe.png",
|
|
100
|
+
[BossID.BUMBINO] = "Portrait_Bumbino.png",
|
|
101
|
+
[BossID.COLOSTOMIA] = "Portrait_Colostomia.png",
|
|
102
|
+
[BossID.SHELL] = "Portrait_Shell.png",
|
|
103
|
+
[BossID.TURDLET] = "Portrait_Turdlet.png",
|
|
104
|
+
[BossID.RAGLICH] = "Portrait_Raglich.png",
|
|
105
|
+
[BossID.DOGMA] = "Portrait_Dogma.png",
|
|
106
|
+
[BossID.BEAST] = "Portrait_The Beast.png",
|
|
107
|
+
[BossID.HORNY_BOYS] = "Portrait_HornyBoys.png",
|
|
108
|
+
[BossID.CLUTCH] = "Portrait_Clutch.png"
|
|
107
109
|
}
|
|
108
110
|
return ____exports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "56.1.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": "^26.1.0"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/core/constants.ts
CHANGED
|
@@ -292,8 +292,8 @@ export const NUM_PILL_COLORS_IN_POOL = NUM_NORMAL_PILL_COLORS;
|
|
|
292
292
|
export const ONE_BY_ONE_ROOM_GRID_SIZE = 135;
|
|
293
293
|
|
|
294
294
|
/**
|
|
295
|
-
* An array representing every valid collectible type quality. Specifically, this is `[0, 1, 2, 3,
|
|
296
|
-
* 4]
|
|
295
|
+
* An array representing every valid collectible type quality. Specifically, this is: `[0, 1, 2, 3,
|
|
296
|
+
* 4]`
|
|
297
297
|
*/
|
|
298
298
|
// eslint-disable-next-line isaacscript/require-capital-const-assertions
|
|
299
299
|
export const QUALITIES: readonly Quality[] = [0, 1, 2, 3, 4];
|
package/src/functions/bosses.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { game } from "../core/cachedClasses";
|
|
|
4
4
|
import { VectorZero } from "../core/constants";
|
|
5
5
|
import { ENTITY_TYPE_VARIANT_TO_BOSS_ID_MAP } from "../maps/entityTypeVariantToBossIDMap";
|
|
6
6
|
import { BOSS_ID_TO_ENTITY_TYPE_VARIANT } from "../objects/bossIDToEntityTypeVariant";
|
|
7
|
+
import { BOSS_NAMES, DEFAULT_BOSS_NAME } from "../objects/bossNames";
|
|
7
8
|
import {
|
|
8
9
|
ALL_BOSSES_EXCLUDING_STORY_BOSSES_SET,
|
|
9
10
|
ALL_BOSSES_SET,
|
|
@@ -109,6 +110,16 @@ export function getBossIDFromEntityTypeVariant(
|
|
|
109
110
|
return ENTITY_TYPE_VARIANT_TO_BOSS_ID_MAP.get(entityTypeVariant);
|
|
110
111
|
}
|
|
111
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Helper function to get the proper English name for a boss. For example, the name for
|
|
115
|
+
* `BossID.WRETCHED` (36) is "The Wretched".
|
|
116
|
+
*/
|
|
117
|
+
export function getBossName(bossID: BossID): string {
|
|
118
|
+
// Handle modded boss IDs.
|
|
119
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
120
|
+
return BOSS_NAMES[bossID] ?? DEFAULT_BOSS_NAME;
|
|
121
|
+
}
|
|
122
|
+
|
|
112
123
|
/**
|
|
113
124
|
* Helper function to get the set of vanilla bosses for a particular stage and stage type
|
|
114
125
|
* combination.
|
package/src/functions/cards.ts
CHANGED
|
@@ -11,9 +11,12 @@ import { ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET } from "../sets/itemConfigCardType
|
|
|
11
11
|
import { addFlag } from "./flag";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Helper function to get a card description from a
|
|
14
|
+
* Helper function to get a card description from a `CardType` value. Returns "Unknown" if the
|
|
15
|
+
* provided card type is not valid.
|
|
15
16
|
*
|
|
16
|
-
*
|
|
17
|
+
* This function works for both vanilla and modded trinkets.
|
|
18
|
+
*
|
|
19
|
+
* For example, `getCardDescription(CardType.FOOL)` would return "Where journey begins".
|
|
17
20
|
*/
|
|
18
21
|
export function getCardDescription(cardType: CardType): string {
|
|
19
22
|
// "ItemConfigCard.Description" is bugged with vanilla cards on patch v1.7.6, so we use a
|
|
@@ -77,11 +80,12 @@ export function getItemConfigCardType(
|
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
/**
|
|
80
|
-
* Returns true for
|
|
81
|
-
*
|
|
82
|
-
* -
|
|
83
|
-
* -
|
|
84
|
-
* -
|
|
83
|
+
* Returns true for card types that have the following item config card type:
|
|
84
|
+
*
|
|
85
|
+
* - `ItemConfigCardType.TAROT` (0)
|
|
86
|
+
* - `ItemConfigCardType.SUIT` (1)
|
|
87
|
+
* - `ItemConfigCardType.SPECIAL` (3)
|
|
88
|
+
* - `ItemConfigCardType.TAROT_REVERSE` (5)
|
|
85
89
|
*/
|
|
86
90
|
export function isCard(cardType: CardType): boolean {
|
|
87
91
|
const itemConfigCardType = getItemConfigCardType(cardType);
|
|
@@ -100,42 +104,41 @@ export function isCardType(
|
|
|
100
104
|
return itemConfigCardType === getItemConfigCardType(cardType);
|
|
101
105
|
}
|
|
102
106
|
|
|
103
|
-
/** Returns true for any card
|
|
107
|
+
/** Returns true for any card type added by a mod. */
|
|
104
108
|
export function isModdedCardType(cardType: CardType): boolean {
|
|
105
109
|
return !isVanillaCardType(cardType);
|
|
106
110
|
}
|
|
107
111
|
|
|
108
|
-
/** Returns true for
|
|
112
|
+
/** Returns true for card types that have `ItemConfigCardType.SPECIAL_OBJECT`. */
|
|
109
113
|
export function isPocketItemObject(cardType: CardType): boolean {
|
|
110
114
|
return isCardType(cardType, ItemConfigCardType.SPECIAL_OBJECT);
|
|
111
115
|
}
|
|
112
116
|
|
|
113
|
-
/** Returns true for
|
|
117
|
+
/** Returns true for card types that have `ItemConfigCardType.TAROT_REVERSE`. */
|
|
114
118
|
export function isReverseTarotCard(cardType: CardType): boolean {
|
|
115
119
|
return isCardType(cardType, ItemConfigCardType.TAROT_REVERSE);
|
|
116
120
|
}
|
|
117
121
|
|
|
118
|
-
/** Returns true for
|
|
122
|
+
/** Returns true for card types that have `ItemConfigCardType.RUNE`. */
|
|
119
123
|
export function isRune(cardType: CardType): boolean {
|
|
120
124
|
return isCardType(cardType, ItemConfigCardType.RUNE);
|
|
121
125
|
}
|
|
122
126
|
|
|
123
|
-
/** Returns true for
|
|
127
|
+
/** Returns true for card types that have `ItemConfigCardType.SPECIAL`. */
|
|
124
128
|
export function isSpecialCard(cardType: CardType): boolean {
|
|
125
129
|
return isCardType(cardType, ItemConfigCardType.SPECIAL);
|
|
126
130
|
}
|
|
127
131
|
|
|
128
|
-
/** Returns true for
|
|
132
|
+
/** Returns true for card types that have `ItemConfigCardType.SUIT`. */
|
|
129
133
|
export function isSuitCard(cardType: CardType): boolean {
|
|
130
134
|
return isCardType(cardType, ItemConfigCardType.SUIT);
|
|
131
135
|
}
|
|
132
136
|
|
|
133
|
-
/** Returns true for
|
|
137
|
+
/** Returns true for card types that have `ItemConfigCardType.TAROT`. */
|
|
134
138
|
export function isTarotCard(cardType: CardType): boolean {
|
|
135
139
|
return isCardType(cardType, ItemConfigCardType.TAROT);
|
|
136
140
|
}
|
|
137
141
|
|
|
138
|
-
/** Returns true for any vanilla card or rune. */
|
|
139
142
|
export function isVanillaCardType(cardType: CardType): boolean {
|
|
140
143
|
return cardType <= LAST_VANILLA_CARD_TYPE;
|
|
141
144
|
}
|
|
@@ -47,7 +47,7 @@ const GLITCHED_ITEM_THRESHOLD = 4_000_000_000;
|
|
|
47
47
|
|
|
48
48
|
const QUALITY_TO_VANILLA_COLLECTIBLE_TYPES_MAP: ReadonlyMap<
|
|
49
49
|
Quality,
|
|
50
|
-
|
|
50
|
+
ReadonlySet<CollectibleType>
|
|
51
51
|
> = (() => {
|
|
52
52
|
const qualityToCollectibleTypesMap = new Map<Quality, Set<CollectibleType>>();
|
|
53
53
|
|
|
@@ -259,7 +259,11 @@ export const BOSS_ID_TO_ENTITY_TYPE_VARIANT = {
|
|
|
259
259
|
// 70
|
|
260
260
|
[BossID.DELIRIUM]: [EntityType.DELIRIUM, 0],
|
|
261
261
|
|
|
262
|
-
//
|
|
262
|
+
// 71
|
|
263
|
+
[BossID.ULTRA_GREEDIER]: [
|
|
264
|
+
EntityType.ULTRA_GREED,
|
|
265
|
+
UltraGreedVariant.ULTRA_GREEDIER,
|
|
266
|
+
],
|
|
263
267
|
|
|
264
268
|
// 72
|
|
265
269
|
[BossID.MATRIARCH]: [EntityType.MATRIARCH, 0],
|