isaacscript-common 47.0.0 → 47.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1593,6 +1593,13 @@ export declare function closeDoorFast(door: GridEntityDoor): void;
1593
1593
  /** This is the initial value of the `EntityPickup.Wait` field after a collectible is spawned. */
1594
1594
  export declare const COLLECTIBLE_INITIAL_WAIT = 20;
1595
1595
 
1596
+ /**
1597
+ * Maps collectible names to the values of the `CollectibleType` enum.
1598
+ *
1599
+ * For a mapping of `CollectibleType` to name, see `COLLECTIBLE_TYPE_TO_NAME_MAP`.
1600
+ */
1601
+ export declare const COLLECTIBLE_NAME_TO_TYPE_MAP: ReadonlyMap<string, CollectibleType>;
1602
+
1596
1603
  /** Helper function to check in the item config if a given collectible has a given cache flag. */
1597
1604
  export declare function collectibleHasCacheFlag(collectibleOrCollectibleType: EntityPickup | CollectibleType, cacheFlag: CacheFlag): boolean;
1598
1605
 
@@ -4804,8 +4811,10 @@ export declare function getAzazelBrimstoneDistance(playerOrTearHeight: EntityPla
4804
4811
  export declare function getBatteries(batterySubType?: BatterySubType | -1): EntityPickupBattery[];
4805
4812
 
4806
4813
  /**
4807
- * Helper function to get a battery name from a `BatterySubType`, as listed in the "entities2.xml"
4808
- * file.
4814
+ * Helper function to get the name of a battery, as listed in the "entities2.xml" file. Returns
4815
+ * "Unknown" if the provided battery sub-type is not valid.
4816
+ *
4817
+ * This function only works for vanilla battery types.
4809
4818
  *
4810
4819
  * For example, `getBatteryName(BatterySubType.MICRO)` would return "Micro Battery".
4811
4820
  */
@@ -4820,7 +4829,10 @@ export declare function getBatteryName(batterySubType: BatterySubType): string;
4820
4829
  export declare function getBlueWombDoor(): GridEntityDoor | undefined;
4821
4830
 
4822
4831
  /**
4823
- * Helper function to get a bomb name from a `BombSubType`, as listed in the "entities2.xml" file.
4832
+ * Helper function to get the name of a bomb, as listed in the "entities2.xml" file. Returns
4833
+ * "Unknown" if the provided bomb sub-type is not valid.
4834
+ *
4835
+ * This function only works for vanilla bomb types.
4824
4836
  *
4825
4837
  * For example, `getBombName(BombSubType.DOUBLE_PACK)` would return "Double Bomb".
4826
4838
  */
@@ -4879,6 +4891,14 @@ export declare function getBooleansFromTable(luaMap: LuaMap<string, unknown>, ob
4879
4891
  */
4880
4892
  export declare function getBosses(entityType?: EntityType, variant?: int, subType?: int, ignoreFriendly?: boolean): EntityNPC[];
4881
4893
 
4894
+ /**
4895
+ * Helper function to get the door that leads to the Boss Rush. (In vanilla, the door will only
4896
+ * appear in the Boss Room of the sixth floor.)
4897
+ *
4898
+ * Returns undefined if the room has no Boss Rush doors.
4899
+ */
4900
+ export declare function getBossRushDoor(): GridEntityDoor | undefined;
4901
+
4882
4902
  /**
4883
4903
  * Helper function to get the set of vanilla bosses for a particular stage and stage type
4884
4904
  * combination.
@@ -4897,7 +4917,10 @@ export declare function getBossSet(stage: int, stageType: StageType): ReadonlySe
4897
4917
  export declare function getCardDescription(cardType: CardType): string;
4898
4918
 
4899
4919
  /**
4900
- * Helper function to get a card name from a `CardType`.
4920
+ * Helper function to get the name of a card. Returns "Unknown" if the provided card type is not
4921
+ * valid.
4922
+ *
4923
+ * This function works for both vanilla and modded trinkets.
4901
4924
  *
4902
4925
  * For example, `getCardName(Card.FOOL)` would return "0 - The Fool".
4903
4926
  */
@@ -4967,8 +4990,10 @@ export declare function getCharacterStartingTrinketType(character: PlayerType):
4967
4990
  export declare function getChargesAwayFromMax(player: EntityPlayer, activeSlot?: ActiveSlot): int;
4968
4991
 
4969
4992
  /**
4970
- * Helper function to get a chest name from a `PickupVariant`, as listed in the "entities2.xml"
4971
- * file. Returns "Unknown" if the pickup variant was not a chest.
4993
+ * Helper function to get the name of a chest, as listed in the "entities2.xml" file. Returns
4994
+ * "Unknown" if the pickup variant was not a chest.
4995
+ *
4996
+ * This function only works for vanilla chest types.
4972
4997
  *
4973
4998
  * For example, `getChestName(PickupVariant.SPIKED_CHEST)` would return "Spiked Chest".
4974
4999
  */
@@ -5024,7 +5049,10 @@ export declare function getClosestPlayer(position: Vector): EntityPlayer;
5024
5049
  export declare function getClosestVectorTo(referenceVector: Vector, vectors: Vector[]): Vector | undefined;
5025
5050
 
5026
5051
  /**
5027
- * Helper function to get a coin name from a `CoinSubType`, as listed in the "entities2.xml" file.
5052
+ * Helper function to get the name of a coin, as listed in the "entities2.xml" file. Returns
5053
+ * "Unknown" if the provided coin sub-type is not valid.
5054
+ *
5055
+ * This function only works for vanilla chest types.
5028
5056
  *
5029
5057
  * For example, `getCoinName(CoinSubType.DOUBLE_PACK)` would return "Double Penny".
5030
5058
  */
@@ -5104,9 +5132,9 @@ export declare function getCollectibleMaxCharges(collectibleOrCollectibleType: E
5104
5132
  * Helper function to get the name of a collectible. Returns "Unknown" if the provided collectible
5105
5133
  * type is not valid.
5106
5134
  *
5107
- * For example, `getCollectibleName(CollectibleType.SAD_ONION)` would return "Sad Onion".
5108
- *
5109
5135
  * This function works for both vanilla and modded collectibles.
5136
+ *
5137
+ * For example, `getCollectibleName(CollectibleType.SAD_ONION)` would return "Sad Onion".
5110
5138
  */
5111
5139
  export declare function getCollectibleName(collectibleOrCollectibleType: EntityPickup | CollectibleType): string;
5112
5140
 
@@ -5620,7 +5648,10 @@ export declare function getGridIndexDelta(roomShape: RoomShape, doorSlot: DoorSl
5620
5648
  export declare function getGridIndexesBetween(gridIndex1: int, gridIndex2: int, roomShape: RoomShape): int[];
5621
5649
 
5622
5650
  /**
5623
- * Helper function to get a heart name from a `HeartSubType`, as listed in the "entities2.xml" file.
5651
+ * Helper function to get the name of a heart, as listed in the "entities2.xml" file. Returns
5652
+ * "Unknown" if the provided heart sub-type is not valid.
5653
+ *
5654
+ * This function only works for vanilla heart types.
5624
5655
  *
5625
5656
  * For example, `getHeartName(HeartSubType.ETERNAL)` would return "Heart (eternal)".
5626
5657
  */
@@ -5742,7 +5773,10 @@ export declare function getJSONRoomsOfSubType(jsonRooms: JSONRoom[] | readonly J
5742
5773
  export declare function getKBitOfN(k: int, n: int): int;
5743
5774
 
5744
5775
  /**
5745
- * Helper function to get a key name from a `KeySubType`, as listed in the "entities2.xml" file.
5776
+ * Helper function to get the name of a key, as listed in the "entities2.xml" file. Returns
5777
+ * "Unknown" if the provided key sub-type is not valid.
5778
+ *
5779
+ * This function only works for vanilla key types.
5746
5780
  *
5747
5781
  * For example, `getKeyName(KeySubType.DOUBLE_PACK)` would return "Key Ring".
5748
5782
  */
@@ -6198,7 +6232,10 @@ export declare function getPillColorFromEffect(pillEffect: PillEffect): PillColo
6198
6232
  export declare function getPillEffectClass(pillEffect: PillEffect): ItemConfigPillEffectClass;
6199
6233
 
6200
6234
  /**
6201
- * Helper function to get a pill effect name from a `PillEffect`.
6235
+ * Helper function to get a pill effect name from a `PillEffect`. Returns "Unknown" if the provided
6236
+ * pill effect is not valid.
6237
+ *
6238
+ * This function works for both vanilla and modded pill effects.
6202
6239
  *
6203
6240
  * For example, `getPillEffectName(PillEffect.BAD_GAS)` would return "Bad Gas".
6204
6241
  */
@@ -7229,7 +7266,10 @@ export declare function getRoomVariant(roomGridIndex?: int): int | undefined;
7229
7266
  export declare function getRoomVisitedCount(roomGridIndex?: int): int;
7230
7267
 
7231
7268
  /**
7232
- * Helper function to get a sack name from a `SackSubType`, as listed in the "entities2.xml" file.
7269
+ * Helper function to get the name of a sack, as listed in the "entities2.xml" file. Returns
7270
+ * "Unknown" if the provided sack sub-type is not valid.
7271
+ *
7272
+ * This function only works for vanilla sack types.
7233
7273
  *
7234
7274
  * For example, `getSackName(SackSubType.NORMAL)` would return "Grab Bag".
7235
7275
  */
@@ -7543,9 +7583,9 @@ export declare function getTrinketGfxFilename(trinketType: TrinketType): string;
7543
7583
  * Helper function to get the name of a trinket. Returns "Unknown" if the provided trinket type is
7544
7584
  * not valid.
7545
7585
  *
7546
- * For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
7547
- *
7548
7586
  * This function works for both vanilla and modded trinkets.
7587
+ *
7588
+ * For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
7549
7589
  */
7550
7590
  export declare function getTrinketName(trinketType: TrinketType): string;
7551
7591
 
@@ -8349,6 +8389,12 @@ export declare function isBoolean(variable: unknown): variable is boolean;
8349
8389
  */
8350
8390
  export declare function isBossRoomOf(roomData: RoomConfig, bossID: BossID): boolean;
8351
8391
 
8392
+ /**
8393
+ * Helper function to check if the provided door is the one that leads to the Boss Rush room. (In
8394
+ * vanilla, the door will only appear in the Boss Room of the sixth floor.)
8395
+ */
8396
+ export declare function isBossRushDoor(door: GridEntityDoor): boolean;
8397
+
8352
8398
  /**
8353
8399
  * Returns true for cards that have the following card type:
8354
8400
  * - CardType.TAROT
@@ -17575,6 +17621,13 @@ export declare function trimPrefix(string: string, prefix: string): string;
17575
17621
  /** Helper function to trim a suffix from a string, if it exists. Returns the trimmed string. */
17576
17622
  export declare function trimSuffix(string: string, prefix: string): string;
17577
17623
 
17624
+ /**
17625
+ * Maps trinket names to the values of the `TrinketType` enum.
17626
+ *
17627
+ * For a mapping of `TrinketType` to name, see `TRINKET_TYPE_TO_NAME_MAP`.
17628
+ */
17629
+ export declare const TRINKET_NAME_TO_TYPE_MAP: ReadonlyMap<string, TrinketType>;
17630
+
17578
17631
  /** Helper function to check in the item config if a given trinket has a given cache flag. */
17579
17632
  export declare function trinketHasCacheFlag(trinketType: TrinketType, cacheFlag: CacheFlag): boolean;
17580
17633
 
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 47.0.0
3
+ isaacscript-common 47.2.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -20476,23 +20476,26 @@ function ____exports.getDoors(self, ...)
20476
20476
  do
20477
20477
  local door = room:GetDoor(doorSlot)
20478
20478
  if door == nil then
20479
- goto __continue25
20479
+ goto __continue27
20480
20480
  end
20481
20481
  local gridEntityType = door:GetType()
20482
20482
  if gridEntityType ~= GridEntityType.DOOR then
20483
- goto __continue25
20483
+ goto __continue27
20484
20484
  end
20485
20485
  if roomTypesSet.size == 0 or roomTypesSet:has(door.TargetRoomType) then
20486
20486
  doors[#doors + 1] = door
20487
20487
  end
20488
20488
  end
20489
- ::__continue25::
20489
+ ::__continue27::
20490
20490
  end
20491
20491
  return doors
20492
20492
  end
20493
20493
  function ____exports.isBlueWombDoor(self, door)
20494
20494
  return door.TargetRoomIndex == asNumber(nil, GridRoom.BLUE_WOMB)
20495
20495
  end
20496
+ function ____exports.isBossRushDoor(self, door)
20497
+ return door.TargetRoomIndex == asNumber(nil, GridRoom.BOSS_RUSH)
20498
+ end
20496
20499
  function ____exports.isMegaSatanDoor(self, door)
20497
20500
  return door.TargetRoomIndex == asNumber(nil, GridRoom.MEGA_SATAN)
20498
20501
  end
@@ -20569,6 +20572,13 @@ function ____exports.getBlueWombDoor(self)
20569
20572
  function(____, door) return ____exports.isBlueWombDoor(nil, door) end
20570
20573
  )
20571
20574
  end
20575
+ function ____exports.getBossRushDoor(self)
20576
+ local doors = ____exports.getDoors(nil)
20577
+ return __TS__ArrayFind(
20578
+ doors,
20579
+ function(____, door) return ____exports.isBossRushDoor(nil, door) end
20580
+ )
20581
+ end
20572
20582
  function ____exports.getDevilRoomDoor(self)
20573
20583
  local devilRoomDoors = ____exports.getDoors(nil, RoomType.DEVIL)
20574
20584
  local ____temp_1
@@ -55879,6 +55889,14 @@ do
55879
55889
  end
55880
55890
  end
55881
55891
  end
55892
+ do
55893
+ local ____export = require("src.maps.collectibleNameToTypeMap")
55894
+ for ____exportKey, ____exportValue in pairs(____export) do
55895
+ if ____exportKey ~= "default" then
55896
+ ____exports[____exportKey] = ____exportValue
55897
+ end
55898
+ end
55899
+ end
55882
55900
  do
55883
55901
  local ____export = require("src.maps.pillNameToEffectMap")
55884
55902
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -55903,6 +55921,14 @@ do
55903
55921
  end
55904
55922
  end
55905
55923
  end
55924
+ do
55925
+ local ____export = require("src.maps.trinketNameToTypeMap")
55926
+ for ____exportKey, ____exportValue in pairs(____export) do
55927
+ if ____exportKey ~= "default" then
55928
+ ____exports[____exportKey] = ____exportValue
55929
+ end
55930
+ end
55931
+ end
55906
55932
  do
55907
55933
  local ____export = require("src.objects.colors")
55908
55934
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -57027,6 +57053,14 @@ do
57027
57053
  end
57028
57054
  end
57029
57055
  end
57056
+ do
57057
+ local ____export = require("src.maps.collectibleNameToTypeMap")
57058
+ for ____exportKey, ____exportValue in pairs(____export) do
57059
+ if ____exportKey ~= "default" then
57060
+ ____exports[____exportKey] = ____exportValue
57061
+ end
57062
+ end
57063
+ end
57030
57064
  do
57031
57065
  local ____export = require("src.maps.pillNameToEffectMap")
57032
57066
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -57051,6 +57085,14 @@ do
57051
57085
  end
57052
57086
  end
57053
57087
  end
57088
+ do
57089
+ local ____export = require("src.maps.trinketNameToTypeMap")
57090
+ for ____exportKey, ____exportValue in pairs(____export) do
57091
+ if ____exportKey ~= "default" then
57092
+ ____exports[____exportKey] = ____exportValue
57093
+ end
57094
+ end
57095
+ end
57054
57096
  do
57055
57097
  local ____export = require("src.objects.colors")
57056
57098
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -7,7 +7,10 @@ import { ItemConfigCardType } from "isaac-typescript-definitions";
7
7
  */
8
8
  export declare function getCardDescription(cardType: CardType): string;
9
9
  /**
10
- * Helper function to get a card name from a `CardType`.
10
+ * Helper function to get the name of a card. Returns "Unknown" if the provided card type is not
11
+ * valid.
12
+ *
13
+ * This function works for both vanilla and modded trinkets.
11
14
  *
12
15
  * For example, `getCardName(Card.FOOL)` would return "0 - The Fool".
13
16
  */
@@ -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,k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gB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE7D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAG1E"}
@@ -34,7 +34,10 @@ function ____exports.getCardDescription(self, cardType)
34
34
  end
35
35
  return DEFAULT_CARD_DESCRIPTION
36
36
  end
37
- --- Helper function to get a card name from a `CardType`.
37
+ --- Helper function to get the name of a card. Returns "Unknown" if the provided card type is not
38
+ -- valid.
39
+ --
40
+ -- This function works for both vanilla and modded trinkets.
38
41
  --
39
42
  -- For example, `getCardName(Card.FOOL)` would return "0 - The Fool".
40
43
  function ____exports.getCardName(self, cardType)
@@ -57,9 +57,9 @@ export declare function getCollectibleMaxCharges(collectibleOrCollectibleType: E
57
57
  * Helper function to get the name of a collectible. Returns "Unknown" if the provided collectible
58
58
  * type is not valid.
59
59
  *
60
- * For example, `getCollectibleName(CollectibleType.SAD_ONION)` would return "Sad Onion".
61
- *
62
60
  * This function works for both vanilla and modded collectibles.
61
+ *
62
+ * For example, `getCollectibleName(CollectibleType.SAD_ONION)` would return "Sad Onion".
63
63
  */
64
64
  export declare function getCollectibleName(collectibleOrCollectibleType: EntityPickup | CollectibleType): string;
65
65
  /**
@@ -265,9 +265,9 @@ end
265
265
  --- Helper function to get the name of a collectible. Returns "Unknown" if the provided collectible
266
266
  -- type is not valid.
267
267
  --
268
- -- For example, `getCollectibleName(CollectibleType.SAD_ONION)` would return "Sad Onion".
269
- --
270
268
  -- This function works for both vanilla and modded collectibles.
269
+ --
270
+ -- For example, `getCollectibleName(CollectibleType.SAD_ONION)` would return "Sad Onion".
271
271
  function ____exports.getCollectibleName(self, collectibleOrCollectibleType)
272
272
  local collectibleType = getCollectibleTypeFromArg(nil, collectibleOrCollectibleType, "getCollectibleName")
273
273
  local collectibleName = COLLECTIBLE_TYPE_TO_NAME_MAP:get(collectibleType)
@@ -23,6 +23,13 @@ export declare function getAngelRoomDoor(): GridEntityDoor | undefined;
23
23
  * Returns undefined if the room has no Blue Womb doors.
24
24
  */
25
25
  export declare function getBlueWombDoor(): GridEntityDoor | undefined;
26
+ /**
27
+ * Helper function to get the door that leads to the Boss Rush. (In vanilla, the door will only
28
+ * appear in the Boss Room of the sixth floor.)
29
+ *
30
+ * Returns undefined if the room has no Boss Rush doors.
31
+ */
32
+ export declare function getBossRushDoor(): GridEntityDoor | undefined;
26
33
  export declare function getDevilRoomDoor(): GridEntityDoor | undefined;
27
34
  /**
28
35
  * If there is both a Devil Room and an Angel Room door, this function will return door with the
@@ -128,6 +135,11 @@ export declare function isAngelRoomDoor(door: GridEntityDoor): boolean;
128
135
  * Room.)
129
136
  */
130
137
  export declare function isBlueWombDoor(door: GridEntityDoor): boolean;
138
+ /**
139
+ * Helper function to check if the provided door is the one that leads to the Boss Rush room. (In
140
+ * vanilla, the door will only appear in the Boss Room of the sixth floor.)
141
+ */
142
+ export declare function isBossRushDoor(door: GridEntityDoor): boolean;
131
143
  export declare function isDevilRoomDoor(door: GridEntityDoor): boolean;
132
144
  /** Helper function to see if a door slot could exist for a given room shape. */
133
145
  export declare function isDoorSlotInRoomShape(doorSlot: DoorSlot, roomShape: RoomShape): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"doors.d.ts","sourceRoot":"","sources":["../../../src/functions/doors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,SAAS,EACV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,QAAQ,EAKR,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAuBtC,wBAAgB,aAAa,IAAI,IAAI,CAIpC;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAKxD;AAED,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,YAAY,GAAG,QAAQ,CAG3E;AAED,wBAAgB,wBAAwB,CACtC,aAAa,EAAE,QAAQ,CAAC,Y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AAY,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAKvD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,CAK5D;AAED,+CAA+C;AAC/C,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,CAGrD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,KAAK,EAAE,cAAc,EAAE,GAAG,IAAI,CAI5D"}
@@ -83,17 +83,17 @@ function ____exports.getDoors(self, ...)
83
83
  do
84
84
  local door = room:GetDoor(doorSlot)
85
85
  if door == nil then
86
- goto __continue25
86
+ goto __continue27
87
87
  end
88
88
  local gridEntityType = door:GetType()
89
89
  if gridEntityType ~= GridEntityType.DOOR then
90
- goto __continue25
90
+ goto __continue27
91
91
  end
92
92
  if roomTypesSet.size == 0 or roomTypesSet:has(door.TargetRoomType) then
93
93
  doors[#doors + 1] = door
94
94
  end
95
95
  end
96
- ::__continue25::
96
+ ::__continue27::
97
97
  end
98
98
  return doors
99
99
  end
@@ -103,6 +103,11 @@ end
103
103
  function ____exports.isBlueWombDoor(self, door)
104
104
  return door.TargetRoomIndex == asNumber(nil, GridRoom.BLUE_WOMB)
105
105
  end
106
+ --- Helper function to check if the provided door is the one that leads to the Boss Rush room. (In
107
+ -- vanilla, the door will only appear in the Boss Room of the sixth floor.)
108
+ function ____exports.isBossRushDoor(self, door)
109
+ return door.TargetRoomIndex == asNumber(nil, GridRoom.BOSS_RUSH)
110
+ end
106
111
  --- Helper function to check if the provided door is the one that leads to the Mega Satan Boss Room.
107
112
  -- (In vanilla, the door will only appear in the starting room of The Chest / Dark Room.)
108
113
  function ____exports.isMegaSatanDoor(self, door)
@@ -203,6 +208,17 @@ function ____exports.getBlueWombDoor(self)
203
208
  function(____, door) return ____exports.isBlueWombDoor(nil, door) end
204
209
  )
205
210
  end
211
+ --- Helper function to get the door that leads to the Boss Rush. (In vanilla, the door will only
212
+ -- appear in the Boss Room of the sixth floor.)
213
+ --
214
+ -- Returns undefined if the room has no Boss Rush doors.
215
+ function ____exports.getBossRushDoor(self)
216
+ local doors = ____exports.getDoors(nil)
217
+ return __TS__ArrayFind(
218
+ doors,
219
+ function(____, door) return ____exports.isBossRushDoor(nil, door) end
220
+ )
221
+ end
206
222
  function ____exports.getDevilRoomDoor(self)
207
223
  local devilRoomDoors = ____exports.getDoors(nil, RoomType.DEVIL)
208
224
  local ____temp_1
@@ -1,26 +1,36 @@
1
1
  import type { BatterySubType, BombSubType, CoinSubType, HeartSubType, KeySubType, PickupVariant, SackSubType } from "isaac-typescript-definitions";
2
2
  /**
3
- * Helper function to get a battery name from a `BatterySubType`, as listed in the "entities2.xml"
4
- * file.
3
+ * Helper function to get the name of a battery, as listed in the "entities2.xml" file. Returns
4
+ * "Unknown" if the provided battery sub-type is not valid.
5
+ *
6
+ * This function only works for vanilla battery types.
5
7
  *
6
8
  * For example, `getBatteryName(BatterySubType.MICRO)` would return "Micro Battery".
7
9
  */
8
10
  export declare function getBatteryName(batterySubType: BatterySubType): string;
9
11
  /**
10
- * Helper function to get a bomb name from a `BombSubType`, as listed in the "entities2.xml" file.
12
+ * Helper function to get the name of a bomb, as listed in the "entities2.xml" file. Returns
13
+ * "Unknown" if the provided bomb sub-type is not valid.
14
+ *
15
+ * This function only works for vanilla bomb types.
11
16
  *
12
17
  * For example, `getBombName(BombSubType.DOUBLE_PACK)` would return "Double Bomb".
13
18
  */
14
19
  export declare function getBombName(bombSubType: BombSubType): string;
15
20
  /**
16
- * Helper function to get a chest name from a `PickupVariant`, as listed in the "entities2.xml"
17
- * file. Returns "Unknown" if the pickup variant was not a chest.
21
+ * Helper function to get the name of a chest, as listed in the "entities2.xml" file. Returns
22
+ * "Unknown" if the pickup variant was not a chest.
23
+ *
24
+ * This function only works for vanilla chest types.
18
25
  *
19
26
  * For example, `getChestName(PickupVariant.SPIKED_CHEST)` would return "Spiked Chest".
20
27
  */
21
28
  export declare function getChestName(pickupVariant: PickupVariant): string;
22
29
  /**
23
- * Helper function to get a coin name from a `CoinSubType`, as listed in the "entities2.xml" file.
30
+ * Helper function to get the name of a coin, as listed in the "entities2.xml" file. Returns
31
+ * "Unknown" if the provided coin sub-type is not valid.
32
+ *
33
+ * This function only works for vanilla chest types.
24
34
  *
25
35
  * For example, `getCoinName(CoinSubType.DOUBLE_PACK)` would return "Double Penny".
26
36
  */
@@ -31,13 +41,19 @@ export declare function getCoinName(coinSubType: CoinSubType): string;
31
41
  */
32
42
  export declare function getCoinValue(coinSubType: CoinSubType): int;
33
43
  /**
34
- * Helper function to get a heart name from a `HeartSubType`, as listed in the "entities2.xml" file.
44
+ * Helper function to get the name of a heart, as listed in the "entities2.xml" file. Returns
45
+ * "Unknown" if the provided heart sub-type is not valid.
46
+ *
47
+ * This function only works for vanilla heart types.
35
48
  *
36
49
  * For example, `getHeartName(HeartSubType.ETERNAL)` would return "Heart (eternal)".
37
50
  */
38
51
  export declare function getHeartName(heartSubType: HeartSubType): string;
39
52
  /**
40
- * Helper function to get a key name from a `KeySubType`, as listed in the "entities2.xml" file.
53
+ * Helper function to get the name of a key, as listed in the "entities2.xml" file. Returns
54
+ * "Unknown" if the provided key sub-type is not valid.
55
+ *
56
+ * This function only works for vanilla key types.
41
57
  *
42
58
  * For example, `getKeyName(KeySubType.DOUBLE_PACK)` would return "Key Ring".
43
59
  */
@@ -45,7 +61,10 @@ export declare function getKeyName(keySubType: KeySubType): string;
45
61
  /** Helper function to get all of the red heart pickup entities in the room. */
46
62
  export declare function getRedHearts(): EntityPickupHeart[];
47
63
  /**
48
- * Helper function to get a sack name from a `SackSubType`, as listed in the "entities2.xml" file.
64
+ * Helper function to get the name of a sack, as listed in the "entities2.xml" file. Returns
65
+ * "Unknown" if the provided sack sub-type is not valid.
66
+ *
67
+ * This function only works for vanilla sack types.
49
68
  *
50
69
  * For example, `getSackName(SackSubType.NORMAL)` would return "Grab Bag".
51
70
  */
@@ -1 +1 @@
1
- {"version":3,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,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,iBAAiB,EAAE,CAGjE"}
@@ -38,28 +38,38 @@ local getHearts = ____pickupsSpecific.getHearts
38
38
  function ____exports.isChestVariant(self, pickupVariant)
39
39
  return CHEST_PICKUP_VARIANTS_SET:has(pickupVariant)
40
40
  end
41
- --- Helper function to get a battery name from a `BatterySubType`, as listed in the "entities2.xml"
42
- -- file.
41
+ --- Helper function to get the name of a battery, as listed in the "entities2.xml" file. Returns
42
+ -- "Unknown" if the provided battery sub-type is not valid.
43
+ --
44
+ -- This function only works for vanilla battery types.
43
45
  --
44
46
  -- For example, `getBatteryName(BatterySubType.MICRO)` would return "Micro Battery".
45
47
  function ____exports.getBatteryName(self, batterySubType)
46
48
  return BATTERY_NAMES[batterySubType] or DEFAULT_BATTERY_NAME
47
49
  end
48
- --- Helper function to get a bomb name from a `BombSubType`, as listed in the "entities2.xml" file.
50
+ --- Helper function to get the name of a bomb, as listed in the "entities2.xml" file. Returns
51
+ -- "Unknown" if the provided bomb sub-type is not valid.
52
+ --
53
+ -- This function only works for vanilla bomb types.
49
54
  --
50
55
  -- For example, `getBombName(BombSubType.DOUBLE_PACK)` would return "Double Bomb".
51
56
  function ____exports.getBombName(self, bombSubType)
52
57
  return BOMB_NAMES[bombSubType] or DEFAULT_BOMB_NAME
53
58
  end
54
- --- Helper function to get a chest name from a `PickupVariant`, as listed in the "entities2.xml"
55
- -- file. Returns "Unknown" if the pickup variant was not a chest.
59
+ --- Helper function to get the name of a chest, as listed in the "entities2.xml" file. Returns
60
+ -- "Unknown" if the pickup variant was not a chest.
61
+ --
62
+ -- This function only works for vanilla chest types.
56
63
  --
57
64
  -- For example, `getChestName(PickupVariant.SPIKED_CHEST)` would return "Spiked Chest".
58
65
  function ____exports.getChestName(self, pickupVariant)
59
66
  local chestNames = CHEST_NAMES
60
67
  return chestNames[pickupVariant] or "Unknown"
61
68
  end
62
- --- Helper function to get a coin name from a `CoinSubType`, as listed in the "entities2.xml" file.
69
+ --- Helper function to get the name of a coin, as listed in the "entities2.xml" file. Returns
70
+ -- "Unknown" if the provided coin sub-type is not valid.
71
+ --
72
+ -- This function only works for vanilla chest types.
63
73
  --
64
74
  -- For example, `getCoinName(CoinSubType.DOUBLE_PACK)` would return "Double Penny".
65
75
  function ____exports.getCoinName(self, coinSubType)
@@ -71,13 +81,19 @@ function ____exports.getCoinValue(self, coinSubType)
71
81
  local value = COIN_SUB_TYPE_TO_VALUE[coinSubType]
72
82
  return value or DEFAULT_COIN_VALUE
73
83
  end
74
- --- Helper function to get a heart name from a `HeartSubType`, as listed in the "entities2.xml" file.
84
+ --- Helper function to get the name of a heart, as listed in the "entities2.xml" file. Returns
85
+ -- "Unknown" if the provided heart sub-type is not valid.
86
+ --
87
+ -- This function only works for vanilla heart types.
75
88
  --
76
89
  -- For example, `getHeartName(HeartSubType.ETERNAL)` would return "Heart (eternal)".
77
90
  function ____exports.getHeartName(self, heartSubType)
78
91
  return HEART_NAMES[heartSubType] or DEFAULT_HEART_NAME
79
92
  end
80
- --- Helper function to get a key name from a `KeySubType`, as listed in the "entities2.xml" file.
93
+ --- Helper function to get the name of a key, as listed in the "entities2.xml" file. Returns
94
+ -- "Unknown" if the provided key sub-type is not valid.
95
+ --
96
+ -- This function only works for vanilla key types.
81
97
  --
82
98
  -- For example, `getKeyName(KeySubType.DOUBLE_PACK)` would return "Key Ring".
83
99
  function ____exports.getKeyName(self, keySubType)
@@ -91,7 +107,10 @@ function ____exports.getRedHearts(self)
91
107
  function(____, heart) return RED_HEART_SUB_TYPES_SET:has(heart.SubType) end
92
108
  )
93
109
  end
94
- --- Helper function to get a sack name from a `SackSubType`, as listed in the "entities2.xml" file.
110
+ --- Helper function to get the name of a sack, as listed in the "entities2.xml" file. Returns
111
+ -- "Unknown" if the provided sack sub-type is not valid.
112
+ --
113
+ -- This function only works for vanilla sack types.
95
114
  --
96
115
  -- For example, `getSackName(SackSubType.NORMAL)` would return "Grab Bag".
97
116
  function ____exports.getSackName(self, sackSubType)
@@ -60,7 +60,10 @@ export declare function getPillColorFromEffect(pillEffect: PillEffect): PillColo
60
60
  */
61
61
  export declare function getPillEffectClass(pillEffect: PillEffect): ItemConfigPillEffectClass;
62
62
  /**
63
- * Helper function to get a pill effect name from a `PillEffect`.
63
+ * Helper function to get a pill effect name from a `PillEffect`. Returns "Unknown" if the provided
64
+ * pill effect is not valid.
65
+ *
66
+ * This function works for both vanilla and modded pill effects.
64
67
  *
65
68
  * For example, `getPillEffectName(PillEffect.BAD_GAS)` would return "Bad Gas".
66
69
  */
@@ -1 +1 @@
1
- {"version":3,"file":"pills.d.ts","sourceRoot":"","sources":["../../../src/functions/pills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACxB,UAAU,EACX,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAoCzD;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,SAAS,EAAE,CAE9C;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAGxE;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAEjE;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,IAAI,SAAS,EAAE,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAM3E;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,IAAI,SAAS,EAAE,CAEjD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAGnE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,CAWxE;AAED;;;;;;;;GAQG;AACH,wBAAgB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;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,CAWxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,UAAU,GACrB,yBAAyB,CAQ3B;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAgBhE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,GACrB,wBAAwB,CAQ1B;AAED,iGAAiG;AACjG,wBAAgB,UAAU,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAExD;AAED,sEAAsE;AACtE,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAEzD;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAElE;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAEnE"}
@@ -119,7 +119,10 @@ function ____exports.getPillEffectClass(self, pillEffect)
119
119
  local pillEffectClass = PILL_EFFECT_CLASSES[pillEffect]
120
120
  return pillEffectClass or DEFAULT_PILL_EFFECT_CLASS
121
121
  end
122
- --- Helper function to get a pill effect name from a `PillEffect`.
122
+ --- Helper function to get a pill effect name from a `PillEffect`. Returns "Unknown" if the provided
123
+ -- pill effect is not valid.
124
+ --
125
+ -- This function works for both vanilla and modded pill effects.
123
126
  --
124
127
  -- For example, `getPillEffectName(PillEffect.BAD_GAS)` would return "Bad Gas".
125
128
  function ____exports.getPillEffectName(self, pillEffect)
@@ -49,9 +49,9 @@ export declare function getTrinketGfxFilename(trinketType: TrinketType): string;
49
49
  * Helper function to get the name of a trinket. Returns "Unknown" if the provided trinket type is
50
50
  * not valid.
51
51
  *
52
- * For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
53
- *
54
52
  * This function works for both vanilla and modded trinkets.
53
+ *
54
+ * For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
55
55
  */
56
56
  export declare function getTrinketName(trinketType: TrinketType): string;
57
57
  export declare function isGoldenTrinketType(trinketType: TrinketType): boolean;
@@ -104,9 +104,9 @@ end
104
104
  --- Helper function to get the name of a trinket. Returns "Unknown" if the provided trinket type is
105
105
  -- not valid.
106
106
  --
107
- -- For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
108
- --
109
107
  -- This function works for both vanilla and modded trinkets.
108
+ --
109
+ -- For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
110
110
  function ____exports.getTrinketName(self, trinketType)
111
111
  local trinketName = TRINKET_TYPE_TO_NAME_MAP:get(trinketType)
112
112
  if trinketName ~= nil then
@@ -146,9 +146,11 @@ export * from "./interfaces/TSTLClassMetatable";
146
146
  export * from "./interfaces/TrinketSituation";
147
147
  export * from "./maps/cardNameToTypeMap";
148
148
  export * from "./maps/characterNameToTypeMap";
149
+ export * from "./maps/collectibleNameToTypeMap";
149
150
  export * from "./maps/pillNameToEffectMap";
150
151
  export * from "./maps/roomNameToTypeMap";
151
152
  export * from "./maps/transformationNameToPlayerFormMap";
153
+ export * from "./maps/trinketNameToTypeMap";
152
154
  export * from "./objects/colors";
153
155
  export * from "./objects/kColors";
154
156
  export * from "./types/AddSubtract";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;A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cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
@@ -1079,6 +1079,14 @@ do
1079
1079
  end
1080
1080
  end
1081
1081
  end
1082
+ do
1083
+ local ____export = require("src.maps.collectibleNameToTypeMap")
1084
+ for ____exportKey, ____exportValue in pairs(____export) do
1085
+ if ____exportKey ~= "default" then
1086
+ ____exports[____exportKey] = ____exportValue
1087
+ end
1088
+ end
1089
+ end
1082
1090
  do
1083
1091
  local ____export = require("src.maps.pillNameToEffectMap")
1084
1092
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -1103,6 +1111,14 @@ do
1103
1111
  end
1104
1112
  end
1105
1113
  end
1114
+ do
1115
+ local ____export = require("src.maps.trinketNameToTypeMap")
1116
+ for ____exportKey, ____exportValue in pairs(____export) do
1117
+ if ____exportKey ~= "default" then
1118
+ ____exports[____exportKey] = ____exportValue
1119
+ end
1120
+ end
1121
+ end
1106
1122
  do
1107
1123
  local ____export = require("src.objects.colors")
1108
1124
  for ____exportKey, ____exportValue in pairs(____export) do
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "47.0.0",
3
+ "version": "47.2.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -34,7 +34,10 @@ export function getCardDescription(cardType: CardType): string {
34
34
  }
35
35
 
36
36
  /**
37
- * Helper function to get a card name from a `CardType`.
37
+ * Helper function to get the name of a card. Returns "Unknown" if the provided card type is not
38
+ * valid.
39
+ *
40
+ * This function works for both vanilla and modded trinkets.
38
41
  *
39
42
  * For example, `getCardName(Card.FOOL)` would return "0 - The Fool".
40
43
  */
@@ -314,9 +314,9 @@ export function getCollectibleMaxCharges(
314
314
  * Helper function to get the name of a collectible. Returns "Unknown" if the provided collectible
315
315
  * type is not valid.
316
316
  *
317
- * For example, `getCollectibleName(CollectibleType.SAD_ONION)` would return "Sad Onion".
318
- *
319
317
  * This function works for both vanilla and modded collectibles.
318
+ *
319
+ * For example, `getCollectibleName(CollectibleType.SAD_ONION)` would return "Sad Onion".
320
320
  */
321
321
  export function getCollectibleName(
322
322
  collectibleOrCollectibleType: EntityPickup | CollectibleType,
@@ -115,6 +115,17 @@ export function getBlueWombDoor(): GridEntityDoor | undefined {
115
115
  return doors.find((door) => isBlueWombDoor(door));
116
116
  }
117
117
 
118
+ /**
119
+ * Helper function to get the door that leads to the Boss Rush. (In vanilla, the door will only
120
+ * appear in the Boss Room of the sixth floor.)
121
+ *
122
+ * Returns undefined if the room has no Boss Rush doors.
123
+ */
124
+ export function getBossRushDoor(): GridEntityDoor | undefined {
125
+ const doors = getDoors();
126
+ return doors.find((door) => isBossRushDoor(door));
127
+ }
128
+
118
129
  export function getDevilRoomDoor(): GridEntityDoor | undefined {
119
130
  const devilRoomDoors = getDoors(RoomType.DEVIL);
120
131
  return devilRoomDoors.length === 0 ? undefined : devilRoomDoors[0];
@@ -365,6 +376,14 @@ export function isBlueWombDoor(door: GridEntityDoor): boolean {
365
376
  return door.TargetRoomIndex === asNumber(GridRoom.BLUE_WOMB);
366
377
  }
367
378
 
379
+ /**
380
+ * Helper function to check if the provided door is the one that leads to the Boss Rush room. (In
381
+ * vanilla, the door will only appear in the Boss Room of the sixth floor.)
382
+ */
383
+ export function isBossRushDoor(door: GridEntityDoor): boolean {
384
+ return door.TargetRoomIndex === asNumber(GridRoom.BOSS_RUSH);
385
+ }
386
+
368
387
  export function isDevilRoomDoor(door: GridEntityDoor): boolean {
369
388
  return door.TargetRoomType === RoomType.DEVIL;
370
389
  }
@@ -25,8 +25,10 @@ import { isHeart } from "./pickupVariants";
25
25
  import { getHearts } from "./pickupsSpecific";
26
26
 
27
27
  /**
28
- * Helper function to get a battery name from a `BatterySubType`, as listed in the "entities2.xml"
29
- * file.
28
+ * Helper function to get the name of a battery, as listed in the "entities2.xml" file. Returns
29
+ * "Unknown" if the provided battery sub-type is not valid.
30
+ *
31
+ * This function only works for vanilla battery types.
30
32
  *
31
33
  * For example, `getBatteryName(BatterySubType.MICRO)` would return "Micro Battery".
32
34
  */
@@ -37,7 +39,10 @@ export function getBatteryName(batterySubType: BatterySubType): string {
37
39
  }
38
40
 
39
41
  /**
40
- * Helper function to get a bomb name from a `BombSubType`, as listed in the "entities2.xml" file.
42
+ * Helper function to get the name of a bomb, as listed in the "entities2.xml" file. Returns
43
+ * "Unknown" if the provided bomb sub-type is not valid.
44
+ *
45
+ * This function only works for vanilla bomb types.
41
46
  *
42
47
  * For example, `getBombName(BombSubType.DOUBLE_PACK)` would return "Double Bomb".
43
48
  */
@@ -48,8 +53,10 @@ export function getBombName(bombSubType: BombSubType): string {
48
53
  }
49
54
 
50
55
  /**
51
- * Helper function to get a chest name from a `PickupVariant`, as listed in the "entities2.xml"
52
- * file. Returns "Unknown" if the pickup variant was not a chest.
56
+ * Helper function to get the name of a chest, as listed in the "entities2.xml" file. Returns
57
+ * "Unknown" if the pickup variant was not a chest.
58
+ *
59
+ * This function only works for vanilla chest types.
53
60
  *
54
61
  * For example, `getChestName(PickupVariant.SPIKED_CHEST)` would return "Spiked Chest".
55
62
  */
@@ -59,7 +66,10 @@ export function getChestName(pickupVariant: PickupVariant): string {
59
66
  }
60
67
 
61
68
  /**
62
- * Helper function to get a coin name from a `CoinSubType`, as listed in the "entities2.xml" file.
69
+ * Helper function to get the name of a coin, as listed in the "entities2.xml" file. Returns
70
+ * "Unknown" if the provided coin sub-type is not valid.
71
+ *
72
+ * This function only works for vanilla chest types.
63
73
  *
64
74
  * For example, `getCoinName(CoinSubType.DOUBLE_PACK)` would return "Double Penny".
65
75
  */
@@ -81,7 +91,10 @@ export function getCoinValue(coinSubType: CoinSubType): int {
81
91
  }
82
92
 
83
93
  /**
84
- * Helper function to get a heart name from a `HeartSubType`, as listed in the "entities2.xml" file.
94
+ * Helper function to get the name of a heart, as listed in the "entities2.xml" file. Returns
95
+ * "Unknown" if the provided heart sub-type is not valid.
96
+ *
97
+ * This function only works for vanilla heart types.
85
98
  *
86
99
  * For example, `getHeartName(HeartSubType.ETERNAL)` would return "Heart (eternal)".
87
100
  */
@@ -92,7 +105,10 @@ export function getHeartName(heartSubType: HeartSubType): string {
92
105
  }
93
106
 
94
107
  /**
95
- * Helper function to get a key name from a `KeySubType`, as listed in the "entities2.xml" file.
108
+ * Helper function to get the name of a key, as listed in the "entities2.xml" file. Returns
109
+ * "Unknown" if the provided key sub-type is not valid.
110
+ *
111
+ * This function only works for vanilla key types.
96
112
  *
97
113
  * For example, `getKeyName(KeySubType.DOUBLE_PACK)` would return "Key Ring".
98
114
  */
@@ -109,7 +125,10 @@ export function getRedHearts(): EntityPickupHeart[] {
109
125
  }
110
126
 
111
127
  /**
112
- * Helper function to get a sack name from a `SackSubType`, as listed in the "entities2.xml" file.
128
+ * Helper function to get the name of a sack, as listed in the "entities2.xml" file. Returns
129
+ * "Unknown" if the provided sack sub-type is not valid.
130
+ *
131
+ * This function only works for vanilla sack types.
113
132
  *
114
133
  * For example, `getSackName(SackSubType.NORMAL)` would return "Grab Bag".
115
134
  */
@@ -149,9 +149,10 @@ export function getPillEffectClass(
149
149
  }
150
150
 
151
151
  /**
152
- * Helper function to get a pill effect name from a `PillEffect`.
152
+ * Helper function to get a pill effect name from a `PillEffect`. Returns "Unknown" if the provided
153
+ * pill effect is not valid.
153
154
  *
154
- * This function works for both vanilla and modded trinkets.
155
+ * This function works for both vanilla and modded pill effects.
155
156
  *
156
157
  * For example, `getPillEffectName(PillEffect.BAD_GAS)` would return "Bad Gas".
157
158
  */
@@ -121,9 +121,9 @@ export function getTrinketGfxFilename(trinketType: TrinketType): string {
121
121
  * Helper function to get the name of a trinket. Returns "Unknown" if the provided trinket type is
122
122
  * not valid.
123
123
  *
124
- * For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
125
- *
126
124
  * This function works for both vanilla and modded trinkets.
125
+ *
126
+ * For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
127
127
  */
128
128
  export function getTrinketName(trinketType: TrinketType): string {
129
129
  // "ItemConfigItem.Name" is bugged with vanilla items on patch v1.7.6, so we use a hard-coded map
package/src/index.ts CHANGED
@@ -146,9 +146,11 @@ export * from "./interfaces/TSTLClassMetatable";
146
146
  export * from "./interfaces/TrinketSituation";
147
147
  export * from "./maps/cardNameToTypeMap";
148
148
  export * from "./maps/characterNameToTypeMap";
149
+ export * from "./maps/collectibleNameToTypeMap";
149
150
  export * from "./maps/pillNameToEffectMap";
150
151
  export * from "./maps/roomNameToTypeMap";
151
152
  export * from "./maps/transformationNameToPlayerFormMap";
153
+ export * from "./maps/trinketNameToTypeMap";
152
154
  export * from "./objects/colors";
153
155
  export * from "./objects/kColors";
154
156
  export * from "./types/AddSubtract";