isaacscript-common 56.0.0 → 57.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/index.rollup.d.ts +36 -20
  2. package/dist/isaacscript-common.lua +340 -220
  3. package/dist/src/classes/features/callbackLogic/CustomRevive.lua +2 -2
  4. package/dist/src/core/constants.d.ts +2 -2
  5. package/dist/src/core/constants.lua +2 -2
  6. package/dist/src/functions/bosses.d.ts +5 -0
  7. package/dist/src/functions/bosses.d.ts.map +1 -1
  8. package/dist/src/functions/bosses.lua +15 -7
  9. package/dist/src/functions/external.d.ts +26 -16
  10. package/dist/src/functions/external.d.ts.map +1 -1
  11. package/dist/src/functions/external.lua +30 -22
  12. package/dist/src/objects/bossIDToEntityTypeVariant.d.ts +1 -0
  13. package/dist/src/objects/bossIDToEntityTypeVariant.d.ts.map +1 -1
  14. package/dist/src/objects/bossIDToEntityTypeVariant.lua +1 -0
  15. package/dist/src/objects/bossNamePNGFileNames.d.ts +106 -102
  16. package/dist/src/objects/bossNamePNGFileNames.d.ts.map +1 -1
  17. package/dist/src/objects/bossNamePNGFileNames.lua +104 -102
  18. package/dist/src/objects/bossNames.d.ts +111 -0
  19. package/dist/src/objects/bossNames.d.ts.map +1 -0
  20. package/dist/src/objects/bossNames.lua +112 -0
  21. package/dist/src/objects/bossPortraitPNGFileNames.d.ts +106 -102
  22. package/dist/src/objects/bossPortraitPNGFileNames.d.ts.map +1 -1
  23. package/dist/src/objects/bossPortraitPNGFileNames.lua +104 -102
  24. package/package.json +2 -2
  25. package/src/classes/features/callbackLogic/CustomRevive.ts +2 -2
  26. package/src/core/constants.ts +2 -2
  27. package/src/functions/bosses.ts +11 -0
  28. package/src/functions/collectibles.ts +1 -1
  29. package/src/functions/external.ts +37 -27
  30. package/src/objects/bossIDToEntityTypeVariant.ts +5 -1
  31. package/src/objects/bossNamePNGFileNames.ts +112 -106
  32. package/src/objects/bossNames.ts +118 -0
  33. package/src/objects/bossPortraitPNGFileNames.ts +115 -109
@@ -15,7 +15,7 @@ local ISCFeature = ____ISCFeature.ISCFeature
15
15
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
16
16
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
17
17
  local ____external = require("src.functions.external")
18
- local removeCollectibleFromItemTracker = ____external.removeCollectibleFromItemTracker
18
+ local rebirthItemTrackerRemoveCollectible = ____external.rebirthItemTrackerRemoveCollectible
19
19
  local ____log = require("src.functions.log")
20
20
  local log = ____log.log
21
21
  local logError = ____log.logError
@@ -117,7 +117,7 @@ function CustomRevive.prototype.playerIsAboutToDie(self, player)
117
117
  v.run.dyingPlayerIndex = getPlayerIndex(nil, player)
118
118
  self:logStateChanged()
119
119
  player:AddCollectible(CollectibleType.ONE_UP, 0, false)
120
- removeCollectibleFromItemTracker(nil, CollectibleType.ONE_UP)
120
+ rebirthItemTrackerRemoveCollectible(nil, CollectibleType.ONE_UP)
121
121
  local playerIndex = getPlayerIndex(nil, player)
