isaacscript-common 40.0.0 → 41.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/index.rollup.d.ts +363 -335
  2. package/dist/isaacscript-common.lua +463 -461
  3. package/dist/lualib_bundle.lua +61 -56
  4. package/dist/src/classes/features/other/FlyingDetection.lua +2 -2
  5. package/dist/src/classes/features/other/ItemPoolDetection.lua +2 -2
  6. package/dist/src/classes/features/other/ModdedElementDetection.d.ts +0 -86
  7. package/dist/src/classes/features/other/ModdedElementDetection.d.ts.map +1 -1
  8. package/dist/src/classes/features/other/ModdedElementDetection.lua +1 -57
  9. package/dist/src/classes/features/other/ModdedElementSets.d.ts +250 -210
  10. package/dist/src/classes/features/other/ModdedElementSets.d.ts.map +1 -1
  11. package/dist/src/classes/features/other/ModdedElementSets.lua +285 -284
  12. package/dist/src/core/constants.d.ts +13 -2
  13. package/dist/src/core/constants.d.ts.map +1 -1
  14. package/dist/src/core/constants.lua +28 -1
  15. package/dist/src/core/constantsFirstLast.d.ts +5 -0
  16. package/dist/src/core/constantsFirstLast.d.ts.map +1 -1
  17. package/dist/src/core/constantsVanilla.d.ts +93 -0
  18. package/dist/src/core/constantsVanilla.d.ts.map +1 -0
  19. package/dist/src/core/constantsVanilla.lua +115 -0
  20. package/dist/src/core/upgradeMod.lua +3 -0
  21. package/dist/src/functions/cards.d.ts +0 -7
  22. package/dist/src/functions/cards.d.ts.map +1 -1
  23. package/dist/src/functions/cards.lua +0 -10
  24. package/dist/src/functions/collectibles.d.ts +0 -10
  25. package/dist/src/functions/collectibles.d.ts.map +1 -1
  26. package/dist/src/functions/collectibles.lua +0 -13
  27. package/dist/src/functions/dimensions.d.ts +0 -4
  28. package/dist/src/functions/dimensions.d.ts.map +1 -1
  29. package/dist/src/functions/dimensions.lua +2 -8
  30. package/dist/src/functions/pickups.lua +3 -3
  31. package/dist/src/functions/pills.d.ts +0 -2
  32. package/dist/src/functions/pills.d.ts.map +1 -1
  33. package/dist/src/functions/pills.lua +0 -5
  34. package/dist/src/functions/rooms.lua +2 -2
  35. package/dist/src/functions/trinkets.d.ts +0 -9
  36. package/dist/src/functions/trinkets.d.ts.map +1 -1
  37. package/dist/src/functions/trinkets.lua +0 -12
  38. package/dist/src/index.d.ts +1 -0
  39. package/dist/src/index.d.ts.map +1 -1
  40. package/dist/src/index.lua +8 -0
  41. package/package.json +1 -1
  42. package/src/classes/features/other/FlyingDetection.ts +2 -2
  43. package/src/classes/features/other/ItemPoolDetection.ts +2 -2
  44. package/src/classes/features/other/ModdedElementDetection.ts +4 -156
  45. package/src/classes/features/other/ModdedElementSets.ts +552 -486
  46. package/src/core/constants.ts +36 -2
  47. package/src/core/constantsFirstLast.ts +5 -1
  48. package/src/core/constantsVanilla.ts +183 -0
  49. package/src/core/upgradeMod.ts +6 -1
  50. package/src/functions/cards.ts +1 -15
  51. package/src/functions/collectibles.ts +1 -18
  52. package/src/functions/dimensions.ts +2 -10
  53. package/src/functions/pickups.ts +2 -2
  54. package/src/functions/pills.ts +0 -6
  55. package/src/functions/rooms.ts +3 -3
  56. package/src/functions/trinkets.ts +1 -17
  57. package/src/index.ts +1 -0
  58. package/dist/src/sets/chestPickupVariantsSet.d.ts +0 -3
  59. package/dist/src/sets/chestPickupVariantsSet.d.ts.map +0 -1
  60. package/dist/src/sets/chestPickupVariantsSet.lua +0 -22
  61. package/src/sets/chestPickupVariantsSet.ts +0 -17
@@ -1,4 +1,4 @@
1
- import { CollectibleType, ItemPoolType, PlayerType } from "isaac-typescript-definitions";
1
+ import { CollectibleType, Dimension, ItemPoolType, PickupVariant, PlayerType } from "isaac-typescript-definitions";
2
2
  /**
3
3
  * The combination of the following flags:
4
4
  * - `DisplayFlag.VISIBLE` (1 << 0)
@@ -22,6 +22,8 @@ export declare const AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125;
22
22
  export declare const BLIND_ITEM_PNG_PATH = "gfx/items/collectibles/questionmark.png";
23
23
  /** Bombs explode when their frame count is equal to this value. */
24
24
  export declare const BOMB_EXPLODE_FRAME = 45;
25
+ export declare const CHEST_PICKUP_VARIANTS: readonly [PickupVariant.CHEST, PickupVariant.BOMB_CHEST, PickupVariant.SPIKED_CHEST, PickupVariant.ETERNAL_CHEST, PickupVariant.MIMIC_CHEST, PickupVariant.OLD_CHEST, PickupVariant.WOODEN_CHEST, PickupVariant.MEGA_CHEST, PickupVariant.HAUNTED_CHEST, PickupVariant.LOCKED_CHEST, PickupVariant.RED_CHEST, PickupVariant.MOMS_CHEST];
26
+ export declare const CHEST_PICKUP_VARIANTS_SET: ReadonlySet<PickupVariant>;
25
27
  /** This is the initial value of the `EntityPickup.Wait` field after a collectible is spawned. */
26
28
  export declare const COLLECTIBLE_INITIAL_WAIT = 20;
27
29
  export declare const DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE;
@@ -133,12 +135,21 @@ export declare const NEW_FLOOR_STARTING_POSITION_GREED_MODE: Readonly<Vector>;
133
135
  export declare const NEW_RUN_PLAYER_STARTING_POSITION: Readonly<Vector>;
134
136
  /** Corresponds to the maximum value for `EntityPlayer.SamsonBerserkCharge`. */
