isaacscript-common 80.1.0 → 80.2.1

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 (66) hide show
  1. package/dist/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  2. package/dist/classes/callbacks/PostItemDischarge.lua +1 -3
  3. package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
  4. package/dist/classes/features/other/CustomPickups.lua +1 -3
  5. package/dist/classes/features/other/CustomStages.d.ts.map +1 -1
  6. package/dist/classes/features/other/CustomStages.lua +1 -3
  7. package/dist/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
  8. package/dist/classes/features/other/DeployJSONRoom.lua +4 -4
  9. package/dist/classes/features/other/ModdedElementDetection.d.ts +31 -20
  10. package/dist/classes/features/other/ModdedElementDetection.d.ts.map +1 -1
  11. package/dist/classes/features/other/ModdedElementDetection.lua +23 -49
  12. package/dist/classes/features/other/StageHistory.d.ts.map +1 -1
  13. package/dist/classes/features/other/StageHistory.lua +1 -3
  14. package/dist/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
  15. package/dist/classes/features/other/extraConsoleCommands/commands.lua +1 -6
  16. package/dist/core/constantsFirstLast.d.ts +29 -6
  17. package/dist/core/constantsFirstLast.d.ts.map +1 -1
  18. package/dist/core/constantsFirstLast.lua +18 -3
  19. package/dist/functions/bosses.d.ts.map +1 -1
  20. package/dist/functions/bosses.lua +1 -3
  21. package/dist/functions/doors.d.ts.map +1 -1
  22. package/dist/functions/doors.lua +5 -7
  23. package/dist/functions/gridEntities.lua +1 -2
  24. package/dist/functions/gridEntitiesSpecific.d.ts.map +1 -1
  25. package/dist/functions/gridEntitiesSpecific.lua +5 -7
  26. package/dist/functions/nextStage.d.ts.map +1 -1
  27. package/dist/functions/nextStage.lua +4 -6
  28. package/dist/functions/npcs.d.ts.map +1 -1
  29. package/dist/functions/npcs.lua +3 -5
  30. package/dist/functions/pills.d.ts.map +1 -1
  31. package/dist/functions/pills.lua +8 -16
  32. package/dist/functions/pocketItems.d.ts.map +1 -1
  33. package/dist/functions/pocketItems.lua +1 -3
  34. package/dist/functions/rooms.d.ts.map +1 -1
  35. package/dist/functions/rooms.lua +13 -15
  36. package/dist/functions/set.d.ts +37 -1
  37. package/dist/functions/set.d.ts.map +1 -1
  38. package/dist/functions/set.lua +56 -11
  39. package/dist/functions/stage.lua +2 -6
  40. package/dist/functions/trinkets.lua +2 -2
  41. package/dist/functions/types.d.ts +29 -0
  42. package/dist/functions/types.d.ts.map +1 -1
  43. package/dist/index.rollup.d.ts +97 -27
  44. package/dist/isaacscript-common.lua +152 -158
  45. package/package.json +2 -2
  46. package/src/classes/callbacks/PostItemDischarge.ts +1 -2
  47. package/src/classes/features/other/CustomPickups.ts +1 -2
  48. package/src/classes/features/other/CustomStages.ts +1 -4
  49. package/src/classes/features/other/DeployJSONRoom.ts +5 -9
  50. package/src/classes/features/other/ModdedElementDetection.ts +61 -77
  51. package/src/classes/features/other/StageHistory.ts +1 -2
  52. package/src/classes/features/other/extraConsoleCommands/commands.ts +2 -6
  53. package/src/core/constantsFirstLast.ts +29 -6
  54. package/src/functions/bosses.ts +1 -2
  55. package/src/functions/doors.ts +5 -6
  56. package/src/functions/gridEntities.ts +2 -2
  57. package/src/functions/gridEntitiesSpecific.ts +5 -6
  58. package/src/functions/nextStage.ts +4 -5
  59. package/src/functions/npcs.ts +3 -4
  60. package/src/functions/pills.ts +4 -6
  61. package/src/functions/pocketItems.ts +1 -2
  62. package/src/functions/rooms.ts +15 -17
  63. package/src/functions/set.ts +79 -11
  64. package/src/functions/stage.ts +3 -3
  65. package/src/functions/trinkets.ts +2 -2
  66. package/src/functions/types.ts +30 -0