122
122
  self.runInNFrames:runNextGameFrame(function()
123
123
  local futurePlayer = getPlayerFromIndex(nil, playerIndex)
@@ -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,8BAA8B,CAAC;AA+B/E;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC5B,UAAU,GAAE,UAAU,GAAG,CAAC,CAAM,EAChC,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,SAAS,EAAE,CAGb;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAC7B,kBAAkB,UAAO,GACxB,WAAW,CAAC,MAAM,CAAC,CAIrB;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,IAAI,MAAM,GAAG,CAAC,CAWtC;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,GACX,MAAM,GAAG,SAAS,CAGpB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,UA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AAC,CAE5B;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAExD;AAmCD,6FAA6F;AAC7F,wBAAgB,KAAK,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAE7C;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CACvB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,EACvC,SAAS,GAAE,IAAI,GAAG,GAAG,GAAG,SAAqB,EAC7C,WAAW,CAAC,EAAE,GAAG,GAChB,SAAS,CAiCX;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,SAAS,EAAE,IAAI,GAAG,GAAG,EACrB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,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
@@ -5,28 +5,38 @@
5
5
  */
6
6
  import type { CollectibleType } from "isaac-typescript-definitions";
7
7
  /**
8
- * Helper function to let the Rebirth Item Tracker know that it should write the submitted text
9
- * string to a file. This is useful for capturing text in programs like Open Broadcaster Software
10
- * (OBS).
8
+ * Helper function to let the Rebirth Item Tracker know that it should remove a collectible from its
9
+ * list.
11
10
  *
12
11
  * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
13
- * Python program located at: https://github.com/Rchardon/RebirthItemTracker
12
+ * external Python program.
13
+ *
14
+ * This function is variadic, meaning that you can pass as many collectible types as you want to
15
+ * remove.
16
+ *
17
+ * Note that calling this function is not normally necessary when removing collectibles from
18
+ * players. For example, when you remove a collectible with the `EntityPlayer.RemoveCollectible`
19
+ * method, a proper message is sent to the log file by the game the item tracker will automatically
20
+ * remove it. However, in some cases, this function can be useful:
21
+ *
22
+ * - We may be giving the player a "fake" collectible (e.g. 1-Up for the purposes of an extra life)
23
+ * and do not want the fake collectible to show up on the tracker.
24
+ * - We may be removing a starting active item. Since active items are never removed from the
25
+ * tracker, we want to tell the item tracker that the player never had a particular active item to
26
+ * begin with.
27
+ *
28
+ * @see https://github.com/Rchardon/RebirthItemTracker
14
29
  */
15
- export declare function rebirthItemTrackerWriteToFile(msg: string): void;
30
+ export declare function rebirthItemTrackerRemoveCollectible(...collectibleTypes: CollectibleType[]): void;
16
31
  /**
17
- * Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
18
- * should remove an item.
32
+ * Helper function to let the Rebirth Item Tracker know that it should write the submitted text
33
+ * string to a file. This is useful for capturing text in programs like Open Broadcaster Software
34
+ * (OBS).
19
35
  *
20
36
  * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
21
- * Python program located at: https://github.com/Rchardon/RebirthItemTracker
37
+ * external Python program.
22
38
  *
23
- * This function is useful when you need to add a "fake" collectible to a player. Note that calling
24
- * this function is not necessary when removing items from players. For example, when you remove a
25
- * collectible with the `EntityPlayer.RemoveCollectible` method, a proper message is sent to the log
26
- * the item tracker will automatically remove it.
27
- *
28
- * This function is variadic, meaning that you can pass as many collectible types as you want to
29
- * remove.
39
+ * @see https://github.com/Rchardon/RebirthItemTracker
30
40
  */
31
- export declare function removeCollectibleFromItemTracker(...collectibleTypes: CollectibleType[]): void;
41
+ export declare function rebirthItemTrackerWriteToFile(msg: string): void;
32
42
  //# sourceMappingURL=external.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/functions/external.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMpE;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI/D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gCAAgC,CAC9C,GAAG,gBAAgB,EAAE,eAAe,EAAE,GACrC,IAAI,CAUN"}
1
+ {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/functions/external.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAQpE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mCAAmC,CACjD,GAAG,gBAAgB,EAAE,eAAe,EAAE,GACrC,IAAI,CAQN;AAED;;;;;;;;;GASG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI/D"}
@@ -1,34 +1,42 @@
1
1
  local ____exports = {}
2
- local ____collectibles = require("src.functions.collectibles")
3
- local getCollectibleName = ____collectibles.getCollectibleName
2
+ local REBIRTH_ITEM_TRACKER_REMOVE_COLLECTIBLE_COMMAND = "REBIRTH_ITEM_TRACKER_REMOVE_COLLECTIBLE"
4
3
  local REBIRTH_ITEM_TRACKER_WRITE_TO_FILE_COMMAND = "REBIRTH_ITEM_TRACKER_WRITE_TO_FILE"
5
- --- Helper function to let the Rebirth Item Tracker know that it should write the submitted text
6
- -- string to a file. This is useful for capturing text in programs like Open Broadcaster Software
7
- -- (OBS).
4
+ --- Helper function to let the Rebirth Item Tracker know that it should remove a collectible from its
5
+ -- list.
8
6
  --
9
7
  -- The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
10
- -- Python program located at: https://github.com/Rchardon/RebirthItemTracker
11
- function ____exports.rebirthItemTrackerWriteToFile(self, msg)
12
- Isaac.DebugString((REBIRTH_ITEM_TRACKER_WRITE_TO_FILE_COMMAND .. " ") .. msg)
13
- end
14
- --- Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
15
- -- should remove an item.
16
- --
17
- -- The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
18
- -- Python program located at: https://github.com/Rchardon/RebirthItemTracker
19
- --
20
- -- This function is useful when you need to add a "fake" collectible to a player. Note that calling
21
- -- this function is not necessary when removing items from players. For example, when you remove a
22
- -- collectible with the `EntityPlayer.RemoveCollectible` method, a proper message is sent to the log
23
- -- the item tracker will automatically remove it.
8
+ -- external Python program.
24
9
  --
25
10
  -- This function is variadic, meaning that you can pass as many collectible types as you want to
26
11
  -- remove.
27
- function ____exports.removeCollectibleFromItemTracker(self, ...)
12
+ --
13
+ -- Note that calling this function is not normally necessary when removing collectibles from
14
+ -- players. For example, when you remove a collectible with the `EntityPlayer.RemoveCollectible`
15
+ -- method, a proper message is sent to the log file by the game the item tracker will automatically
16
+ -- remove it. However, in some cases, this function can be useful:
17
+ --
18
+ -- - We may be giving the player a "fake" collectible (e.g. 1-Up for the purposes of an extra life)
19
+ -- and do not want the fake collectible to show up on the tracker.
20
+ -- - We may be removing a starting active item. Since active items are never removed from the
21
+ -- tracker, we want to tell the item tracker that the player never had a particular active item to
22
+ -- begin with.
23
+ --
24
+ -- @see https ://github.com/Rchardon/RebirthItemTracker
25
+ function ____exports.rebirthItemTrackerRemoveCollectible(self, ...)
28
26
  local collectibleTypes = {...}
29
27
  for ____, collectibleType in ipairs(collectibleTypes) do
30
- local collectibleName = getCollectibleName(nil, collectibleType)
31
- Isaac.DebugString(((("Removing collectible " .. tostring(collectibleType)) .. " (") .. collectibleName) .. ") on player 0 (Player)")
28
+ Isaac.DebugString((REBIRTH_ITEM_TRACKER_REMOVE_COLLECTIBLE_COMMAND .. " ") .. tostring(collectibleType))
32
29
  end
33
30
  end
31
+ --- Helper function to let the Rebirth Item Tracker know that it should write the submitted text
32
+ -- string to a file. This is useful for capturing text in programs like Open Broadcaster Software
33
+ -- (OBS).
34
+ --
35
+ -- The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
36
+ -- external Python program.
37
+ --
38
+ -- @see https ://github.com/Rchardon/RebirthItemTracker
39
+ function ____exports.rebirthItemTrackerWriteToFile(self, msg)
40
+ Isaac.DebugString((REBIRTH_ITEM_TRACKER_WRITE_TO_FILE_COMMAND .. " ") .. msg)
41
+ end
34
42
  return ____exports
@@ -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"}