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
@@ -152,8 +152,8 @@ export declare const DIMENSIONS: readonly Dimension[];
152
152
  export declare const NUM_PILL_COLORS_IN_POOL: number;
153
153
  export declare const ONE_BY_ONE_ROOM_GRID_SIZE = 135;
154
154
  /**
155
- * An array representing every valid collectible type quality. Specifically, this is `[0, 1, 2, 3,
156
- * 4]`.
155
+ * An array representing every valid collectible type quality. Specifically, this is: `[0, 1, 2, 3,
156
+ * 4]`
157
157
  */
158
158
  export declare const QUALITIES: readonly Quality[];
159
159
  export declare const SECOND_IN_MILLISECONDS = 1000;
@@ -201,8 +201,8 @@ ____exports.DIMENSIONS = eRange(nil, ____exports.NUM_DIMENSIONS)
201
201
  -- horse pills.)
202
202
  ____exports.NUM_PILL_COLORS_IN_POOL = NUM_NORMAL_PILL_COLORS
203
203
  ____exports.ONE_BY_ONE_ROOM_GRID_SIZE = 135
204
- --- An array representing every valid collectible type quality. Specifically, this is `[0, 1, 2, 3,
205
- -- 4]`.
204
+ --- An array representing every valid collectible type quality. Specifically, this is: `[0, 1, 2, 3,
205
+ -- 4]`
206
206
  ____exports.QUALITIES = {
207
207
  0,
208
208
  1,
@@ -44,6 +44,11 @@ export declare function getAllBossesSet(includeStoryBosses?: boolean): ReadonlyS
44
44
  */
45
45
  export declare function getBossID(): BossID | 0;
46
46
  export declare function getBossIDFromEntityTypeVariant(entityType: EntityType, variant: int): BossID | undefined;
47
+ /**
48
+ * Helper function to get the proper English name for a boss. For example, the name for
49
+ * `BossID.WRETCHED` (36) is "The Wretched".
50
+ */
51
+ export declare function getBossName(bossID: BossID): string;
47
52
  /**
48
53
  * Helper function to get the set of vanilla bosses for a particular stage and stage type
49
54
  * combination.
@@ -1 +1 @@
1
- {"version":3,"file":"bosses.d.ts","sourceRoot":"","sources":["../../../src/functions/bosses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAe,MAAM,8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AE,MAAM,GAAG,SAAqB,EACvC,WAAW,CAAC,EAAE,GAAG,GAChB,SAAS,CAYX"}
@@ -14,6 +14,9 @@ local ____entityTypeVariantToBossIDMap = require("src.maps.entityTypeVariantToBo
14
14
  local ENTITY_TYPE_VARIANT_TO_BOSS_ID_MAP = ____entityTypeVariantToBossIDMap.ENTITY_TYPE_VARIANT_TO_BOSS_ID_MAP
15
15
  local ____bossIDToEntityTypeVariant = require("src.objects.bossIDToEntityTypeVariant")
16
16
  local BOSS_ID_TO_ENTITY_TYPE_VARIANT = ____bossIDToEntityTypeVariant.BOSS_ID_TO_ENTITY_TYPE_VARIANT
17
+ local ____bossNames = require("src.objects.bossNames")
18
+ local BOSS_NAMES = ____bossNames.BOSS_NAMES
19
+ local DEFAULT_BOSS_NAME = ____bossNames.DEFAULT_BOSS_NAME
17
20
  local ____bossSets = require("src.sets.bossSets")
18
21
  local ALL_BOSSES_EXCLUDING_STORY_BOSSES_SET = ____bossSets.ALL_BOSSES_EXCLUDING_STORY_BOSSES_SET
19
22
  local ALL_BOSSES_SET = ____bossSets.ALL_BOSSES_SET
@@ -126,6 +129,11 @@ function ____exports.getBossIDFromEntityTypeVariant(self, entityType, variant)
126
129
  local entityTypeVariant = (tostring(entityType) .. ".") .. tostring(variant)
127
130
  return ENTITY_TYPE_VARIANT_TO_BOSS_ID_MAP:get(entityTypeVariant)
128
131
  end
132
+ --- Helper function to get the proper English name for a boss. For example, the name for
133
+ -- `BossID.WRETCHED` (36) is "The Wretched".
134
+ function ____exports.getBossName(self, bossID)
135
+ return BOSS_NAMES[bossID] or DEFAULT_BOSS_NAME
136
+ end
129
137
  --- Helper function to get the set of vanilla bosses for a particular stage and stage type
130
138
  -- combination.
131
139
  --
@@ -186,21 +194,21 @@ local function getNumBossSegments(self, entityType, variant, numSegments)
186
194
  return numSegments
187
195
  end
188
196
  repeat
189
- local ____switch18 = entityType
190
- local ____cond18 = ____switch18 == EntityType.CHUB
191
- if ____cond18 then
197
+ local ____switch19 = entityType
198
+ local ____cond19 = ____switch19 == EntityType.CHUB
199
+ if ____cond19 then
192
200
  do
193
201
  return 3
194
202
  end
195
203
  end
196
- ____cond18 = ____cond18 or ____switch18 == EntityType.LOKI
197
- if ____cond18 then
204
+ ____cond19 = ____cond19 or ____switch19 == EntityType.LOKI
205
+ if ____cond19 then
198
206
  do
199
207
  return variant == asNumber(nil, LokiVariant.LOKII) and 2 or 1
200
208
  end
201
209
  end
202
- ____cond18 = ____cond18 or ____switch18 == EntityType.GURGLING
203
- if ____cond18 then
210
+ ____cond19 = ____cond19 or ____switch19 == EntityType.GURGLING
211
+ if ____cond19 then
204
212
  do
205
213
  return 2
206
214
  end
@@ -1,9 +1,12 @@
1
1
  import type { CardType } from "isaac-typescript-definitions";
2
2
  import { ItemConfigCardType } from "isaac-typescript-definitions";
3
3
  /**
4
- * Helper function to get a card description from a Card enum value.
4
+ * Helper function to get a card description from a `CardType` value. Returns "Unknown" if the
5
+ * provided card type is not valid.
5
6
  *
6
- * For example, `getCardDescription(card)` returns "Where journey begins".
7
+ * This function works for both vanilla and modded trinkets.
8
+ *
9
+ * For example, `getCardDescription(CardType.FOOL)` would return "Where journey begins".
7
10
  */
8
11
  export declare function getCardDescription(cardType: CardType): string;
9
12
  /**
@@ -23,30 +26,30 @@ export declare function getCardName(cardType: CardType): string;
23
26
  */
24
27
  export declare function getItemConfigCardType(cardType: CardType): ItemConfigCardType | undefined;
25
28
  /**
26
- * Returns true for cards that have the following card type:
27
- * - CardType.TAROT
28
- * - CardType.SUIT
29
- * - CardType.SPECIAL
30
- * - CardType.TAROT_REVERSE
29
+ * Returns true for card types that have the following item config card type:
30
+ *
31
+ * - `ItemConfigCardType.TAROT` (0)
32
+ * - `ItemConfigCardType.SUIT` (1)
33
+ * - `ItemConfigCardType.SPECIAL` (3)
34
+ * - `ItemConfigCardType.TAROT_REVERSE` (5)
31
35
  */
32
36
  export declare function isCard(cardType: CardType): boolean;
33
37
  /** Returns whether the given card type matches the specified item config card type. */
34
38
  export declare function isCardType(cardType: CardType, itemConfigCardType: ItemConfigCardType): boolean;
35
- /** Returns true for any card or rune added by a mod. */
39
+ /** Returns true for any card type added by a mod. */
36
40
  export declare function isModdedCardType(cardType: CardType): boolean;
37
- /** Returns true for cards that have `ItemConfigCardType.SPECIAL_OBJECT`. */
41
+ /** Returns true for card types that have `ItemConfigCardType.SPECIAL_OBJECT`. */
38
42
  export declare function isPocketItemObject(cardType: CardType): boolean;
39
- /** Returns true for cards that have `ItemConfigCardType.TAROT_REVERSE`. */
43
+ /** Returns true for card types that have `ItemConfigCardType.TAROT_REVERSE`. */
40
44
  export declare function isReverseTarotCard(cardType: CardType): boolean;
41
- /** Returns true for cards that have `ItemConfigCardType.RUNE`. */
45
+ /** Returns true for card types that have `ItemConfigCardType.RUNE`. */
42
46
  export declare function isRune(cardType: CardType): boolean;
43
- /** Returns true for cards that have `ItemConfigCardType.SPECIAL`. */
47
+ /** Returns true for card types that have `ItemConfigCardType.SPECIAL`. */
44
48
  export declare function isSpecialCard(cardType: CardType): boolean;
45
- /** Returns true for cards that have `ItemConfigCardType.SUIT`. */
49
+ /** Returns true for card types that have `ItemConfigCardType.SUIT`. */
46
50
  export declare function isSuitCard(cardType: CardType): boolean;
47
- /** Returns true for cards that have `ItemConfigCardType.TAROT`. */
51
+ /** Returns true for card types that have `ItemConfigCardType.TAROT`. */
48
52
  export declare function isTarotCard(cardType: CardType): boolean;
49
- /** Returns true for any vanilla card or rune. */
50
53
  export declare function isVanillaCardType(cardType: CardType): boolean;
51
54
  /**
52
55
  * Helper function to use a card without showing an animation and without the announcer voice
@@ -1 +1 @@
1
- {"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../../src/functions/cards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAW,MAAM,8BAA8B,CAAC;AAW3E;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,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AAW,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAG1E"}
@@ -16,13 +16,15 @@ local ____itemConfigCardTypesForCardsSet = require("src.sets.itemConfigCardTypes
16
16
  local ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET = ____itemConfigCardTypesForCardsSet.ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET
17
17
  local ____flag = require("src.functions.flag")
18
18
  local addFlag = ____flag.addFlag
19
- --- Returns true for any vanilla card or rune.
20
19
  function ____exports.isVanillaCardType(self, cardType)
21
20
  return cardType <= LAST_VANILLA_CARD_TYPE
22
21
  end
23
- --- Helper function to get a card description from a Card enum value.
22
+ --- Helper function to get a card description from a `CardType` value. Returns "Unknown" if the
23
+ -- provided card type is not valid.
24
24
  --
25
- -- For example, `getCardDescription(card)` returns "Where journey begins".
25
+ -- This function works for both vanilla and modded trinkets.
26
+ --
27
+ -- For example, `getCardDescription(CardType.FOOL)` would return "Where journey begins".
26
28
  function ____exports.getCardDescription(self, cardType)
27
29
  local cardDescription = CARD_DESCRIPTIONS[cardType]
28
30
  if cardDescription ~= nil then
@@ -62,11 +64,12 @@ function ____exports.getItemConfigCardType(self, cardType)
62
64
  end
63
65
  return itemConfigCard.CardType
64
66
  end
65
- --- Returns true for cards that have the following card type:
66
- -- - CardType.TAROT
67
- -- - CardType.SUIT
68
- -- - CardType.SPECIAL
69
- -- - CardType.TAROT_REVERSE
67
+ --- Returns true for card types that have the following item config card type:
68
+ --
69
+ -- - `ItemConfigCardType.TAROT` (0)
70
+ -- - `ItemConfigCardType.SUIT` (1)
71
+ -- - `ItemConfigCardType.SPECIAL` (3)
72
+ -- - `ItemConfigCardType.TAROT_REVERSE` (5)
70
73
  function ____exports.isCard(self, cardType)
71
74
  local itemConfigCardType = ____exports.getItemConfigCardType(nil, cardType)
72
75
  if itemConfigCardType == nil then
@@ -78,31 +81,31 @@ end
78
81
  function ____exports.isCardType(self, cardType, itemConfigCardType)
79
82
  return itemConfigCardType == ____exports.getItemConfigCardType(nil, cardType)
80
83
  end
81
- --- Returns true for any card or rune added by a mod.
84
+ --- Returns true for any card type added by a mod.
82
85
  function ____exports.isModdedCardType(self, cardType)
83
86
  return not ____exports.isVanillaCardType(nil, cardType)
84
87
  end
85
- --- Returns true for cards that have `ItemConfigCardType.SPECIAL_OBJECT`.
88
+ --- Returns true for card types that have `ItemConfigCardType.SPECIAL_OBJECT`.
86
89
  function ____exports.isPocketItemObject(self, cardType)
87
90
  return ____exports.isCardType(nil, cardType, ItemConfigCardType.SPECIAL_OBJECT)
88
91
  end
89
- --- Returns true for cards that have `ItemConfigCardType.TAROT_REVERSE`.
92
+ --- Returns true for card types that have `ItemConfigCardType.TAROT_REVERSE`.
90
93
  function ____exports.isReverseTarotCard(self, cardType)
91
94
  return ____exports.isCardType(nil, cardType, ItemConfigCardType.TAROT_REVERSE)
92
95
  end
93
- --- Returns true for cards that have `ItemConfigCardType.RUNE`.
96
+ --- Returns true for card types that have `ItemConfigCardType.RUNE`.
94
97
  function ____exports.isRune(self, cardType)
95
98
  return ____exports.isCardType(nil, cardType, ItemConfigCardType.RUNE)
96
99
  end
97
- --- Returns true for cards that have `ItemConfigCardType.SPECIAL`.
100
+ --- Returns true for card types that have `ItemConfigCardType.SPECIAL`.
98
101
  function ____exports.isSpecialCard(self, cardType)
99
102
  return ____exports.isCardType(nil, cardType, ItemConfigCardType.SPECIAL)
100
103
  end
101
- --- Returns true for cards that have `ItemConfigCardType.SUIT`.
104
+ --- Returns true for card types that have `ItemConfigCardType.SUIT`.
102
105
  function ____exports.isSuitCard(self, cardType)
103
106
  return ____exports.isCardType(nil, cardType, ItemConfigCardType.SUIT)
104
107
  end
105
- --- Returns true for cards that have `ItemConfigCardType.TAROT`.
108
+ --- Returns true for card types that have `ItemConfigCardType.TAROT`.
106
109
  function ____exports.isTarotCard(self, cardType)
107
110
  return ____exports.isCardType(nil, cardType, ItemConfigCardType.TAROT)
108
111
  end
@@ -70,6 +70,7 @@ export declare const BOSS_ID_TO_ENTITY_TYPE_VARIANT: {
70
70
  readonly 68: readonly [EntityType.SISTERS_VIS, 0];
71
71
  readonly 69: readonly [EntityType.BIG_HORN, BigHornVariant.BIG_HORN];
72
72
  readonly 70: readonly [EntityType.DELIRIUM, 0];
73
+ readonly 71: readonly [EntityType.ULTRA_GREED, UltraGreedVariant.ULTRA_GREEDIER];
73
74
  readonly 72: readonly [EntityType.MATRIARCH, 0];
74
75
  readonly 73: readonly [EntityType.POLYCEPHALUS, PolycephalusVariant.PILE];
75
76
  readonly 74: readonly [EntityType.REAP_CREEP, 0];
@@ -1 +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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoUoB,CAAC"}
@@ -106,6 +106,7 @@ ____exports.BOSS_ID_TO_ENTITY_TYPE_VARIANT = {
106
106
  [BossID.SISTERS_VIS] = {EntityType.SISTERS_VIS, 0},
107
107
  [BossID.BIG_HORN] = {EntityType.BIG_HORN, BigHornVariant.BIG_HORN},
108
108
  [BossID.DELIRIUM] = {EntityType.DELIRIUM, 0},
109
+ [BossID.ULTRA_GREEDIER] = {EntityType.ULTRA_GREED, UltraGreedVariant.ULTRA_GREEDIER},
109
110
  [BossID.MATRIARCH] = {EntityType.MATRIARCH, 0},
110
111
  [BossID.PILE] = {EntityType.POLYCEPHALUS, PolycephalusVariant.PILE},
111
112
  [BossID.REAP_CREEP] = {EntityType.REAP_CREEP, 0},
@@ -1,105 +1,109 @@
1
- /** Used when rendering the "versusscreen.anm2" sprite. */
1
+ /**
2
+ * From the "nameimage" attribute in the "bossportraits.xml" file. Used when rendering the
3
+ * "versusscreen.anm2" sprite.
4
+ */
2
5
  export declare const BOSS_NAME_PNG_FILE_NAMES: {
3
- readonly 1: "bossname_20.0_monstro.png";
4
- readonly 2: "bossname_19.0_larryjr.png";
5
- readonly 3: "bossname_28.0_chub.png";
6
- readonly 4: "bossname_36.0_gurdy.png";
7
- readonly 5: "bossname_43.0_monstro2.png";
8
- readonly 6: "bossname_45.0_mom.png";
9
- readonly 7: "bossname_62.1_scolex.png";
10
- readonly 8: "bossname_78.0_momsheart.png";
11
- readonly 9: "bossname_63.0_famine.png";
12
- readonly 10: "bossname_64.0_pestilence.png";
13
- readonly 11: "bossname_65.0_war.png";
14
- readonly 12: "bossname_66.0_death.png";
15
- readonly 13: "bossname_67.0_dukeofflies.png";
16
- readonly 14: "bossname_68.0_peep.png";
17
- readonly 15: "bossname_69.0_loki.png";
18
- readonly 16: "bossname_74.0_blastocyst.png";
19
- readonly 17: "bossname_79.0_gemini.png";
20
- readonly 18: "bossname_71.0_fistula.png";
21
- readonly 19: "bossname_43.1_gish.png";
22
- readonly 20: "bossname_79.1_steven.png";
23
- readonly 21: "bossname_28.1_chad.png";
24
- readonly 22: "bossname_82.0_headlesshorseman.png";
25
- readonly 23: "bossname_81.0_thefallen.png";
26
- readonly 24: "bossname_84.0_satan.png";
27
- readonly 25: "bossname_78.1_itlives.png";
28
- readonly 26: "bossname_19.1_thehollow.png";
29
- readonly 27: "bossname_28.2_carrionqueen.png";
30
- readonly 28: "bossname_99.0_gurdyjr.png";
31
- readonly 29: "bossname_67.1_thehusk.png";
32
- readonly 30: "bossname_68.1_bloat.png";
33
- readonly 31: "bossname_69.1_lokii.png";
34
- readonly 32: "bossname_79.2_blightedovum.png";
35
- readonly 33: "bossname_71.1_teratoma.png";
36
- readonly 34: "bossname_100.0_widow.png";
37
- readonly 35: "bossname_97.0_maskofinfamy.png";
38
- readonly 36: "bossname_100.1_thewretched.png";
39
- readonly 37: "bossname_62.0_pin.png";
40
- readonly 38: "bossname_65.1_conquest.png";
41
- readonly 39: "playername_01_isaac.png";
42
- readonly 40: "bossname_102.1_bluebaby.png";
43
- readonly 41: "bossname_101.0_daddylonglegs.png";
44
- readonly 42: "bossname_101.1_triachnid.png";
45
- readonly 43: "bossname_260.0_thehaunt.png";
46
- readonly 44: "bossname_261.0_dingle.png";
47
- readonly 45: "bossname_262.0_megamaw.png";
48
- readonly 46: "bossname_263.0_megamaw2.png";
49
- readonly 47: "bossname_264.0_megafatty.png";
50
- readonly 48: "bossname_265.0_fatty2.png";
51
- readonly 49: "bossname_266.0_mamagurdy.png";
52
- readonly 50: "bossname_267.0_darkone.png";
53
- readonly 51: "bossname_268.0_darkone2.png";
54
- readonly 52: "bossname_269.0_polycephalus.png";
55
- readonly 53: "bossname_270.0_megafred.png";
56
- readonly 54: "bossname_273.0_thelamb.png";
57
- readonly 55: "bossname_274.0_megasatan.png";
58
- readonly 56: "bossname_276.0_gurglings.png";
59
- readonly 57: "bossname_401.0_thestain.png";
60
- readonly 58: "bossname_402.0_brownie.png";
61
- readonly 59: "bossname_403.0_theforsaken.png";
62
- readonly 60: "bossname_404.0_littlehorn.png";
63
- readonly 61: "bossname_405.0_ragman.png";
64
- readonly 62: "bossname_406.0_ultragreed.png";
65
- readonly 63: "bossname_407.0_hush.png";
66
- readonly 64: "bossname_dangle.png";
67
- readonly 65: "bossname_turdlings.png";
68
- readonly 66: "bossname_thefrail.png";
69
- readonly 67: "bossname_ragmega.png";
70
- readonly 68: "bossname_sisterssvis.png";
71
- readonly 69: "bossname_bighorn.png";
72
- readonly 70: "bossname_delirium.png";
73
- readonly 72: "bossname_matriarch.png";
74
- readonly 73: "bossname_polycephalus2.png";
75
- readonly 74: "bossname_reapcreep.png";
76
- readonly 75: "bossname_beelzeblub.png";
77
- readonly 76: "bossname_wormwood.png";
78
- readonly 77: "bossname_rainmaker.png";
79
- readonly 78: "bossname_visage.png";
80
- readonly 79: "bossname_siren.png";
81
- readonly 80: "bossname_tufftwins.png";
82
- readonly 81: "bossname_heretic.png";
83
- readonly 82: "bossname_hornfel.png";
84
- readonly 83: "bossname_gideon.png";
85
- readonly 84: "bossname_babyplum.png";
86
- readonly 85: "bossname_scourge.png";
87
- readonly 86: "bossname_chimera.png";
88
- readonly 87: "bossname_rotgut.png";
89
- readonly 88: "bossname_mother.png";
90
- readonly 89: "bossname_45.0_mom.png";
91
- readonly 90: "bossname_78.0_momsheart.png";
92
- readonly 91: "bossname_minmin.png";
93
- readonly 92: "bossname_clog.png";
94
- readonly 93: "bossname_singe.png";
95
- readonly 94: "bossname_bumbino.png";
96
- readonly 95: "bossname_colostomia.png";
97
- readonly 96: "bossname_shell.png";
98
- readonly 97: "bossname_turdlet.png";
99
- readonly 98: "bossname_raglich.png";
100
- readonly 99: "bossname_dogma.png";
101
- readonly 100: "bossname_dogma.png";
102
- readonly 101: "bossname_hornyboys.png";
103
- readonly 102: "bossname_clutch.png";
6
+ readonly 1: "BossName_20.0_Monstro.png";
7
+ readonly 2: "BossName_19.0_LarryJr.png";
8
+ readonly 3: "BossName_28.0_Chub.png";
9
+ readonly 4: "BossName_36.0_Gurdy.png";
10
+ readonly 5: "BossName_43.0_Monstro2.png";
11
+ readonly 6: "BossName_45.0_Mom.png";
12
+ readonly 7: "BossName_62.1_Scolex.png";
13
+ readonly 8: "BossName_78.0_MomsHeart.png";
14
+ readonly 9: "BossName_63.0_Famine.png";
15
+ readonly 10: "BossName_64.0_Pestilence.png";
16
+ readonly 11: "BossName_65.0_War.png";
17
+ readonly 12: "BossName_66.0_Death.png";
18
+ readonly 13: "BossName_67.0_DukeOfFlies.png";
19
+ readonly 14: "BossName_68.0_Peep.png";
20
+ readonly 15: "BossName_69.0_Loki.png";
21
+ readonly 16: "BossName_74.0_Blastocyst.png";
22
+ readonly 17: "BossName_79.0_Gemini.png";
23
+ readonly 18: "BossName_71.0_Fistula.png";
24
+ readonly 19: "BossName_43.1_Gish.png";
25
+ readonly 20: "BossName_79.1_Steven.png";
26
+ readonly 21: "BossName_28.1_CHAD.png";
27
+ readonly 22: "BossName_82.0_HeadlessHorseman.png";
28
+ readonly 23: "BossName_81.0_TheFallen.png";
29
+ readonly 24: "BossName_84.0_Satan.png";
30
+ readonly 25: "BossName_78.1_ItLives.png";
31
+ readonly 26: "BossName_19.1_TheHollow.png";
32
+ readonly 27: "BossName_28.2_CarrionQueen.png";
33
+ readonly 28: "BossName_99.0_GurdyJr.png";
34
+ readonly 29: "BossName_67.1_TheHusk.png";
35
+ readonly 30: "BossName_68.1_Bloat.png";
36
+ readonly 31: "BossName_69.1_Lokii.png";
37
+ readonly 32: "BossName_79.2_BlightedOvum.png";
38
+ readonly 33: "BossName_71.1_Teratoma.png";
39
+ readonly 34: "BossName_100.0_Widow.png";
40
+ readonly 35: "BossName_97.0_MaskOfInfamy.png";
41
+ readonly 36: "BossName_100.1_TheWretched.png";
42
+ readonly 37: "BossName_62.0_Pin.png";
43
+ readonly 38: "BossName_65.1_Conquest.png";
44
+ readonly 39: "PlayerName_01_Isaac.png";
45
+ readonly 40: "BossName_102.1_BlueBaby.png";
46
+ readonly 41: "BossName_101.0_DaddyLongLegs.png";
47
+ readonly 42: "BossName_101.1_Triachnid.png";
48
+ readonly 43: "BossName_260.0_TheHaunt.png";
49
+ readonly 44: "BossName_261.0_Dingle.png";
50
+ readonly 45: "Portrait_262.0_MegaMaw.png";
51
+ readonly 46: "BossName_263.0_MegaMaw2.png";
52
+ readonly 47: "BossName_264.0_MegaFatty.png";
53
+ readonly 48: "BossName_265.0_Fatty2.png";
54
+ readonly 49: "BossName_266.0_MamaGurdy.png";
55
+ readonly 50: "BossName_267.0_DarkOne.png";
56
+ readonly 51: "BossName_268.0_DarkOne2.png";
57
+ readonly 52: "BossName_269.0_Polycephalus.png";
58
+ readonly 53: "BossName_270.0_MegaFred.png";
59
+ readonly 54: "BossName_273.0_TheLamb.png";
60
+ readonly 55: "BossName_274.0_MegaSatan.png";
61
+ readonly 56: "BossName_276.0_Gurglings.png";
62
+ readonly 57: "BossName_401.0_TheStain.png";
63
+ readonly 58: "BossName_402.0_Brownie.png";
64
+ readonly 59: "BossName_403.0_TheForsaken.png";
65
+ readonly 60: "BossName_404.0_LittleHorn.png";
66
+ readonly 61: "BossName_405.0_RagMan.png";
67
+ readonly 62: "BossName_406.0_UltraGreed.png";
68
+ readonly 63: "BossName_407.0_Hush.png";
69
+ readonly 64: "BossName_Dangle.png";
70
+ readonly 65: "BossName_Turdlings.png";
71
+ readonly 66: "BossName_TheFrail.png";
72
+ readonly 67: "BossName_RagMega.png";
73
+ readonly 68: "BossName_SisterssVis.png";
74
+ readonly 69: "BossName_BigHorn.png";
75
+ readonly 70: "BossName_Delirium.png";
76
+ readonly 71: "BossName_406.0_UltraGreed.png";
77
+ readonly 72: "BossName_Matriarch.png";
78
+ readonly 73: "BossName_Polycephalus2.png";
79
+ readonly 74: "BossName_ReapCreep.png";
80
+ readonly 75: "BossName_Beelzeblub.png";
81
+ readonly 76: "BossName_Wormwood.png";
82
+ readonly 77: "BossName_Rainmaker.png";
83
+ readonly 78: "BossName_Visage.png";
84
+ readonly 79: "BossName_Siren.png";
85
+ readonly 80: "BossName_TuffTwins.png";
86
+ readonly 81: "BossName_Heretic.png";
87
+ readonly 82: "BossName_Hornfel.png";
88
+ readonly 83: "BossName_Gideon.png";
89
+ readonly 84: "BossName_BabyPlum.png";
90
+ readonly 85: "BossName_Scourge.png";
91
+ readonly 86: "BossName_Chimera.png";
92
+ readonly 87: "BossName_Rotgut.png";
93
+ readonly 88: "BossName_Mother.png";
94
+ readonly 89: "BossName_45.0_Mom.png";
95
+ readonly 90: "BossName_78.0_MomsHeart.png";
96
+ readonly 91: "BossName_MinMin.png";
97
+ readonly 92: "BossName_Clog.png";
98
+ readonly 93: "BossName_Singe.png";
99
+ readonly 94: "BossName_Bumbino.png";
100
+ readonly 95: "BossName_Colostomia.png";
101
+ readonly 96: "BossName_Shell.png";
102
+ readonly 97: "BossName_Turdlet.png";
103
+ readonly 98: "BossName_Raglich.png";
104
+ readonly 99: "BossName_Dogma.png";
105
+ readonly 100: "BossName_TheBeast.png";
106
+ readonly 101: "BossName_HornyBoys.png";
107
+ readonly 102: "BossName_Clutch.png";
104
108
  };
105
109
  //# sourceMappingURL=bossNamePNGFileNames.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bossNamePNGFileNames.d.ts","sourceRoot":"","sources":["../../../src/objects/bossNamePNGFileNames.ts"],"names":[],"mappings":"AAIA,0DAA0D;AAC1D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GM,CAAC"}
1
+ {"version":3,"file":"bossNamePNGFileNames.d.ts","sourceRoot":"","sources":["../../../src/objects/bossNamePNGFileNames.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8GM,CAAC"}