@@ -1 +1 @@
1
- {"version":3,"file":"PostItemDischarge.d.ts","sourceRoot":"","sources":["../../../src/classes/callbacks/PostItemDischarge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;A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AAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,mBAAmB,CAAC;AAI/C,KAAK,8BAA8B,GAAG,GAAG,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;AACvE,KAAK,qBAAqB,GAAG,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AAkBlD,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,CAAC,CAAC;IACtC,CAAC;;;;;;;;MAAK;;IAsBtB,UAAmB,UAAU,6GAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAQR;IAIF,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CASpC;IAIF,OAAO,CAAC,mBAAmB;IAQ3B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,2BAA2B;IAWnC,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAqCzC;IAEF;;;OAGG;IACH,OAAO,CAAC,8BAA8B;CAYvC"}
@@ -20,8 +20,6 @@ local ____playerDataStructures = require("functions.playerDataStructures")
20
20
  local defaultMapGetPlayer = ____playerDataStructures.defaultMapGetPlayer
21
21
  local mapGetPlayer = ____playerDataStructures.mapGetPlayer
22
22
  local mapSetPlayer = ____playerDataStructures.mapSetPlayer
23
- local ____types = require("functions.types")
24
- local asNumber = ____types.asNumber
25
23
  local ____DefaultMap = require("classes.DefaultMap")
26
24
  local DefaultMap = ____DefaultMap.DefaultMap
27
25
  local ____CustomCallback = require("classes.private.CustomCallback")
@@ -52,7 +50,7 @@ function PostItemDischarge.prototype.____constructor(self)
52
50
  return callbackCollectibleType == nil or callbackCollectibleType == collectibleType
53
51
  end
54
52
  self.preNPCCollisionSucker = function(____, npc, collider)
55
- if npc.Variant == asNumber(nil, SuckerVariant.BULB) then
53
+ if npc.Variant == SuckerVariant.BULB then
56
54
  return self:preNPCCollisionBulb(npc, collider)
57
55
  end
58
56
  return nil
@@ -1 +1 @@
1
- {"version":3,"file":"CustomPickups.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/CustomPickups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAclE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAkBhD,qBAAa,aAAc,SAAQ,OAAO;IACxC,4BAA4B;IAC5B,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAGrC;IAoBJ,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAqCjC;IAIF,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAS3C;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IAEI,oBAAoB,CACzB,mBAAmB,EAAE,aAAa,EAClC,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,EACvD,aAAa,GAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,OAAoB,GACxE,IAAI;CAYR"}
1
+ {"version":3,"file":"CustomPickups.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/CustomPickups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAalE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAkBhD,qBAAa,aAAc,SAAQ,OAAO;IACxC,4BAA4B;IAC5B,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAGrC;IAoBJ,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAqCjC;IAIF,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAS3C;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IAEI,oBAAoB,CACzB,mBAAmB,EAAE,aAAa,EAClC,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,EACvD,aAAa,GAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,OAAoB,GACxE,IAAI;CAYR"}
@@ -18,8 +18,6 @@ local getEntityID = ____entities.getEntityID
18
18
  local getEntityIDFromConstituents = ____entities.getEntityIDFromConstituents
19
19
  local ____entitiesSpecific = require("functions.entitiesSpecific")
20
20
  local spawnEffect = ____entitiesSpecific.spawnEffect
21
- local ____types = require("functions.types")
22
- local asNumber = ____types.asNumber
23
21
  local ____Feature = require("classes.private.Feature")
24
22
  local Feature = ____Feature.Feature
25
23
  --- Normally, we would make a custom entity to represent a fading-away pickup, but we don't want to
@@ -62,7 +60,7 @@ function CustomPickups.prototype.____constructor(self)
62
60
  return nil
63
61
  end
64
62
  self.postEffectRenderPickupEffect = function(____, effect)
65
- if effect.SubType ~= asNumber(nil, PICKUP_EFFECT_SUB_TYPE) then
63
+ if effect.SubType ~= PICKUP_EFFECT_SUB_TYPE then
66
64
  return
67
65
  end
68
66
  local sprite = effect:GetSprite()
@@ -1 +1 @@
1
- {"version":3,"file":"CustomStages.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/CustomStages.ts"],"names":[],"mappings":"AA0CA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA2ChD,qBAAa,YAAa,SAAQ,OAAO;IAIvC,oCAAoC;IACpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkC;IAElE,+BAA+B;IAC/B,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAA8B;IAExE,OAAO,CAAC,WAAW,CAAS;IAE5B,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;IAClD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;IAClD,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAyB;IAChE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAmE5C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C,QAAQ,CAAC,sBAAsB,CAAyB;IAChE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAmE5C,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,6BAA6B;IAOrC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAY9B;IAGF,OAAO,CAAC,QAAQ,CAAC,UAAU,CAmBzB;IAEF;;;OAGG;IAEH,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAehC;IAGF,OAAO,CAAC,QAAQ,CAAC,aAAa,CAc5B;IAGF,OAAO,CAAC,QAAQ,CAAC,eAAe,CAU9B;IAEF;;;OAGG;IAEH,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAc/B;IAIF,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAe1C;IAGF,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAqBjC;IAGF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAwBnC;IAEF,gDAAgD;IAChD,OAAO,CAAC,iBAAiB;IAgGzB;;;;;;;;;;;;;;;;;OAiBG;IAEI,cAAc,CACnB,IAAI,EAAE,MAAM,EACZ,UAAU,UAAO,EACjB,UAAU,UAAO,EACjB,OAAO,UAAQ,GACd,IAAI;IA+FP;;;;;;;OAOG;IAEI,kBAAkB,IAAI,IAAI;CAGlC"}
@@ -48,8 +48,6 @@ local ____sound = require("functions.sound")
48
48
  local getMusicForStage = ____sound.getMusicForStage
49
49
  local ____stage = require("functions.stage")
50
50
  local setStage = ____stage.setStage
51
- local ____types = require("functions.types")
52
- local asNumber = ____types.asNumber
53
51
  local ____utils = require("functions.utils")
54
52
  local assertDefined = ____utils.assertDefined
55
53
  local ____Feature = require("classes.private.Feature")
@@ -375,7 +373,7 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
375
373
  baseStage = baseStage + 1
376
374
  end
377
375
  local baseStageType = customStage.baseStageType == nil and DEFAULT_BASE_STAGE_TYPE or customStage.baseStageType
378
- local reseed = asNumber(nil, stage) >= baseStage
376
+ local reseed = stage >= baseStage
379
377
  setStage(nil, baseStage, baseStageType, reseed)
380
378
  musicManager:Disable()
381
379
  self:setStageRoomsData(customStage, rng, verbose)
