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.
Files changed (32) hide show
  1. package/dist/index.rollup.d.ts +26 -17
  2. package/dist/isaacscript-common.lua +336 -214
  3. package/dist/src/core/constants.d.ts +2 -2
  4. package/dist/src/core/constants.lua +2 -2
  5. package/dist/src/functions/bosses.d.ts +5 -0
  6. package/dist/src/functions/bosses.d.ts.map +1 -1
  7. package/dist/src/functions/bosses.lua +15 -7
  8. package/dist/src/functions/cards.d.ts +18 -15
  9. package/dist/src/functions/cards.d.ts.map +1 -1
  10. package/dist/src/functions/cards.lua +18 -15
  11. package/dist/src/objects/bossIDToEntityTypeVariant.d.ts +1 -0
  12. package/dist/src/objects/bossIDToEntityTypeVariant.d.ts.map +1 -1
  13. package/dist/src/objects/bossIDToEntityTypeVariant.lua +1 -0
  14. package/dist/src/objects/bossNamePNGFileNames.d.ts +106 -102
  15. package/dist/src/objects/bossNamePNGFileNames.d.ts.map +1 -1
  16. package/dist/src/objects/bossNamePNGFileNames.lua +104 -102
  17. package/dist/src/objects/bossNames.d.ts +111 -0
  18. package/dist/src/objects/bossNames.d.ts.map +1 -0
  19. package/dist/src/objects/bossNames.lua +112 -0
  20. package/dist/src/objects/bossPortraitPNGFileNames.d.ts +106 -102
  21. package/dist/src/objects/bossPortraitPNGFileNames.d.ts.map +1 -1
  22. package/dist/src/objects/bossPortraitPNGFileNames.lua +104 -102
  23. package/package.json +2 -2
  24. package/src/core/constants.ts +2 -2
  25. package/src/functions/bosses.ts +11 -0
  26. package/src/functions/cards.ts +18 -15
  27. package/src/functions/collectibles.ts +1 -1
  28. package/src/objects/bossIDToEntityTypeVariant.ts +5 -1
  29. package/src/objects/bossNamePNGFileNames.ts +112 -106
  30. package/src/objects/bossNames.ts +118 -0
  31. package/src/objects/bossPortraitPNGFileNames.ts +115 -109
  32. package/src/sets/itemConfigCardTypesForCardsSet.ts +4 -4