135
137
  export declare const MAX_TAINTED_SAMSON_BERSERK_CHARGE = 100000;
138
+ /**
139
+ * The number of dimensions, not including `Dimension.CURRENT`. (This is derived from the
140
+ * `Dimension` enum.)
141
+ */
136
142
  export declare const NUM_DIMENSIONS: number;
143
+ /**
144
+ * An array containing every valid `Dimension`, not including `Dimension.CURRENT`. (This is derived
145
+ * from the `NUM_DIMENSIONS` constant.)
146
+ */
147
+ export declare const DIMENSIONS: readonly Dimension[];
137
148
  /**
138
149
  * The pill pool for each run is comprised of one effect for each unique pill color (minus gold and
139
150
  * horse pills.)
140
151
  */
141
- export declare const NUM_PILLS_IN_POOL: number;
152
+ export declare const NUM_PILL_COLORS_IN_POOL: number;
142
153
  export declare const ONE_BY_ONE_ROOM_GRID_SIZE = 135;
143
154
  export declare const SECOND_IN_MILLISECONDS = 1000;
144
155
  export declare const MINUTE_IN_MILLISECONDS: number;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAGf,YAAY,EACZ,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAWtC;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;EAI7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,gGAAgG;AAChG,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,KAAK,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAE7C;;;;;;GAMG;AAEH,eAAO,MAAM,+BAA+B,iBAAmC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,iBAAiB,4HAOpB,CAAC;AAEX,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,QAA8B,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,eAAe,qrBAmClB,CAAC;AAEX,8EAA8E;AAC9E,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,8EAA8E;AAC9E,eAAO,MAAM,wBAAwB,QAAgC,CAAC;AAEtE,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,KA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M,iCAAiC,SAAU,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,cAAc,QAA+B,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,EAE3B,CAAC;AAEjB;;;GAGG;AAGH,eAAO,MAAM,uBAAuB,QAAyB,CAAC;AAE9D,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,sBAAsB,QAA8B,CAAC;AAElE,mGAAmG;AACnG,eAAO,MAAM,sBAAsB,QAAmB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,QAAmB,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,6FAA6F;AAC7F,eAAO,MAAM,gDAAgD,QAAS,CAAC;AAEvE,4CAA4C;AAC5C,eAAO,MAAM,8BAA8B,QAA4B,CAAC;AAExE,kEAAkE;AAClE,eAAO,MAAM,gBAAgB,KAAkB,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,SAAS,kBAA0B,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,kBAA0B,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,iBAA4B,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,aAAa,kBAAgC,CAAC"}
@@ -1,9 +1,12 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
1
3
  local ____exports = {}
2
4
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
5
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
4
6
  local Dimension = ____isaac_2Dtypescript_2Ddefinitions.Dimension
5
7
  local DisplayFlag = ____isaac_2Dtypescript_2Ddefinitions.DisplayFlag
6
8
  local ItemPoolType = ____isaac_2Dtypescript_2Ddefinitions.ItemPoolType
9
+ local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
7
10
  local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
8
11
  local TrinketSlot = ____isaac_2Dtypescript_2Ddefinitions.TrinketSlot
9
12
  local ____enums = require("src.functions.enums")
@@ -16,6 +19,10 @@ local newReadonlyKColor = ____readOnly.newReadonlyKColor
16
19
  local newReadonlyVector = ____readOnly.newReadonlyVector
17
20
  local ____types = require("src.functions.types")
18
21
  local asCollectibleType = ____types.asCollectibleType
22
+ local ____utils = require("src.functions.utils")
23
+ local eRange = ____utils.eRange
24
+ local ____ReadonlySet = require("src.types.ReadonlySet")
25
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
19
26
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
20
27
  local NUM_NORMAL_PILL_COLORS = ____constantsFirstLast.NUM_NORMAL_PILL_COLORS
21
28
  --- The combination of the following flags:
@@ -31,6 +38,21 @@ ____exports.AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125
31
38
  ____exports.BLIND_ITEM_PNG_PATH = "gfx/items/collectibles/questionmark.png"
32
39
  --- Bombs explode when their frame count is equal to this value.
33
40
  ____exports.BOMB_EXPLODE_FRAME = 45
41
+ ____exports.CHEST_PICKUP_VARIANTS = {
42
+ PickupVariant.CHEST,
43
+ PickupVariant.BOMB_CHEST,
44
+ PickupVariant.SPIKED_CHEST,
45
+ PickupVariant.ETERNAL_CHEST,
46
+ PickupVariant.MIMIC_CHEST,
47
+ PickupVariant.OLD_CHEST,
48
+ PickupVariant.WOODEN_CHEST,
49
+ PickupVariant.MEGA_CHEST,
50
+ PickupVariant.HAUNTED_CHEST,
51
+ PickupVariant.LOCKED_CHEST,
52
+ PickupVariant.RED_CHEST,
53
+ PickupVariant.MOMS_CHEST
54
+ }
55
+ ____exports.CHEST_PICKUP_VARIANTS_SET = __TS__New(ReadonlySet, ____exports.CHEST_PICKUP_VARIANTS)
34
56
  --- This is the initial value of the `EntityPickup.Wait` field after a collectible is spawned.
35
57
  ____exports.COLLECTIBLE_INITIAL_WAIT = 20
36
58
  ____exports.DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE
@@ -169,10 +191,15 @@ ____exports.NEW_FLOOR_STARTING_POSITION_GREED_MODE = newReadonlyVector(nil, 320,
169
191
  ____exports.NEW_RUN_PLAYER_STARTING_POSITION = newReadonlyVector(nil, 320, 380)
170
192
  --- Corresponds to the maximum value for `EntityPlayer.SamsonBerserkCharge`.
171
193
  ____exports.MAX_TAINTED_SAMSON_BERSERK_CHARGE = 100000
194
+ --- The number of dimensions, not including `Dimension.CURRENT`. (This is derived from the
195
+ -- `Dimension` enum.)
172
196
  ____exports.NUM_DIMENSIONS = getEnumLength(nil, Dimension) - 1
197
+ --- An array containing every valid `Dimension`, not including `Dimension.CURRENT`. (This is derived
198
+ -- from the `NUM_DIMENSIONS` constant.)
199
+ ____exports.DIMENSIONS = eRange(nil, ____exports.NUM_DIMENSIONS)
173
200
  --- The pill pool for each run is comprised of one effect for each unique pill color (minus gold and
174
201
  -- horse pills.)
175
- ____exports.NUM_PILLS_IN_POOL = NUM_NORMAL_PILL_COLORS
202
+ ____exports.NUM_PILL_COLORS_IN_POOL = NUM_NORMAL_PILL_COLORS
176
203
  ____exports.ONE_BY_ONE_ROOM_GRID_SIZE = 135
177
204
  ____exports.SECOND_IN_MILLISECONDS = 1000
178
205
  ____exports.MINUTE_IN_MILLISECONDS = 60 * ____exports.SECOND_IN_MILLISECONDS
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Constants relating to the first and last value for various vanilla objects.
3
+ *
4
+ * @module
5
+ */
1
6
  import { CardType, CollectibleType, LevelStage, PillColor, PillEffect, PlayerType, RoomType, TrinketType } from "isaac-typescript-definitions";
2
7
  /** Equal to `CollectibleType.SAD_ONION`. */
3
8
  export declare const FIRST_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION;
@@ -1 +1 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AAO,MAAM,sBAAsB,yBAAyB,CAAC;AAE7D,4CAA4C;AAC5C,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAElE,eAAO,MAAM,sBAAsB,QAG3B,CAAC;AAMT,mCAAmC;AACnC,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAIhD,6CAA6C;AAC7C,eAAO,MAAM,sBAAsB,YAAkC,CAAC;AAMtE,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,UAAgC,CAAC;AAM5D,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,UAAU,YAAkC,CAAC;AAM1D,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB,QAA+B,CAAC"}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Constants relating to collections for various vanilla objects.
3
+ *
4
+ * @module
5
+ */
6
+ import type { CardType, CollectibleType, PillEffect, TrinketType } from "isaac-typescript-definitions";
7
+ /**
8
+ * An array that represents the range from the first vanilla collectible type to the last vanilla
9
+ * collectible type. This will include integers that do not represent any valid collectible types.
10
+ *
11
+ * This function is only useful when building collectible type objects. For most purposes, you
12
+ * should use the `VANILLA_COLLECTIBLE_TYPES` or `VANILLA_COLLECTIBLE_TYPES_SET` constants instead.
13
+ */
14
+ export declare const VANILLA_COLLECTIBLE_TYPE_RANGE: readonly int[];
15
+ /**
16
+ * An array that contains every valid vanilla collectible type, as verified by the
17
+ * `ItemConfig.GetCollectible` method. Vanilla collectible types are not contiguous, so every valid
18
+ * must be verified. (There are several gaps, e.g. 666.)
19
+ *
20
+ * If you need to do O(1) lookups, use the `VANILLA_COLLECTIBLE_TYPES_SET` constant instead.
21
+ */
22
+ export declare const VANILLA_COLLECTIBLE_TYPES: readonly CollectibleType[];
23
+ /**
24
+ * A set that contains every valid vanilla collectible type, as verified by the
25
+ * `ItemConfig.GetCollectible` method. Vanilla collectible types are not contiguous, so every valid
26
+ * must be verified. (There are several gaps, e.g. 666.)
27
+ */
28
+ export declare const VANILLA_COLLECTIBLE_TYPES_SET: ReadonlySet<CollectibleType>;
29
+ /**
30
+ * An array that represents the range from the first vanilla trinket type to the last vanilla
31
+ * trinket type. This will include integers that do not represent any valid trinket types.
32
+ *
33
+ * This function is only useful when building trinket type objects. For most purposes, you should
34
+ * use the `VANILLA_TRINKET_TYPES` or `VANILLA_TRINKET_TYPES_SET` constants instead.
35
+ */
36
+ export declare const VANILLA_TRINKET_TYPE_RANGE: readonly int[];
37
+ /**
38
+ * An array that contains every valid vanilla trinket type, as verified by the
39
+ * `ItemConfig.GetTrinket` method. Vanilla trinket types are not contiguous, so every valid must be
40
+ * verified. (The only gap is 47 for `POLAROID_OBSOLETE`.)
41
+ *
42
+ * If you need to do O(1) lookups, use the `VANILLA_TRINKET_TYPES_SET` constant instead.
43
+ */
44
+ export declare const VANILLA_TRINKET_TYPES: readonly TrinketType[];
45
+ /**
46
+ * A set that contains every valid vanilla trinket type, as verified by the `ItemConfig.GetTrinket`
47
+ * method. Vanilla trinket types are not contiguous, so every valid must be verified. (The only gap
48
+ * is 47 for `POLAROID_OBSOLETE`.)
49
+ */
50
+ export declare const VANILLA_TRINKET_TYPES_SET: ReadonlySet<TrinketType>;
51
+ /**
52
+ * An array that represents the range from the first vanilla card type to the last vanilla card
53
+ * type.
54
+ *
55
+ * This function is only useful when building card type objects. For most purposes, you should use
56
+ * the `VANILLA_CARD_TYPES` or `VANILLA_CARD_TYPES_SET` constants instead.
57
+ */
58
+ export declare const VANILLA_CARD_TYPE_RANGE: readonly int[];
59
+ /**
60
+ * An array that contains every valid vanilla card type, as verified by the `ItemConfig.GetCard`
61
+ * method. Vanilla card types are contiguous, but we validate every entry to double check.
62
+ *
63
+ * If you need to do O(1) lookups, use the `VANILLA_CARD_TYPES_SET` constant instead.
64
+ */
65
+ export declare const VANILLA_CARD_TYPES: readonly CardType[];
66
+ /**
67
+ * A set that contains every valid vanilla card type, as verified by the `ItemConfig.GetCard`
68
+ * method. Vanilla card types are contiguous, but we validate every entry to double check.
69
+ */
70
+ export declare const VANILLA_CARD_TYPES_SET: ReadonlySet<CardType>;
71
+ /**
72
+ * An array that represents the range from the first vanilla pill effect to the last vanilla pill
73
+ * effect.
74
+ *
75
+ * This function is only useful when building pill effect objects. For most purposes, you should use
76
+ * the `VANILLA_PILL_EFFECTS` or `VANILLA_PILL_EFFECTS_SET` constants instead.
77
+ */
78
+ export declare const VANILLA_PILL_EFFECT_RANGE: readonly int[];
79
+ /**
80
+ * An array that contains every valid vanilla pill effect, as verified by the
81
+ * `ItemConfig.GetPillEffect` method. Vanilla pill effects are contiguous, but we validate every
82
+ * entry to double check.
83
+ *
84
+ * If you need to do O(1) lookups, use the `VANILLA_PILL_EFFECT_SET` constant instead.
85
+ */
86
+ export declare const VANILLA_PILL_EFFECTS: readonly PillEffect[];
87
+ /**
88
+ * A set that contains every valid vanilla pill effect, as verified by the
89
+ * `ItemConfig.GetPillEffect` method. Vanilla pill effects are contiguous, but we validate every
90
+ * entry to double check.
91
+ */
92
+ export declare const VANILLA_PILL_EFFECTS_SET: ReadonlySet<PillEffect>;
93
+ //# sourceMappingURL=constantsVanilla.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constantsVanilla.d.ts","sourceRoot":"","sources":["../../../src/core/constantsVanilla.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,UAAU,EACV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAyBtC;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,EAAE,SAAS,GAAG,EAGxD,CAAC;AAEF;;;;;;GAMG;AAEH,eAAO,MAAM,yBAAyB,EAAE,SAAS,eAAe,EAK5D,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,8BAEzC,CAAC;AAMF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,GAAG,EAGpD,CAAC;AAEF;;;;;;GAMG;AAEH,eAAO,MAAM,qBAAqB,EAAE,SAAS,WAAW,EAKpD,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,0BAAyC,CAAC;AAMhF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,GAAG,EAGjD,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,kBAAkB,EAAE,SAAS,QAAQ,EAK9C,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,sBAAsB,uBAAsC,CAAC;AAM1E;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,GAAG,EAGnD,CAAC;AAEF;;;;;;GAMG;AAEH,eAAO,MAAM,oBAAoB,EAAE,SAAS,UAAU,EAKlD,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,yBAAwC,CAAC"}
@@ -0,0 +1,115 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local ____types = require("src.functions.types")
6
+ local asCardType = ____types.asCardType
7
+ local asCollectibleType = ____types.asCollectibleType
8
+ local asPillEffect = ____types.asPillEffect
9
+ local asTrinketType = ____types.asTrinketType
10
+ local ____utils = require("src.functions.utils")
11
+ local iRange = ____utils.iRange
12
+ local ____ReadonlySet = require("src.types.ReadonlySet")
13
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
14
+ local ____cachedClasses = require("src.core.cachedClasses")
15
+ local itemConfig = ____cachedClasses.itemConfig
16
+ local ____constantsFirstLast = require("src.core.constantsFirstLast")
17
+ local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
18
+ local FIRST_COLLECTIBLE_TYPE = ____constantsFirstLast.FIRST_COLLECTIBLE_TYPE
19
+ local FIRST_PILL_EFFECT = ____constantsFirstLast.FIRST_PILL_EFFECT
20
+ local FIRST_TRINKET_TYPE = ____constantsFirstLast.FIRST_TRINKET_TYPE
21
+ local LAST_VANILLA_CARD_TYPE = ____constantsFirstLast.LAST_VANILLA_CARD_TYPE
22
+ local LAST_VANILLA_COLLECTIBLE_TYPE = ____constantsFirstLast.LAST_VANILLA_COLLECTIBLE_TYPE
23
+ local LAST_VANILLA_PILL_EFFECT = ____constantsFirstLast.LAST_VANILLA_PILL_EFFECT
24
+ local LAST_VANILLA_TRINKET_TYPE = ____constantsFirstLast.LAST_VANILLA_TRINKET_TYPE
25
+ --- An array that represents the range from the first vanilla collectible type to the last vanilla
26
+ -- collectible type. This will include integers that do not represent any valid collectible types.
27
+ --
28
+ -- This function is only useful when building collectible type objects. For most purposes, you
29
+ -- should use the `VANILLA_COLLECTIBLE_TYPES` or `VANILLA_COLLECTIBLE_TYPES_SET` constants instead.
30
+ ____exports.VANILLA_COLLECTIBLE_TYPE_RANGE = iRange(nil, FIRST_COLLECTIBLE_TYPE, LAST_VANILLA_COLLECTIBLE_TYPE)
31
+ --- An array that contains every valid vanilla collectible type, as verified by the
32
+ -- `ItemConfig.GetCollectible` method. Vanilla collectible types are not contiguous, so every valid
33
+ -- must be verified. (There are several gaps, e.g. 666.)
34
+ --
35
+ -- If you need to do O(1) lookups, use the `VANILLA_COLLECTIBLE_TYPES_SET` constant instead.
36
+ ____exports.VANILLA_COLLECTIBLE_TYPES = __TS__ArrayFilter(
37
+ ____exports.VANILLA_COLLECTIBLE_TYPE_RANGE,
38
+ function(____, potentialCollectibleType)
39
+ local collectibleType = asCollectibleType(nil, potentialCollectibleType)
40
+ local itemConfigItem = itemConfig:GetCollectible(collectibleType)
41
+ return itemConfigItem ~= nil
42
+ end
43
+ )
44
+ --- A set that contains every valid vanilla collectible type, as verified by the
45
+ -- `ItemConfig.GetCollectible` method. Vanilla collectible types are not contiguous, so every valid
46
+ -- must be verified. (There are several gaps, e.g. 666.)
47
+ ____exports.VANILLA_COLLECTIBLE_TYPES_SET = __TS__New(ReadonlySet, ____exports.VANILLA_COLLECTIBLE_TYPES)
48
+ --- An array that represents the range from the first vanilla trinket type to the last vanilla
49
+ -- trinket type. This will include integers that do not represent any valid trinket types.
50
+ --
51
+ -- This function is only useful when building trinket type objects. For most purposes, you should
52
+ -- use the `VANILLA_TRINKET_TYPES` or `VANILLA_TRINKET_TYPES_SET` constants instead.
53
+ ____exports.VANILLA_TRINKET_TYPE_RANGE = iRange(nil, FIRST_TRINKET_TYPE, LAST_VANILLA_TRINKET_TYPE)
54
+ --- An array that contains every valid vanilla trinket type, as verified by the
55
+ -- `ItemConfig.GetTrinket` method. Vanilla trinket types are not contiguous, so every valid must be
56
+ -- verified. (The only gap is 47 for `POLAROID_OBSOLETE`.)
57
+ --
58
+ -- If you need to do O(1) lookups, use the `VANILLA_TRINKET_TYPES_SET` constant instead.
59
+ ____exports.VANILLA_TRINKET_TYPES = __TS__ArrayFilter(
60
+ ____exports.VANILLA_TRINKET_TYPE_RANGE,
61
+ function(____, potentialTrinketType)
62
+ local trinketType = asTrinketType(nil, potentialTrinketType)
63
+ local itemConfigTrinket = itemConfig:GetTrinket(trinketType)
64
+ return itemConfigTrinket ~= nil
65
+ end
66
+ )
67
+ --- A set that contains every valid vanilla trinket type, as verified by the `ItemConfig.GetTrinket`
68
+ -- method. Vanilla trinket types are not contiguous, so every valid must be verified. (The only gap
69
+ -- is 47 for `POLAROID_OBSOLETE`.)
70
+ ____exports.VANILLA_TRINKET_TYPES_SET = __TS__New(ReadonlySet, ____exports.VANILLA_TRINKET_TYPES)
71
+ --- An array that represents the range from the first vanilla card type to the last vanilla card
72
+ -- type.
73
+ --
74
+ -- This function is only useful when building card type objects. For most purposes, you should use
75
+ -- the `VANILLA_CARD_TYPES` or `VANILLA_CARD_TYPES_SET` constants instead.
76
+ ____exports.VANILLA_CARD_TYPE_RANGE = iRange(nil, FIRST_CARD_TYPE, LAST_VANILLA_CARD_TYPE)
77
+ --- An array that contains every valid vanilla card type, as verified by the `ItemConfig.GetCard`
78
+ -- method. Vanilla card types are contiguous, but we validate every entry to double check.
79
+ --
80
+ -- If you need to do O(1) lookups, use the `VANILLA_CARD_TYPES_SET` constant instead.
81
+ ____exports.VANILLA_CARD_TYPES = __TS__ArrayFilter(
82
+ ____exports.VANILLA_CARD_TYPE_RANGE,
83
+ function(____, potentialCardType)
84
+ local cardType = asCardType(nil, potentialCardType)
85
+ local itemConfigCard = itemConfig:GetCard(cardType)
86
+ return itemConfigCard ~= nil
87
+ end
88
+ )
89
+ --- A set that contains every valid vanilla card type, as verified by the `ItemConfig.GetCard`
90
+ -- method. Vanilla card types are contiguous, but we validate every entry to double check.
91
+ ____exports.VANILLA_CARD_TYPES_SET = __TS__New(ReadonlySet, ____exports.VANILLA_CARD_TYPES)
92
+ --- An array that represents the range from the first vanilla pill effect to the last vanilla pill
93
+ -- effect.
94
+ --
95
+ -- This function is only useful when building pill effect objects. For most purposes, you should use
96
+ -- the `VANILLA_PILL_EFFECTS` or `VANILLA_PILL_EFFECTS_SET` constants instead.
97
+ ____exports.VANILLA_PILL_EFFECT_RANGE = iRange(nil, FIRST_PILL_EFFECT, LAST_VANILLA_PILL_EFFECT)
98
+ --- An array that contains every valid vanilla pill effect, as verified by the
99
+ -- `ItemConfig.GetPillEffect` method. Vanilla pill effects are contiguous, but we validate every
100
+ -- entry to double check.
101
+ --
102
+ -- If you need to do O(1) lookups, use the `VANILLA_PILL_EFFECT_SET` constant instead.
103
+ ____exports.VANILLA_PILL_EFFECTS = __TS__ArrayFilter(
104
+ ____exports.VANILLA_PILL_EFFECT_RANGE,
105
+ function(____, potentialPillEffect)
106
+ local pillEffect = asPillEffect(nil, potentialPillEffect)
107
+ local itemConfigPillEffect = itemConfig:GetPillEffect(pillEffect)
108
+ return itemConfigPillEffect ~= nil
109
+ end
110
+ )
111
+ --- A set that contains every valid vanilla pill effect, as verified by the
112
+ -- `ItemConfig.GetPillEffect` method. Vanilla pill effects are contiguous, but we validate every
113
+ -- entry to double check.
114
+ ____exports.VANILLA_PILL_EFFECTS_SET = __TS__New(ReadonlySet, ____exports.VANILLA_PILL_EFFECTS)
115
+ return ____exports
@@ -16,6 +16,9 @@ function initOptionalFeatures(self, mod, features)
16
16
  for ____, ____value in ipairs(exportedMethodTuples) do
17
17
  local funcName = ____value[1]
18
18
  local func = ____value[2]
19
+ if modRecord[funcName] ~= nil then
20
+ error(("Failed to upgrade the mod since two or more features share the name function name of \"" .. funcName) .. "\". This should never happen, so report this error to the library authors.")
21
+ end
19
22
  modRecord[funcName] = func
20
23
  end
21
24
  end
@@ -19,13 +19,6 @@ export declare function getCardName(cardType: CardType): string;
19
19
  * Returns undefined if the provided card type was not valid.
20
20
  */
21
21
  export declare function getItemConfigCardType(cardType: CardType): ItemConfigCardType | undefined;
22
- /**
23
- * Helper function to get an array with every valid vanilla card sub-type.
24
- *
25
- * Note that unlike collectibles and trinkets, there are no gaps in the card types, so this is a
26
- * simple range from the first card type to the last vanilla card type.
27
- */
28
- export declare function getVanillaCardTypes(): CardType[];
29
22
  /**
30
23
  * Returns true for cards that have the following card type:
31
24
  * - CardType.TAROT
@@ -1 +1 @@
1
- {"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../../src/functions/cards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAW,MAAM,8BAA8B,CAAC;AAe3E;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAgB7D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAgBtD;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,QAAQ,GACjB,kBAAkB,GAAG,SAAS,CAOhC;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,QAAQ,EAAE,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM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,GAAG,MAAM,CAgBtD;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,QAAQ,GACjB,kBAAkB,GAAG,SAAS,CAOhC;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAOlD;AAED,uFAAuF;AACvF,wBAAgB,UAAU,CACxB,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE,kBAAkB,GACrC,OAAO,CAET;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE5D;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE9D;AAED,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE9D;AAED,kEAAkE;AAClE,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAElD;AAED,qEAAqE;AACrE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEzD;AAED,kEAAkE;AAClE,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEtD;AAED,mEAAmE;AACnE,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEvD;AAED,iDAAiD;AACjD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE7D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAG1E"}
@@ -5,7 +5,6 @@ local UseFlag = ____isaac_2Dtypescript_2Ddefinitions.UseFlag
5
5
  local ____cachedClasses = require("src.core.cachedClasses")
6
6
  local itemConfig = ____cachedClasses.itemConfig
7
7
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
8
- local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
9
8
  local LAST_VANILLA_CARD_TYPE = ____constantsFirstLast.LAST_VANILLA_CARD_TYPE
10
9
  local ____cardDescriptions = require("src.objects.cardDescriptions")
11
10
  local CARD_DESCRIPTIONS = ____cardDescriptions.CARD_DESCRIPTIONS
@@ -17,8 +16,6 @@ local ____itemConfigCardTypesForCardsSet = require("src.sets.itemConfigCardTypes
17
16
  local ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET = ____itemConfigCardTypesForCardsSet.ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET
18
17
  local ____flag = require("src.functions.flag")
19
18
  local addFlag = ____flag.addFlag
20
- local ____utils = require("src.functions.utils")
21
- local iRange = ____utils.iRange
22
19
  --- Returns true for any vanilla card or rune.
23
20
  function ____exports.isVanillaCardType(self, cardType)
24
21
  return cardType <= LAST_VANILLA_CARD_TYPE
@@ -62,13 +59,6 @@ function ____exports.getItemConfigCardType(self, cardType)
62
59
  end
63
60
  return itemConfigCard.CardType
64
61
  end
65
- --- Helper function to get an array with every valid vanilla card sub-type.
66
- --
67
- -- Note that unlike collectibles and trinkets, there are no gaps in the card types, so this is a
68
- -- simple range from the first card type to the last vanilla card type.
69
- function ____exports.getVanillaCardTypes(self)
70
- return iRange(nil, FIRST_CARD_TYPE, LAST_VANILLA_CARD_TYPE)
71
- end
72
62
  --- Returns true for cards that have the following card type:
73
63
  -- - CardType.TAROT
74
64
  -- - CardType.SUIT
@@ -84,16 +84,6 @@ export declare function getCollectibleQuality(collectibleOrCollectibleType: Enti
84
84
  * ```
85
85
  */
86
86
  export declare function getCollectibleTags(collectibleOrCollectibleType: EntityPickup | CollectibleType): BitFlags<ItemConfigTag>;
87
- /**
88
- * Helper function to get an array that represents the range from the first collectible type to the
89
- * last vanilla collectible type. This will include integers that do not represent any valid
90
- * collectible types.
91
- *
92
- * This function is only useful when building collectible type objects. For most purposes, you
93
- * should use the `getVanillaCollectibleArray` or `getVanillaCollectibleSet` helper functions
94
- * instead (which are part of `ISCFeature.MODDED_ELEMENT_SETS`).
95
- */
96
- export declare function getVanillaCollectibleTypeRange(): CollectibleType[];
97
87
  /** Returns true if the item type in the item config is equal to `ItemType.ITEM_ACTIVE`. */
98
88
  export declare function isActiveCollectible(collectibleType: CollectibleType): boolean;
99
89
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"collectibles.d.ts","sourceRoot":"","sources":["../../../src/functions/collectibles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,uBAAuB,EACvB,aAAa,EACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,eAAe,EAEf,oBAAoB,EAEpB,QAAQ,EACR,WAAW,EAGZ,MAAM,8BAA8B,CAAC;AA0CtC,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAStE;AAED,iGAAiG;AACjG,wBAAgB,uBAAuB,CACrC,4BAA4B,EAAE,YAAY,GAAG,eAAe,EAC5D,SAAS,EAAE,SAAS,GACnB,OAAO,CAYT;AAED,6FAA6F;AAC7F,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,OAAO,CAsBT;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,4BAA4B,EAAE,YAAY,GAAG,eAAe,GAC3D,oBAAoB,CAYtB;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,4BAA4B,EAAE,YAAY,GAAG,eAAe,GAC3D,MAAM,CAoBR;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,4BAA4B,EAAE,YAAY,GAAG,eAAe,GAC3D,GAAG,CAgBL;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,4BAA4B,EAAE,YAAY,GAAG,eAAe,EAC5D,MAAM,EAAE,YAAY,GACnB,WAAW,CA6Bb;AAED;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,4BAA4B,EAAE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C,eAAe,EAAE,eAAe,GAC/B,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,eAAe,GAAG,CAAC,CAAC,GACpC,MAAM,CAiBR;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAS5E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CASnE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAUnE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAuBtE;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,YAAY,EACzB,uBAAuB,EAAE,uBAAuB,GAC/C,IAAI,CAWN;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,YAAY,EACzB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,IAAI,CAqBN;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,YAAY,EACzB,kBAAkB,EAAE,eAAe,GAClC,IAAI,CA2BN;AAED;;;GAGG;AACH,wBAAgB,qCAAqC,IAAI,IAAI,CAK5D"}
@@ -17,7 +17,6 @@ local ____constants = require("src.core.constants")
17
17
  local BLIND_ITEM_PNG_PATH = ____constants.BLIND_ITEM_PNG_PATH
18
18
  local DEFAULT_ITEM_POOL_TYPE = ____constants.DEFAULT_ITEM_POOL_TYPE
19
19
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
20
- local FIRST_COLLECTIBLE_TYPE = ____constantsFirstLast.FIRST_COLLECTIBLE_TYPE
21
20
  local LAST_VANILLA_COLLECTIBLE_TYPE = ____constantsFirstLast.LAST_VANILLA_COLLECTIBLE_TYPE
22
21
  local ____collectibleDescriptionMap = require("src.maps.collectibleDescriptionMap")
23
22
  local COLLECTIBLE_DESCRIPTION_MAP = ____collectibleDescriptionMap.COLLECTIBLE_DESCRIPTION_MAP
@@ -38,8 +37,6 @@ local clearSprite = ____sprites.clearSprite
38
37
  local spriteEquals = ____sprites.spriteEquals
39
38
  local ____types = require("src.functions.types")
40
39
  local isInteger = ____types.isInteger
41
- local ____utils = require("src.functions.utils")
42
- local iRange = ____utils.iRange
43
40
  function initQuestionMarkSprite(self)
44
41
  local sprite = Sprite()
45
42
  sprite:Load("gfx/005.100_collectible.anm2", false)
@@ -317,16 +314,6 @@ function ____exports.getCollectibleTags(self, collectibleOrCollectibleType)
317
314
  local itemConfigItem = itemConfig:GetCollectible(collectibleType)
318
315
  return itemConfigItem == nil and ItemConfigTagZero or itemConfigItem.Tags
319
316
  end
320
- --- Helper function to get an array that represents the range from the first collectible type to the
321
- -- last vanilla collectible type. This will include integers that do not represent any valid
322
- -- collectible types.
323
- --
324
- -- This function is only useful when building collectible type objects. For most purposes, you
325
- -- should use the `getVanillaCollectibleArray` or `getVanillaCollectibleSet` helper functions
326
- -- instead (which are part of `ISCFeature.MODDED_ELEMENT_SETS`).
327
- function ____exports.getVanillaCollectibleTypeRange(self)
328
- return iRange(nil, FIRST_COLLECTIBLE_TYPE, LAST_VANILLA_COLLECTIBLE_TYPE)
329
- end
330
317
  --- Returns true if the item type in the item config is equal to `ItemType.ITEM_ACTIVE`.
331
318
  function ____exports.isActiveCollectible(self, collectibleType)
332
319
  local itemType = ____exports.getCollectibleItemType(nil, collectibleType)
@@ -1,8 +1,4 @@
1
1
  import { Dimension } from "isaac-typescript-definitions";
2
- /**
3
- * Helper function to get an array with every valid `Dimension` (not including `Dimension.CURRENT`).
4
- */
5
- export declare function getAllDimensions(): Dimension[];
6
2
  /**
7
3
  * Helper function to get the current dimension. Most of the time, this will be `Dimension.MAIN`,
8
4
  * but it can change if e.g. the player is in the mirror world of Downpour/Dross.
@@ -1 +1 @@
1
- {"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../src/functions/dimensions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAMzD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,SAAS,EAAE,CAE9C;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,SAAS,CAmBxC;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAEzD"}
1
+ {"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../src/functions/dimensions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAKzD;;;GAGG;AACH,wBAAgB,YAAY,IAAI,SAAS,CAmBxC;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAEzD"}
@@ -4,15 +4,9 @@ local Dimension = ____isaac_2Dtypescript_2Ddefinitions.Dimension
4
4
  local ____cachedClasses = require("src.core.cachedClasses")
5
5
  local game = ____cachedClasses.game
6
6
  local ____constants = require("src.core.constants")
7
- local NUM_DIMENSIONS = ____constants.NUM_DIMENSIONS
7
+ local DIMENSIONS = ____constants.DIMENSIONS
8
8
  local ____roomData = require("src.functions.roomData")
9
9
  local getRoomGridIndex = ____roomData.getRoomGridIndex
10
- local ____utils = require("src.functions.utils")
11
- local eRange = ____utils.eRange
12
- --- Helper function to get an array with every valid `Dimension` (not including `Dimension.CURRENT`).
13
- function ____exports.getAllDimensions(self)
14
- return eRange(nil, NUM_DIMENSIONS)
15
- end
16
10
  --- Helper function to get the current dimension. Most of the time, this will be `Dimension.MAIN`,
17
11
  -- but it can change if e.g. the player is in the mirror world of Downpour/Dross.
18
12
  function ____exports.getDimension(self)
@@ -20,7 +14,7 @@ function ____exports.getDimension(self)
20
14
  local roomGridIndex = getRoomGridIndex(nil)
21
15
  local roomDescription = level:GetRoomByIdx(roomGridIndex, Dimension.CURRENT)
22
16
  local currentRoomHash = GetPtrHash(roomDescription)
23
- for ____, dimension in ipairs(____exports.getAllDimensions(nil)) do
17
+ for ____, dimension in ipairs(DIMENSIONS) do
24
18
  local dimensionRoomDescription = level:GetRoomByIdx(roomGridIndex, dimension)
25
19
  local dimensionRoomHash = GetPtrHash(dimensionRoomDescription)
26
20
  if dimensionRoomHash == currentRoomHash then
@@ -1,11 +1,11 @@
1
1
  local ____lualib = require("lualib_bundle")
2
2
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
3
3
  local ____exports = {}
4
+ local ____constants = require("src.core.constants")
5
+ local CHEST_PICKUP_VARIANTS_SET = ____constants.CHEST_PICKUP_VARIANTS_SET
4
6
  local ____coinSubTypeToValue = require("src.objects.coinSubTypeToValue")
5
7
  local COIN_SUB_TYPE_TO_VALUE = ____coinSubTypeToValue.COIN_SUB_TYPE_TO_VALUE
6
8
  local DEFAULT_COIN_VALUE = ____coinSubTypeToValue.DEFAULT_COIN_VALUE
7
- local ____chestPickupVariantsSet = require("src.sets.chestPickupVariantsSet")
8
- local CHEST_PICKUP_VARIANTS = ____chestPickupVariantsSet.CHEST_PICKUP_VARIANTS
9
9
  local ____redHeartSubTypesSet = require("src.sets.redHeartSubTypesSet")
10
10
  local RED_HEART_SUB_TYPES_SET = ____redHeartSubTypesSet.RED_HEART_SUB_TYPES_SET
11
11
  local ____entities = require("src.functions.entities")
@@ -16,7 +16,7 @@ local ____pickupsSpecific = require("src.functions.pickupsSpecific")
16
16
  local getHearts = ____pickupsSpecific.getHearts
17
17
  --- Helper function to test if the provided pickup variant matches one of the various chest variants.
18
18
  function ____exports.isChestVariant(self, pickupVariant)
19
- return CHEST_PICKUP_VARIANTS:has(pickupVariant)
19
+ return CHEST_PICKUP_VARIANTS_SET:has(pickupVariant)
20
20
  end
21
21
  --- Helper function to get the corresponding coin amount from a `CoinSubType`. Returns 1 for modded
22
22
  -- sub-types.
@@ -75,8 +75,6 @@ export declare function getPillEffectName(pillEffect: PillEffect): string;
75
75
  * will always return `DEFAULT_PILL_EFFECT_TYPE` in those cases.
76
76
  */
77
77
  export declare function getPillEffectType(pillEffect: PillEffect): ItemConfigPillEffectType;
78
- /** Helper function to get an array with every vanilla pill effect. */
79
- export declare function getVanillaPillEffects(): PillEffect[];
80
78
  /** Helper function to see if the given pill color is either a gold pill or a horse gold pill. */
81
79
  export declare function isGoldPill(pillColor: PillColor): boolean;
82
80
  /** Helper function to see if the given pill color is a horse pill. */
@@ -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;AAqCzD;;;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,kBAAkB,CAChC,UAAU,EAAE,UAAU,GACrB,yBAAyB,CAQ3B;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,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,SAAS,CAWxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,UAAU,GACrB,yBAAyB,CAQ3B;AAED;;;;GAIG;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"}
@@ -11,7 +11,6 @@ local itemConfig = ____cachedClasses.itemConfig
11
11
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
12
12
  local FIRST_HORSE_PILL_COLOR = ____constantsFirstLast.FIRST_HORSE_PILL_COLOR
13
13
  local FIRST_PILL_COLOR = ____constantsFirstLast.FIRST_PILL_COLOR
14
- local FIRST_PILL_EFFECT = ____constantsFirstLast.FIRST_PILL_EFFECT
15
14
  local LAST_HORSE_PILL_COLOR = ____constantsFirstLast.LAST_HORSE_PILL_COLOR
16
15
  local LAST_NORMAL_PILL_COLOR = ____constantsFirstLast.LAST_NORMAL_PILL_COLOR
17
16
  local LAST_VANILLA_PILL_EFFECT = ____constantsFirstLast.LAST_VANILLA_PILL_EFFECT
@@ -145,10 +144,6 @@ function ____exports.getPillEffectType(self, pillEffect)
145
144
  local pillEffectClass = PILL_EFFECT_TYPES[pillEffect]
146
145
  return pillEffectClass or DEFAULT_PILL_EFFECT_TYPE
147
146
  end
148
- --- Helper function to get an array with every vanilla pill effect.
149
- function ____exports.getVanillaPillEffects(self)
150
- return iRange(nil, FIRST_PILL_EFFECT, LAST_VANILLA_PILL_EFFECT)
151
- end
152
147
  --- Helper function to see if the given pill color is either a gold pill or a horse gold pill.
153
148
  function ____exports.isGoldPill(self, pillColor)
154
149
  return pillColor == PillColor.GOLD or pillColor == PillColor.HORSE_GOLD
@@ -28,6 +28,7 @@ local ____cachedClasses = require("src.core.cachedClasses")
28
28
  local game = ____cachedClasses.game
29
29
  local sfxManager = ____cachedClasses.sfxManager
30
30
  local ____constants = require("src.core.constants")
31
+ local DIMENSIONS = ____constants.DIMENSIONS
31
32
  local MAX_LEVEL_GRID_INDEX = ____constants.MAX_LEVEL_GRID_INDEX
32
33
  local ____roomTypeNames = require("src.objects.roomTypeNames")
33
34
  local ROOM_TYPE_NAMES = ____roomTypeNames.ROOM_TYPE_NAMES
@@ -36,7 +37,6 @@ local MINE_SHAFT_ROOM_SUB_TYPE_SET = ____mineShaftRoomSubTypesSet.MINE_SHAFT_ROO
36
37
  local ____ReadonlySet = require("src.types.ReadonlySet")
37
38
  local ReadonlySet = ____ReadonlySet.ReadonlySet
38
39
  local ____dimensions = require("src.functions.dimensions")
39
- local getAllDimensions = ____dimensions.getAllDimensions
40
40
  local inDimension = ____dimensions.inDimension
41
41
  local ____doors = require("src.functions.doors")
42
42
  local closeAllDoors = ____doors.closeAllDoors
@@ -106,7 +106,7 @@ function ____exports.getRoomsInsideGrid(self, includeExtraDimensionalRooms)
106
106
  includeExtraDimensionalRooms = false
107
107
  end
108
108
  local level = game:GetLevel()
109
- local dimensions = includeExtraDimensionalRooms and getAllDimensions(nil) or ({Dimension.CURRENT})
109
+ local dimensions = includeExtraDimensionalRooms and DIMENSIONS or ({Dimension.CURRENT})
110
110
  --- We use a map instead of an array because room shapes occupy more than one room grid index.
111
111
  local roomDescriptorMap = __TS__New(Map)
112
112
  for ____, dimension in ipairs(dimensions) do
@@ -69,15 +69,6 @@ export declare function getTrinketGfxFilename(trinketType: TrinketType): string;
69
69
  * This function works for both vanilla and modded trinkets.
70
70
  */
71
71
  export declare function getTrinketName(trinketType: TrinketType): string;
72
- /**
73
- * Helper function to get an array that represents the range from the first trinket type to the last
74
- * vanilla trinket type. This will include integers that do not represent any valid trinket types.
75
- *
76
- * This function is only useful when building collectible type objects. For most purposes, you
77
- * should use the `getVanillaTrinketArray` or `getVanillaTrinketSet` helper functions instead (which
78
- * are part of `ISCFeature.MODDED_ELEMENT_SETS`).
79
- */
80
- export declare function getVanillaTrinketTypeRange(): TrinketType[];
81
72
  /** Helper function to check to see if the player is holding one or more trinkets. */
82
73
  export declare function hasAnyTrinket(player: EntityPlayer): boolean;
83
74
  /**