@@ -1 +1 @@
1
- {"version":3,"file":"DeployJSONRoom.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/DeployJSONRoom.ts"],"names":[],"mappings":";;AAgCA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAOhD,qBAAa,cAAe,SAAQ,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAA2B;IAWpE,OAAO,CAAC,gBAAgB;IA+FxB,OAAO,CAAC,4BAA4B;IAyCpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IAEI,cAAc,CACnB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,EACvC,SAAS,EAAE,IAAI,GAAG,GAAG,GAAG,SAAS,EACjC,OAAO,UAAQ,GACd,IAAI;CAwBR"}
1
+ {"version":3,"file":"DeployJSONRoom.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/DeployJSONRoom.ts"],"names":[],"mappings":";;AAgCA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAOhD,qBAAa,cAAe,SAAQ,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAA2B;IAWpE,OAAO,CAAC,gBAAgB;IA+FxB,OAAO,CAAC,4BAA4B;IAqCpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IAEI,cAAc,CACnB,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,EACvC,SAAS,EAAE,IAAI,GAAG,GAAG,GAAG,SAAS,EACjC,OAAO,UAAQ,GACd,IAAI;CAwBR"}
@@ -48,7 +48,6 @@ local ____spawnCollectible = require("functions.spawnCollectible")
48
48
  local spawnCollectible = ____spawnCollectible.spawnCollectible
49
49
  local ____types = require("functions.types")
50
50
  local asCollectibleType = ____types.asCollectibleType
51
- local asNumber = ____types.asNumber
52
51
  local ____utils = require("functions.utils")
53
52
  local assertDefined = ____utils.assertDefined
54
53
  local ____ReadonlySet = require("types.ReadonlySet")