@@ -1,105 +1,109 @@
1
- /** Used when rendering the "versusscreen.anm2" sprite. */
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: "portrait_20.0_monstro.png";
4
- readonly 2: "portrait_19.0_larryjr.png";
5
- readonly 3: "portrait_28.0_chub.png";
6
- readonly 4: "portrait_36.0_gurdy.png";
7
- readonly 5: "portrait_43.0_monstro2.png";
8
- readonly 6: "portrait_45.0_mom.png";
9
- readonly 7: "portrait_62.1_scolex.png";
10
- readonly 8: "portrait_78.0_momsheart.png";
11
- readonly 9: "portrait_63.0_famine.png";
12
- readonly 10: "portrait_64.0_pestilence.png";
13
- readonly 11: "portrait_65.0_war.png";
14
- readonly 12: "portrait_66.0_death.png";
15
- readonly 13: "portrait_67.0_dukeofflies.png";
16
- readonly 14: "portrait_68.0_peep.png";
17
- readonly 15: "portrait_69.0_loki.png";
18
- readonly 16: "portrait_74.0_blastocyst.png";
19
- readonly 17: "portrait_79.0_gemini.png";
20
- readonly 18: "portrait_71.0_fistula.png";
21
- readonly 19: "portrait_43.1_gish.png";
22
- readonly 20: "portrait_79.1_steven.png";
23
- readonly 21: "portrait_28.1_chad.png";
24
- readonly 22: "portrait_82.0_headlesshorseman.png";
25
- readonly 23: "portrait_81.0_thefallen.png";
26
- readonly 24: "portrait_84.0_satan.png";
27
- readonly 25: "portrait_78.1_itlives.png";
28
- readonly 26: "portrait_19.1_thehollow.png";
29
- readonly 27: "portrait_28.2_carrionqueen.png";
30
- readonly 28: "portrait_99.0_gurdyjr.png";
31
- readonly 29: "portrait_67.1_thehusk.png";
32
- readonly 30: "portrait_68.1_bloat.png";
33
- readonly 31: "portrait_69.1_lokii.png";
34
- readonly 32: "portrait_79.2_blightedovum.png";
35
- readonly 33: "portrait_71.1_teratoma.png";
36
- readonly 34: "portrait_100.0_widow.png";
37
- readonly 35: "portrait_97.0_maskofinfamy.png";
38
- readonly 36: "portrait_100.1_thewretched.png";
39
- readonly 37: "portrait_62.0_pin.png";
40
- readonly 38: "portrait_65.1_conquest.png";
41
- readonly 39: "portrait_102.0_isaac.png";
42
- readonly 40: "portrait_102.1_bluebaby.png";
43
- readonly 41: "portrait_101.0_daddylonglegs.png";
44
- readonly 42: "portrait_101.1_triachnid.png";
45
- readonly 43: "portrait_260.0_thehaunt.png";
46
- readonly 44: "portrait_261.0_dingle.png";
47
- readonly 45: "portrait_262.0_megamaw.png";
48
- readonly 46: "portrait_263.0_megamaw2.png";
49
- readonly 47: "portrait_264.0_megafatty.png";
50
- readonly 48: "portrait_265.0_fatty2.png";
51
- readonly 49: "portrait_266.0_mamagurdy.png";
52
- readonly 50: "portrait_267.0_darkone.png";
53
- readonly 51: "portrait_268.0_darkone2.png";
54
- readonly 52: "portrait_269.0_polycephalus.png";
55
- readonly 53: "portrait_270.0_megafred.png";
56
- readonly 54: "portrait_273.0_thelamb.png";
57
- readonly 55: "portrait_274.0_megasatan.png";
58
- readonly 56: "portrait_276.0_gurglings.png";
59
- readonly 57: "portrait_401.0_thestain.png";
60
- readonly 58: "portrait_402.0_brownie.png";
61
- readonly 59: "portrait_403.0_theforsaken.png";
62
- readonly 60: "portrait_404.0_littlehorn.png";
63
- readonly 61: "portrait_405.0_ragman.png";
64
- readonly 62: "portrait_406.0_ultragreed.png";
65
- readonly 63: "portrait_407.0_hush.png";
66
- readonly 64: "portrait_dangle.png";
67
- readonly 65: "portrait_turdlings.png";
68
- readonly 66: "portrait_thefrail.png";
69
- readonly 67: "portrait_ragmega.png";
70
- readonly 68: "portrait_sistersvis.png";
71
- readonly 69: "portrait_bighorn.png";
72
- readonly 70: "portrait_delirium.png";
73
- readonly 72: "portrait_matriarch.png";
74
- readonly 73: "portrait_269.1_polycephalus2.png";
75
- readonly 74: "portrait_900.0_reapcreep.png";
76
- readonly 75: "portrait_901.0_beelzeblub.png";
77
- readonly 76: "portrait_902.0_wormwood.png";
78
- readonly 77: "portrait_902.0_rainmaker.png";
79
- readonly 78: "portrait_903.0_visage.png";
80
- readonly 79: "portrait_904.0_siren.png";
81
- readonly 80: "portrait_19.100_tufftwins.png";
82
- readonly 81: "portrait_905.0_heretic.png";
83
- readonly 82: "portrait_906.0_hornfel.png";
84
- readonly 83: "portrait_907.0_gideon.png";
85
- readonly 84: "portrait_908.0_babyplum.png";
86
- readonly 85: "portrait_909.0_scourge.png";
87
- readonly 86: "portrait_910.0_chimera.png";
88
- readonly 87: "portrait_911.0_rotgut.png";
89
- readonly 88: "portrait_mother.png";
90
- readonly 89: "portrait_45.0_mom.png";
91
- readonly 90: "portrait_78.0_momsheart.png";
92
- readonly 91: "portrait_minmin.png";
93
- readonly 92: "portrait_clog.png";
94
- readonly 93: "portrait_singe.png";
95
- readonly 94: "portrait_bumbino.png";
96
- readonly 95: "portrait_colostomia.png";
97
- readonly 96: "portrait_shell.png";
98
- readonly 97: "portrait_turdlet.png";
99
- readonly 98: "portrait_raglich.png";
100
- readonly 99: "portrait_dogma.png";
101
- readonly 100: "portrait_dogma.png";
102
- readonly 101: "portrait_hornyboys.png";
103
- readonly 102: "portrait_clutch.png";
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,0DAA0D;AAC1D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8GE,CAAC"}
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
- --- Used when rendering the "versusscreen.anm2" sprite.
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] = "portrait_20.0_monstro.png",
7
- [BossID.LARRY_JR] = "portrait_19.0_larryjr.png",
8
- [BossID.CHUB] = "portrait_28.0_chub.png",
9
- [BossID.GURDY] = "portrait_36.0_gurdy.png",
10
- [BossID.MONSTRO_2] = "portrait_43.0_monstro2.png",
11
- [BossID.MOM] = "portrait_45.0_mom.png",
12
- [BossID.SCOLEX] = "portrait_62.1_scolex.png",
13
- [BossID.MOMS_HEART] = "portrait_78.0_momsheart.png",
14
- [BossID.FAMINE] = "portrait_63.0_famine.png",
15
- [BossID.PESTILENCE] = "portrait_64.0_pestilence.png",
16
- [BossID.WAR] = "portrait_65.0_war.png",
17
- [BossID.DEATH] = "portrait_66.0_death.png",
18
- [BossID.DUKE_OF_FLIES] = "portrait_67.0_dukeofflies.png",
19
- [BossID.PEEP] = "portrait_68.0_peep.png",
20
- [BossID.LOKI] = "portrait_69.0_loki.png",
21
- [BossID.BLASTOCYST] = "portrait_74.0_blastocyst.png",
22
- [BossID.GEMINI] = "portrait_79.0_gemini.png",
23
- [BossID.FISTULA] = "portrait_71.0_fistula.png",
24
- [BossID.GISH] = "portrait_43.1_gish.png",
25
- [BossID.STEVEN] = "portrait_79.1_steven.png",
26
- [BossID.CHAD] = "portrait_28.1_chad.png",
27
- [BossID.HEADLESS_HORSEMAN] = "portrait_82.0_headlesshorseman.png",
28
- [BossID.FALLEN] = "portrait_81.0_thefallen.png",
29
- [BossID.SATAN] = "portrait_84.0_satan.png",
30
- [BossID.IT_LIVES] = "portrait_78.1_itlives.png",
31
- [BossID.HOLLOW] = "portrait_19.1_thehollow.png",
32
- [BossID.CARRION_QUEEN] = "portrait_28.2_carrionqueen.png",
33
- [BossID.GURDY_JR] = "portrait_99.0_gurdyjr.png",
34
- [BossID.HUSK] = "portrait_67.1_thehusk.png",
35
- [BossID.BLOAT] = "portrait_68.1_bloat.png",
36
- [BossID.LOKII] = "portrait_69.1_lokii.png",
37
- [BossID.BLIGHTED_OVUM] = "portrait_79.2_blightedovum.png",
38
- [BossID.TERATOMA] = "portrait_71.1_teratoma.png",
39
- [BossID.WIDOW] = "portrait_100.0_widow.png",
40
- [BossID.MASK_OF_INFAMY] = "portrait_97.0_maskofinfamy.png",
41
- [BossID.WRETCHED] = "portrait_100.1_thewretched.png",
42
- [BossID.PIN] = "portrait_62.0_pin.png",
43
- [BossID.CONQUEST] = "portrait_65.1_conquest.png",
44
- [BossID.ISAAC] = "portrait_102.0_isaac.png",
45
- [BossID.BLUE_BABY] = "portrait_102.1_bluebaby.png",
46
- [BossID.DADDY_LONG_LEGS] = "portrait_101.0_daddylonglegs.png",
47
- [BossID.TRIACHNID] = "portrait_101.1_triachnid.png",
48
- [BossID.HAUNT] = "portrait_260.0_thehaunt.png",
49
- [BossID.DINGLE] = "portrait_261.0_dingle.png",
50
- [BossID.MEGA_MAW] = "portrait_262.0_megamaw.png",
51
- [BossID.GATE] = "portrait_263.0_megamaw2.png",
52
- [BossID.MEGA_FATTY] = "portrait_264.0_megafatty.png",
53
- [BossID.CAGE] = "portrait_265.0_fatty2.png",
54
- [BossID.MAMA_GURDY] = "portrait_266.0_mamagurdy.png",
55
- [BossID.DARK_ONE] = "portrait_267.0_darkone.png",
56
- [BossID.ADVERSARY] = "portrait_268.0_darkone2.png",
57
- [BossID.POLYCEPHALUS] = "portrait_269.0_polycephalus.png",
58
- [BossID.MR_FRED] = "portrait_270.0_megafred.png",
59
- [BossID.LAMB] = "portrait_273.0_thelamb.png",
60
- [BossID.MEGA_SATAN] = "portrait_274.0_megasatan.png",
61
- [BossID.GURGLING] = "portrait_276.0_gurglings.png",
62
- [BossID.STAIN] = "portrait_401.0_thestain.png",
63
- [BossID.BROWNIE] = "portrait_402.0_brownie.png",
64
- [BossID.FORSAKEN] = "portrait_403.0_theforsaken.png",
65
- [BossID.LITTLE_HORN] = "portrait_404.0_littlehorn.png",
66
- [BossID.RAG_MAN] = "portrait_405.0_ragman.png",
67
- [BossID.ULTRA_GREED] = "portrait_406.0_ultragreed.png",
68
- [BossID.HUSH] = "portrait_407.0_hush.png",
69
- [BossID.DANGLE] = "portrait_dangle.png",
70
- [BossID.TURDLING] = "portrait_turdlings.png",
71
- [BossID.FRAIL] = "portrait_thefrail.png",
72
- [BossID.RAG_MEGA] = "portrait_ragmega.png",
73
- [BossID.SISTERS_VIS] = "portrait_sistersvis.png",
74
- [BossID.BIG_HORN] = "portrait_bighorn.png",
75
- [BossID.DELIRIUM] = "portrait_delirium.png",
76
- [BossID.MATRIARCH] = "portrait_matriarch.png",
77
- [BossID.PILE] = "portrait_269.1_polycephalus2.png",
78
- [BossID.REAP_CREEP] = "portrait_900.0_reapcreep.png",
79
- [BossID.LIL_BLUB] = "portrait_901.0_beelzeblub.png",
80
- [BossID.WORMWOOD] = "portrait_902.0_wormwood.png",
81
- [BossID.RAINMAKER] = "portrait_902.0_rainmaker.png",
82
- [BossID.VISAGE] = "portrait_903.0_visage.png",
83
- [BossID.SIREN] = "portrait_904.0_siren.png",
84
- [BossID.TUFF_TWINS] = "portrait_19.100_tufftwins.png",
85
- [BossID.HERETIC] = "portrait_905.0_heretic.png",
86
- [BossID.HORNFEL] = "portrait_906.0_hornfel.png",
87
- [BossID.GREAT_GIDEON] = "portrait_907.0_gideon.png",
88
- [BossID.BABY_PLUM] = "portrait_908.0_babyplum.png",
89
- [BossID.SCOURGE] = "portrait_909.0_scourge.png",
90
- [BossID.CHIMERA] = "portrait_910.0_chimera.png",
91
- [BossID.ROTGUT] = "portrait_911.0_rotgut.png",
92
- [BossID.MOTHER] = "portrait_mother.png",
93
- [BossID.MAUSOLEUM_MOM] = "portrait_45.0_mom.png",
94
- [BossID.MAUSOLEUM_MOMS_HEART] = "portrait_78.0_momsheart.png",
95
- [BossID.MIN_MIN] = "portrait_minmin.png",
96
- [BossID.CLOG] = "portrait_clog.png",
97
- [BossID.SINGE] = "portrait_singe.png",
98
- [BossID.BUMBINO] = "portrait_bumbino.png",
99
- [BossID.COLOSTOMIA] = "portrait_colostomia.png",
100
- [BossID.SHELL] = "portrait_shell.png",
101
- [BossID.TURDLET] = "portrait_turdlet.png",
102
- [BossID.RAGLICH] = "portrait_raglich.png",
103
- [BossID.DOGMA] = "portrait_dogma.png",
104
- [BossID.BEAST] = "portrait_dogma.png",
105
- [BossID.HORNY_BOYS] = "portrait_hornyboys.png",
106
- [BossID.CLUTCH] = "portrait_clutch.png"
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": "55.2.0",
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": "^25.0.0"
28
+ "isaac-typescript-definitions": "^26.1.0"
29
29
  }
30
30
  }
@@ -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];
@@ -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.
@@ -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 Card enum value.
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
- * For example, `getCardDescription(card)` returns "Where journey begins".
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 cards that have the following card type:
81
- * - CardType.TAROT
82
- * - CardType.SUIT
83
- * - CardType.SPECIAL
84
- * - CardType.TAROT_REVERSE
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 or rune added by a mod. */
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 cards that have `ItemConfigCardType.SPECIAL_OBJECT`. */
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 cards that have `ItemConfigCardType.TAROT_REVERSE`. */
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 cards that have `ItemConfigCardType.RUNE`. */
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 cards that have `ItemConfigCardType.SPECIAL`. */
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 cards that have `ItemConfigCardType.SUIT`. */
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 cards that have `ItemConfigCardType.TAROT`. */
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
- Set<CollectibleType>
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
- // There is no boss ID with a value of 71.
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],