@@ -273,11 +272,12 @@ function DeployJSONRoom.prototype.spawnNormalEntityForJSONRoom(self, entityType,
273
272
  local position = gridCoordinatesToWorldPosition(nil, x, y)
274
273
  local seed = rng:Next()
275
274
  local entity
276
- if entityType == EntityType.PICKUP and variant == asNumber(nil, PickupVariant.COLLECTIBLE) then
275
+ if entityType == EntityType.PICKUP and variant == PickupVariant.COLLECTIBLE then
276
+ local collectibleType = asCollectibleType(nil, subType)
277
277
  local options = roomType == RoomType.ANGEL
278
278
  entity = spawnCollectible(
279
279
  nil,
280
- asCollectibleType(nil, subType),
280
+ collectibleType,
281
281
  position,
282
282
  seed,
283
283
  options
@@ -292,7 +292,7 @@ function DeployJSONRoom.prototype.spawnNormalEntityForJSONRoom(self, entityType,
292
292
  seed
293
293
  )
294
294
  end
295
- if entityType == EntityType.PITFALL and variant == asNumber(nil, PitfallVariant.PITFALL) then
295
+ if entityType == EntityType.PITFALL and variant == PitfallVariant.PITFALL then
296
296
  entity.EntityCollisionClass = EntityCollisionClass.ENEMIES
297
297
  entity.GridCollisionClass = EntityGridCollisionClass.WALLS
298
298
  end
@@ -1,5 +1,9 @@
1
1
  import type { CardType, CollectibleType, PillEffect, TrinketType } from "isaac-typescript-definitions";
2
2
  import { Feature } from "../../private/Feature";
3
+ export declare const FIRST_MODDED_COLLECTIBLE_TYPE: CollectibleType;
4
+ export declare const FIRST_MODDED_TRINKET_TYPE: TrinketType;
5
+ export declare const FIRST_MODDED_CARD_TYPE: CardType;
6
+ export declare const FIRST_MODDED_PILL_EFFECT: PillEffect;
3
7
  /**
4
8
  * Mods can add extra things to the game (e.g. collectibles, trinkets, and so on). Since mods load
5
9
  * in alphabetical order, the total number of things can't be properly be known until at least one
@@ -33,7 +37,7 @@ export declare class ModdedElementDetection extends Feature {
33
37
  * Equal to `itemConfig.GetCollectibles().Size - 1`. (`Size` includes invalid collectibles, like
34
38
  * 666. We subtract one to account for `CollectibleType.NULL`.)
35
39
  *
36
- * If there are no mods present that add any custom items, this function will return
40
+ * If there are no mods present that add any custom collectibles, this function will return
37
41
  * `CollectibleType.MOMS_RING` (732).
38
42
  *
39
43
  * This function can only be called if at least one callback has been executed. This is because
@@ -48,7 +52,7 @@ export declare class ModdedElementDetection extends Feature {
48
52
  getLastCollectibleType(): CollectibleType;
49
53
  /**
50
54
  * Returns the total number of collectibles in the item config, including both vanilla and modded
51
- * items. If you just need the number of vanilla collectible types, use the
55
+ * collectibles. If you just need the number of vanilla collectible types, use the
52
56
  * `NUM_VANILLA_COLLECTIBLE_TYPES` constant.
53
57
  *
54
58
  * This function can only be called if at least one callback has been executed. This is because
@@ -106,7 +110,7 @@ export declare class ModdedElementDetection extends Feature {
106
110
  getLastTrinketType(): TrinketType;
107
111
  /**
108
112
  * Returns the total number of trinkets in the item config, including both vanilla and modded
109
- * items. If you just need the number of vanilla trinket types, use the
113
+ * trinkets. If you just need the number of vanilla trinket types, use the
110
114
  * `NUM_VANILLA_TRINKET_TYPES` constant.
111
115
  *
112
116
  * This function can only be called if at least one callback has been executed. This is because
@@ -145,11 +149,14 @@ export declare class ModdedElementDetection extends Feature {
145
149
  /**
146
150
  * Will change depending on how many modded cards there are.
147
151
  *
148
- * This is equal to the number of cards, since all card sub-types are contiguous (unlike
149
- * collectibles).
152
+ * Equal to `itemConfig.GetCards().Size - 1`. (`Size` includes invalid cards, but since cards are
153
+ * contiguous, there are no invalid cards. We subtract one to account for `CardType.NULL`.)
154
+ *
155
+ * If there are no mods present that add any custom cards, this function will return
156
+ * `CardType.SOUL_OF_JACOB_AND_ESAU` (97).
150
157
  *
151
158
  * This function can only be called if at least one callback has been executed. This is because
152
- * not all cards will necessarily be present when a mod first loads (due to mod load order).
159
+ * not all trinkets will necessarily be present when a mod first loads (due to mod load order).
153
160
  *
154
161
  * In order to use this function, you must upgrade your mod with
155
162
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
@@ -158,9 +165,8 @@ export declare class ModdedElementDetection extends Feature {
158
165
  */
159
166
  getLastCardType(): CardType;
160
167
  /**
161
- * Will change depending on how many modded cards there are.
162
- *
163
- * Equal to `itemConfig.GetCards().Size - 1`. (We subtract one to account for `Card.NULL`.)
168
+ * Returns the total number of cards in the item config, including both vanilla and modded cards.
169
+ * If you just need the number of vanilla card types, use the `NUM_VANILLA_CARD_TYPES` constant.
164
170
  *
165
171
  * This function can only be called if at least one callback has been executed. This is because
166
172
  * not all cards will necessarily be present when a mod first loads (due to mod load order).
@@ -172,8 +178,10 @@ export declare class ModdedElementDetection extends Feature {
172
178
  */
173
179
  getNumCardTypes(): int;
174
180
  /**
181
+ * Like vanilla card types, modded card types are always contiguous.
182
+ *
175
183
  * This function can only be called if at least one callback has been executed. This is because
176
- * not all trinkets will necessarily be present when a mod first loads (due to mod load order).
184
+ * not all cards will necessarily be present when a mod first loads (due to mod load order).
177
185
  *
178
186
  * In order to use this function, you must upgrade your mod with
179
187
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
@@ -197,8 +205,12 @@ export declare class ModdedElementDetection extends Feature {
197
205
  /**
198
206
  * Will change depending on how many modded pill effects there are.
199
207
  *
200
- * This is equal to the number of pill effects, since all pill effects are contiguous (unlike
201
- * collectibles).
208
+ * Equal to `itemConfig.GetPillEffects().Size - 1`. (`Size` includes invalid pill effects, but
209
+ * since pill effects are contiguous, there are no invalid pill effects. We subtract one to
210
+ * account for the enum starting at 0 instead of 1.)
211
+ *
212
+ * If there are no mods present that add any custom pill effects, this function will return
213
+ * `PillEffect.EXPERIMENTAL` (49).
202
214
  *
203
215
  * This function can only be called if at least one callback has been executed. This is because
204
216
  * not all pill effects will necessarily be present when a mod first loads (due to mod load
@@ -211,14 +223,12 @@ export declare class ModdedElementDetection extends Feature {
211
223
  */
212
224
  getLastPillEffect(): PillEffect;
213
225
  /**
214
- * Will change depending on how many modded pill effects there are.
215
- *
216
- * Equal to `itemConfig.GetPillEffects().Size`. (We do not have to subtract one, because the first
217
- * pill effect has an ID of 0 and there is no `PillEffect.NULL`.)
226
+ * Returns the total number of pill effects in the item config, including both vanilla and modded
227
+ * pill effects. If you just need the number of vanilla pill effects, use the
228
+ * `NUM_VANILLA_PILL_EFFECTS` constant.
218
229
  *
219
230
  * This function can only be called if at least one callback has been executed. This is because
220
- * not all pill effects will necessarily be present when a mod first loads (due to mod load
221
- * order).
231
+ * not all cards will necessarily be present when a mod first loads (due to mod load order).
222
232
  *
223
233
  * In order to use this function, you must upgrade your mod with
224
234
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
@@ -227,9 +237,10 @@ export declare class ModdedElementDetection extends Feature {
227
237
  */
228
238
  getNumPillEffects(): int;
229
239
  /**
240
+ * Like vanilla pill effects, modded pill effects are always contiguous.
241
+ *
230
242
  * This function can only be called if at least one callback has been executed. This is because
231
- * not all pill effects will necessarily be present when a mod first loads (due to mod load
232
- * order).
243
+ * not all cards will necessarily be present when a mod first loads (due to mod load order).
233
244
  *
234
245
  * In order to use this function, you must upgrade your mod with
235
246
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
@@ -1 +1 @@
1
- {"version":3,"file":"ModdedElementDetection.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/ModdedElementDetection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,UAAU,EACV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAqBtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD;;;;;;;;;GASG;AACH,qBAAa,sB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;;;OAUG;IAEI,uBAAuB,IAAI,GAAG;CAItC"}
@@ -18,14 +18,12 @@ local NUM_VANILLA_PILL_EFFECTS = ____constantsFirstLast.NUM_VANILLA_PILL_EFFECTS
18
18
  local NUM_VANILLA_TRINKET_TYPES = ____constantsFirstLast.NUM_VANILLA_TRINKET_TYPES
19
19
  local ____decorators = require("decorators")
20
20
  local Exported = ____decorators.Exported
21
- local ____types = require("functions.types")
22
- local asCardType = ____types.asCardType
23
- local asCollectibleType = ____types.asCollectibleType
24
- local asNumber = ____types.asNumber
25
- local asPillEffect = ____types.asPillEffect
26
- local asTrinketType = ____types.asTrinketType
27
21
  local ____Feature = require("classes.private.Feature")
28
22
  local Feature = ____Feature.Feature
23
+ ____exports.FIRST_MODDED_COLLECTIBLE_TYPE = LAST_VANILLA_COLLECTIBLE_TYPE + 1
24
+ ____exports.FIRST_MODDED_TRINKET_TYPE = LAST_VANILLA_TRINKET_TYPE + 1
25
+ ____exports.FIRST_MODDED_CARD_TYPE = LAST_VANILLA_CARD_TYPE + 1
26
+ ____exports.FIRST_MODDED_PILL_EFFECT = LAST_VANILLA_PILL_EFFECT + 1
29
27
  --- Mods can add extra things to the game (e.g. collectibles, trinkets, and so on). Since mods load
30
28
  -- in alphabetical order, the total number of things can't be properly be known until at least one
31
29
  -- callback fires (which indicates that all mods have been loaded).
@@ -53,16 +51,12 @@ function ModdedElementDetection.prototype.errorIfNoCallbacksFired(self, constant
53
51
  end
54
52
  function ModdedElementDetection.prototype.getFirstModdedCollectibleType(self)
55
53
  self:errorIfNoCallbacksFired("collectible")
56
- local firstModdedCollectibleType = asCollectibleType(
57
- nil,
58
- asNumber(nil, LAST_VANILLA_COLLECTIBLE_TYPE) + 1
59
- )
60
- local itemConfigItem = itemConfig:GetCollectible(firstModdedCollectibleType)
54
+ local itemConfigItem = itemConfig:GetCollectible(____exports.FIRST_MODDED_COLLECTIBLE_TYPE)
61
55
  local ____temp_0
62
56
  if itemConfigItem == nil then
63
57
  ____temp_0 = nil
64
58
  else
65
- ____temp_0 = firstModdedCollectibleType
59
+ ____temp_0 = ____exports.FIRST_MODDED_COLLECTIBLE_TYPE
66
60
  end
67
61
  return ____temp_0
68
62
  end
@@ -74,28 +68,22 @@ end
74
68
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getLastCollectibleType", true)
75
69
  function ModdedElementDetection.prototype.getNumCollectibleTypes(self)
76
70
  self:errorIfNoCallbacksFired("collectible")
77
- local numModdedCollectibleTypes = self:getNumModdedCollectibleTypes()
78
- return NUM_VANILLA_COLLECTIBLE_TYPES + numModdedCollectibleTypes
71
+ return NUM_VANILLA_COLLECTIBLE_TYPES + self:getNumModdedCollectibleTypes()
79
72
  end
80
73
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getNumCollectibleTypes", true)
81
74
  function ModdedElementDetection.prototype.getNumModdedCollectibleTypes(self)
82
75
  self:errorIfNoCallbacksFired("collectible")
83
- local lastCollectibleType = self:getLastCollectibleType()
84
- return lastCollectibleType - LAST_VANILLA_COLLECTIBLE_TYPE
76
+ return self:getLastCollectibleType() - LAST_VANILLA_COLLECTIBLE_TYPE
85
77
  end
86
78
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getNumModdedCollectibleTypes", true)
87
79
  function ModdedElementDetection.prototype.getFirstModdedTrinketType(self)
88
80
  self:errorIfNoCallbacksFired("trinket")
89
- local firstModdedTrinketType = asTrinketType(
90
- nil,
91
- asNumber(nil, LAST_VANILLA_TRINKET_TYPE) + 1
92
- )
93
- local itemConfigItem = itemConfig:GetTrinket(firstModdedTrinketType)
81
+ local itemConfigItem = itemConfig:GetTrinket(____exports.FIRST_MODDED_TRINKET_TYPE)
94
82
  local ____temp_1
95
83
  if itemConfigItem == nil then
96
84
  ____temp_1 = nil
97
85
  else
98
- ____temp_1 = firstModdedTrinketType
86
+ ____temp_1 = ____exports.FIRST_MODDED_TRINKET_TYPE
99
87
  end
100
88
  return ____temp_1
101
89
  end
@@ -107,80 +95,66 @@ end
107
95
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getLastTrinketType", true)
108
96
  function ModdedElementDetection.prototype.getNumTrinketTypes(self)
109
97
  self:errorIfNoCallbacksFired("trinket")
110
- local numModdedTrinketTypes = self:getNumModdedTrinketTypes()
111
- return NUM_VANILLA_TRINKET_TYPES + numModdedTrinketTypes
98
+ return NUM_VANILLA_TRINKET_TYPES + self:getNumModdedTrinketTypes()
112
99
  end
113
100
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getNumTrinketTypes", true)
114
101
  function ModdedElementDetection.prototype.getNumModdedTrinketTypes(self)
115
102
  self:errorIfNoCallbacksFired("trinket")
116
- local lastTrinketType = self:getLastTrinketType()
117
- return lastTrinketType - LAST_VANILLA_TRINKET_TYPE
103
+ return self:getLastTrinketType() - LAST_VANILLA_TRINKET_TYPE
118
104
  end
119
105
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getNumModdedTrinketTypes", true)
120
106
  function ModdedElementDetection.prototype.getFirstModdedCardType(self)
121
107
  self:errorIfNoCallbacksFired("card")
122
- local firstModdedCardType = asCardType(
123
- nil,
124
- asNumber(nil, LAST_VANILLA_CARD_TYPE) + 1
125
- )
126
- local itemConfigCard = itemConfig:GetCard(firstModdedCardType)
108
+ local itemConfigCard = itemConfig:GetCard(____exports.FIRST_MODDED_CARD_TYPE)
127
109
  local ____temp_2
128
110
  if itemConfigCard == nil then
129
111
  ____temp_2 = nil
130
112
  else
131
- ____temp_2 = firstModdedCardType
113
+ ____temp_2 = ____exports.FIRST_MODDED_CARD_TYPE
132
114
  end
133
115
  return ____temp_2
134
116
  end
135
117
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getFirstModdedCardType", true)
136
118
  function ModdedElementDetection.prototype.getLastCardType(self)
137
119
  self:errorIfNoCallbacksFired("card")
138
- local numCards = self:getNumCardTypes()
139
- return asCardType(nil, numCards)
120
+ return itemConfig:GetCards().Size - 1
140
121
  end
141
122
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getLastCardType", true)
142
123
  function ModdedElementDetection.prototype.getNumCardTypes(self)
143
124
  self:errorIfNoCallbacksFired("card")
144
- return itemConfig:GetCards().Size - 1
125
+ return NUM_VANILLA_CARD_TYPES + self:getNumModdedCardTypes()
145
126
  end
146
127
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getNumCardTypes", true)
147
128
  function ModdedElementDetection.prototype.getNumModdedCardTypes(self)
148
129
  self:errorIfNoCallbacksFired("card")
149
- local numCardTypes = self:getNumCardTypes()
150
- return numCardTypes - NUM_VANILLA_CARD_TYPES
130
+ return self:getLastCardType() - LAST_VANILLA_CARD_TYPE
151
131
  end
152
132
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getNumModdedCardTypes", true)
153
133
  function ModdedElementDetection.prototype.getFirstModdedPillEffect(self)
154
134
  self:errorIfNoCallbacksFired("pill")
155
- local firstModdedPillEffect = asPillEffect(
156
- nil,
157
- asNumber(nil, LAST_VANILLA_PILL_EFFECT) + 1
158
- )
159
- local itemConfigPillEffect = itemConfig:GetPillEffect(firstModdedPillEffect)
135
+ local itemConfigPillEffect = itemConfig:GetPillEffect(____exports.FIRST_MODDED_PILL_EFFECT)
160
136
  local ____temp_3
161
137
  if itemConfigPillEffect == nil then
162
138
  ____temp_3 = nil
163
139
  else
164
- ____temp_3 = firstModdedPillEffect
140
+ ____temp_3 = ____exports.FIRST_MODDED_PILL_EFFECT
165
141
  end
166
142
  return ____temp_3
167
143
  end
168
144
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getFirstModdedPillEffect", true)
169
145
  function ModdedElementDetection.prototype.getLastPillEffect(self)
170
146
  self:errorIfNoCallbacksFired("pill")
171
- local numPillEffects = self:getNumPillEffects() - 1
172
- return asPillEffect(nil, numPillEffects)
147
+ return itemConfig:GetPillEffects().Size - 1
173
148
  end
174
149
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getLastPillEffect", true)
175
150
  function ModdedElementDetection.prototype.getNumPillEffects(self)
176
151
  self:errorIfNoCallbacksFired("pill")
177
- return itemConfig:GetPillEffects().Size
152
+ return NUM_VANILLA_PILL_EFFECTS + self:getNumModdedPillEffects()
178
153
  end
179
154
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getNumPillEffects", true)
180
155
  function ModdedElementDetection.prototype.getNumModdedPillEffects(self)
181
- self:errorIfNoCallbacksFired("pill")
182
- local numPillEffects = self:getNumPillEffects()
183
- return numPillEffects - NUM_VANILLA_PILL_EFFECTS
156
+ self:errorIfNoCallbacksFired("card")
157
+ return self:getLastPillEffect() - LAST_VANILLA_PILL_EFFECT
184
158
  end
185
159
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getNumModdedPillEffects", true)
186
160
  return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"StageHistory.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/StageHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAUtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,YAAa,SAAQ,OAAO;IAcvC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAMpC;IAEF;;;;;;;;;;;;;OAaG;IAEI,2BAA2B,CAAC,OAAO,UAAQ,GAAG,SAAS;IAiG9D;;;;;;;;;OASG;IAEI,uBAAuB,IAAI,UAAU;IA8H5C;;;;;;OAMG;IAEI,eAAe,IAAI,SAAS,iBAAiB,EAAE;IAItD;;;;;;;;;OASG;IAEI,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO;CAa1E"}
1
+ {"version":3,"file":"StageHistory.d.ts","sourceRoot":"","sources":["../../../../src/classes/features/other/StageHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAStC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,YAAa,SAAQ,OAAO;IAcvC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAMpC;IAEF;;;;;;;;;;;;;OAaG;IAEI,2BAA2B,CAAC,OAAO,UAAQ,GAAG,SAAS;IAiG9D;;;;;;;;;OASG;IAEI,uBAAuB,IAAI,UAAU;IA8H5C;;;;;;OAMG;IAEI,eAAe,IAAI,SAAS,iBAAiB,EAAE;IAItD;;;;;;;;;OASG;IAEI,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO;CAa1E"}
@@ -20,8 +20,6 @@ local getNextStageType = ____nextStage.getNextStageType
20
20
  local ____stage = require("functions.stage")
21
21
  local calculateStageType = ____stage.calculateStageType
22
22
  local onRepentanceStage = ____stage.onRepentanceStage
23
- local ____types = require("functions.types")
24
- local asNumber = ____types.asNumber
25
23
  local ____Feature = require("classes.private.Feature")
26
24
  local Feature = ____Feature.Feature
27
25
  local v = {run = {stageHistory = {}}}
@@ -168,7 +166,7 @@ function StageHistory.prototype.getNextStageWithHistory(self)
168
166
  end
169
167
  return LevelStage.DEPTHS_1
170
168
  end
171
- return asNumber(nil, stage) - 1
169
+ return stage - 1
172
170
  end
173
171
  __TS__DecorateLegacy({Exported}, StageHistory.prototype, "getNextStageWithHistory", true)
174
172
  function StageHistory.prototype.getStageHistory(self)
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAuJA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;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sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC;AAED,yCAAyC;AACzC,wBAAgB,EAAE,IAAI,IAAI,CAEzB"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAmJA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,4CAA4C;AAC5C,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAcjD;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAc1C;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,wCAAwC;AACxC,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAED,kEAAkE;AAClE,wBAAgB,YAAY,IAAI,IAAI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AAI,CAEtC;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkB1C;AAED,wCAAwC;AACxC,wBAAgB,KAAK,IAAI,IAAI,CAE5B;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,4CAA4C;AAC5C,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE5C;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,IAAI,IAAI,CAG9B;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC;AAED,yCAAyC;AACzC,wBAAgB,EAAE,IAAI,IAAI,CAEzB"}
@@ -108,7 +108,6 @@ local getMapPartialMatch = ____string.getMapPartialMatch
108
108
  local ____trinkets = require("functions.trinkets")
109
109
  local getGoldenTrinketType = ____trinkets.getGoldenTrinketType
110
110
  local ____types = require("functions.types")
111
- local asCardType = ____types.asCardType
112
111
  local asCollectibleType = ____types.asCollectibleType
113
112
  local asTrinketType = ____types.asTrinketType
114
113
  local ____utils = require("functions.utils")
@@ -537,11 +536,7 @@ function ____exports.cards(self)
537
536
  return
538
537
  end
539
538
  local worldPosition = gridCoordinatesToWorldPosition(nil, x, y)
540
- spawnCard(
541
- nil,
542
- asCardType(nil, cardType),
543
- worldPosition
544
- )
539
+ spawnCard(nil, cardType, worldPosition)
545
540
  cardType = cardType + 1
546
541
  x = x + 1
547
542
  end
@@ -9,27 +9,44 @@ export declare const FIRST_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION;
9
9
  /**
10
10
  * Calculated from the `CollectibleType` enum.
11
11
  *
12
- * Note that this cannot be calculated from the length of the enum, because unlike all of the other
13
- * enums, collectible types are not contiguous.
12
+ * Note that this cannot be calculated from the length of the enum, because collectible types are
13
+ * not contiguous.
14
14
  */
15
15
  export declare const LAST_VANILLA_COLLECTIBLE_TYPE: CollectibleType;
16
16
  /** Calculated from the `CollectibleType` enum. (`CollectibleType.NULL` is not included.) */
17
17
  export declare const NUM_VANILLA_COLLECTIBLE_TYPES: number;
18
18
  /** Equal to `TrinketType.SWALLOWED_PENNY`. */
19
19
  export declare const FIRST_TRINKET_TYPE = TrinketType.SWALLOWED_PENNY;
20
- /** Calculated from the `TrinketType` enum. */
20
+ /**
21
+ * Calculated from the `TrinketType` enum.
22
+ *
23
+ * Note that this cannot be calculated from the length of the enum, because trinket types are not
24
+ * contiguous.
25
+ */
21
26
  export declare const LAST_VANILLA_TRINKET_TYPE: TrinketType;
22
27
  /** Calculated from the `TrinketType` enum. (`TrinketType.NULL` is not included.) */
23
28
  export declare const NUM_VANILLA_TRINKET_TYPES: number;
24
29
  /** Equal to `Card.FOOL`. */
25
30
  export declare const FIRST_CARD_TYPE = CardType.FOOL;
26
- /** Calculated from the `Card` enum. */
31
+ /**
32
+ * Calculated from the `CardType` enum.
33
+ *
34
+ * Note that this could be calculated from the length of the enum, because card types are
35
+ * contiguous. However, we instead get the highest enum value to be safer and to make the code more
36
+ * consistent with collectibles and trinkets.
37
+ */
27
38
  export declare const LAST_VANILLA_CARD_TYPE: CardType;
28
39
  /** Calculated from the `Card` enum. `Card.NULL` is not included. */
29
40
  export declare const NUM_VANILLA_CARD_TYPES: number;
30
41
  /** Equal to `PillEffect.BAD_GAS`. */
31
42
  export declare const FIRST_PILL_EFFECT = PillEffect.BAD_GAS;
32
- /** Calculated from the `PillEffect` enum. */
43
+ /**
44
+ * Calculated from the `PillEffect` enum.
45
+ *
46
+ * Note that this could be calculated from the length of the enum, because pill effects are
47
+ * contiguous. However, we instead get the highest enum value to be safer and to make the code more
48
+ * consistent with collectibles and trinkets.
49
+ */
33
50
  export declare const LAST_VANILLA_PILL_EFFECT: PillEffect;
34
51
  /**
35
52
  * Calculated from the `PillEffect` enum. (There is no `PillEffect.NULL` in the custom enum, so we
@@ -57,7 +74,13 @@ export declare const LAST_HORSE_PILL_COLOR = PillColor.HORSE_WHITE_YELLOW;
57
74
  export declare const NUM_NORMAL_PILL_COLORS: number;
58
75
  /** Equal to `PlayerType.ISAAC`. */
59
76
  export declare const FIRST_CHARACTER = PlayerType.ISAAC;
60
- /** Calculated from the `PlayerType` enum. */
77
+ /**
78
+ * Calculated from the `PlayerType` enum.
79
+ *
80
+ * Note that this could be calculated from the length of the enum, because characters are
81
+ * contiguous. However, we instead get the highest enum value to be safer and to make the code more
82
+ * consistent with collectibles and trinkets.
83
+ */
61
84
  export declare const LAST_VANILLA_CHARACTER: PlayerType;
62
85
  export declare const FIRST_ROOM_TYPE = RoomType.DEFAULT;
63
86
  export declare const LAST_ROOM_TYPE: RoomType;
@@ -1 +1 @@
1
- {"version":3,"file":"constantsFirstLast.d.ts","sourceRoot":"","sources":["../../src/core/constantsFirstLast.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,QAAQ,EAER,eAAe,EACf,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAQtC,4CAA4C;AAC5C,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,iBACJ,CAAC;AAEvC,4FAA4F;AAC5F,eAAO,MAAM,6BAA6B,QAAqC,CAAC;AAMhF,8CAA8C;AAC9C,eAAO,MAAM,kBAAkB,8BAA8B,CAAC;AAE9D,8CAA8C;AAC9C,eAAO,MAAM,yBAAyB,aAAmC,CAAC;AAE1E,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,QAAiC,CAAC;AA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exports.FIRST_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION
19
19
  --- Calculated from the `CollectibleType` enum.
20
20
  --
21
- -- Note that this cannot be calculated from the length of the enum, because unlike all of the other
22
- -- enums, collectible types are not contiguous.
21
+ -- Note that this cannot be calculated from the length of the enum, because collectible types are
22
+ -- not contiguous.
23
23
  ____exports.LAST_VANILLA_COLLECTIBLE_TYPE = getHighestEnumValue(nil, CollectibleType)
24
24
  --- Calculated from the `CollectibleType` enum. (`CollectibleType.NULL` is not included.)
25
25
  ____exports.NUM_VANILLA_COLLECTIBLE_TYPES = getEnumLength(nil, CollectibleType) - 1
26
26
  --- Equal to `TrinketType.SWALLOWED_PENNY`.
27
27
  ____exports.FIRST_TRINKET_TYPE = TrinketType.SWALLOWED_PENNY
28
28
  --- Calculated from the `TrinketType` enum.
29
+ --
30
+ -- Note that this cannot be calculated from the length of the enum, because trinket types are not
31
+ -- contiguous.
29
32
  ____exports.LAST_VANILLA_TRINKET_TYPE = getHighestEnumValue(nil, TrinketType)
30
33
  --- Calculated from the `TrinketType` enum. (`TrinketType.NULL` is not included.)
31
34
  ____exports.NUM_VANILLA_TRINKET_TYPES = getEnumLength(nil, TrinketType) - 1
32
35
  --- Equal to `Card.FOOL`.
33
36
  ____exports.FIRST_CARD_TYPE = CardType.FOOL
34
- --- Calculated from the `Card` enum.
37
+ --- Calculated from the `CardType` enum.
38
+ --
39
+ -- Note that this could be calculated from the length of the enum, because card types are
40
+ -- contiguous. However, we instead get the highest enum value to be safer and to make the code more
41
+ -- consistent with collectibles and trinkets.
35
42
  ____exports.LAST_VANILLA_CARD_TYPE = getHighestEnumValue(nil, CardType)
36
43
  --- Calculated from the `Card` enum. `Card.NULL` is not included.
37
44
  ____exports.NUM_VANILLA_CARD_TYPES = getEnumLength(nil, CardType) - 1
38
45
  --- Equal to `PillEffect.BAD_GAS`.
39
46
  ____exports.FIRST_PILL_EFFECT = PillEffect.BAD_GAS
40
47
  --- Calculated from the `PillEffect` enum.
48
+ --
49
+ -- Note that this could be calculated from the length of the enum, because pill effects are
50
+ -- contiguous. However, we instead get the highest enum value to be safer and to make the code more
51
+ -- consistent with collectibles and trinkets.
41
52
  ____exports.LAST_VANILLA_PILL_EFFECT = getHighestEnumValue(nil, PillEffect)
42
53
  --- Calculated from the `PillEffect` enum. (There is no `PillEffect.NULL` in the custom enum, so we
43
54
  -- do not have to subtract one here.)
@@ -60,6 +71,10 @@ ____exports.NUM_NORMAL_PILL_COLORS = #iRange(nil, ____exports.FIRST_PILL_COLOR,
60
71
  --- Equal to `PlayerType.ISAAC`.
61
72
  ____exports.FIRST_CHARACTER = PlayerType.ISAAC
62
73
  --- Calculated from the `PlayerType` enum.
74
+ --
75
+ -- Note that this could be calculated from the length of the enum, because characters are
76
+ -- contiguous. However, we instead get the highest enum value to be safer and to make the code more
77
+ -- consistent with collectibles and trinkets.
63
78
  ____exports.LAST_VANILLA_CHARACTER = getHighestEnumValue(nil, PlayerType)
64
79
  ____exports.FIRST_ROOM_TYPE = RoomType.DEFAULT
65
80
  ____exports.LAST_ROOM_TYPE = getHighestEnumValue(nil, RoomType)