isaacscript-common 76.3.0 → 77.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 (33) hide show
  1. package/dist/classes/features/other/FlyingDetection.lua +2 -3
  2. package/dist/classes/features/other/ItemPoolDetection.d.ts +1 -1
  3. package/dist/classes/features/other/ItemPoolDetection.d.ts.map +1 -1
  4. package/dist/classes/features/other/ModdedElementSets.d.ts +20 -20
  5. package/dist/classes/features/other/ModdedElementSets.d.ts.map +1 -1
  6. package/dist/classes/features/other/ModdedElementSets.lua +75 -86
  7. package/dist/functions/array.d.ts +3 -3
  8. package/dist/functions/array.d.ts.map +1 -1
  9. package/dist/functions/array.lua +34 -28
  10. package/dist/functions/cards.lua +3 -3
  11. package/dist/functions/collectibles.d.ts +2 -2
  12. package/dist/functions/collectibles.d.ts.map +1 -1
  13. package/dist/functions/collectibles.lua +4 -5
  14. package/dist/functions/pills.d.ts +3 -3
  15. package/dist/functions/pills.d.ts.map +1 -1
  16. package/dist/functions/playerTrinkets.d.ts +1 -1
  17. package/dist/functions/playerTrinkets.d.ts.map +1 -1
  18. package/dist/index.rollup.d.ts +30 -30
  19. package/dist/isaacscript-common.lua +121 -128
  20. package/dist/sets/{itemConfigCardTypesForCardsSet.d.ts → itemConfigCardTypesForCards.d.ts} +2 -2
  21. package/dist/sets/itemConfigCardTypesForCards.d.ts.map +1 -0
  22. package/dist/sets/{itemConfigCardTypesForCardsSet.lua → itemConfigCardTypesForCards.lua} +1 -1
  23. package/dist/tsdoc-metadata.json +1 -1
  24. package/package.json +2 -2
  25. package/src/classes/features/other/ItemPoolDetection.ts +1 -1
  26. package/src/classes/features/other/ModdedElementSets.ts +106 -121
  27. package/src/functions/array.ts +12 -5
  28. package/src/functions/cards.ts +2 -2
  29. package/src/functions/collectibles.ts +7 -7
  30. package/src/functions/pills.ts +3 -3
  31. package/src/functions/playerTrinkets.ts +3 -1
  32. package/src/sets/{itemConfigCardTypesForCardsSet.ts → itemConfigCardTypesForCards.ts} +3 -1
  33. package/dist/sets/itemConfigCardTypesForCardsSet.d.ts.map +0 -1
@@ -1,9 +1,9 @@
1
1
  local ____lualib = require("lualib_bundle")
2
2
  local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
3
+ local __TS__New = ____lualib.__TS__New
3
4
  local __TS__ArrayIndexOf = ____lualib.__TS__ArrayIndexOf
4
5
  local __TS__ArraySplice = ____lualib.__TS__ArraySplice
5
6
  local __TS__ArrayPushArray = ____lualib.__TS__ArrayPushArray
6
- local __TS__New = ____lualib.__TS__New
7
7
  local __TS__ArrayEntries = ____lualib.__TS__ArrayEntries
8
8
  local __TS__Iterator = ____lualib.__TS__Iterator
9
9
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
@@ -59,28 +59,6 @@ function ____exports.arrayRemoveAllInPlace(self, array, ...)
59
59
  end
60
60
  return removedOneOrMoreElements
61
61
  end
62
- --- Removes the specified element(s) from the array. If the specified element(s) are not found in the
63
- -- array, this function will do nothing.
64
- --
65
- -- This function is variadic, meaning that you can specify N arguments to remove N elements.
66
- --
67
- -- If there is more than one matching element in the array, this function will only remove the first
68
- -- matching element. If you want to remove all of the elements, use the `arrayRemoveAllInPlace`
69
- -- function instead.
70
- --
71
- -- @returns The removed elements. This will be an empty array if no elements were removed.
72
- function ____exports.arrayRemoveInPlace(self, array, ...)
73
- local elementsToRemove = {...}
74
- local removedElements = {}
75
- for ____, element in ipairs(elementsToRemove) do
76
- local index = __TS__ArrayIndexOf(array, element)
77
- if index > -1 then
78
- local removedElement = __TS__ArraySplice(array, index, 1)
79
- __TS__ArrayPushArray(removedElements, removedElement)
80
- end
81
- end
82
- return removedElements
83
- end
84
62
  --- Helper function to perform a shallow copy.
85
63
  --
86
64
  -- @param oldArray The array to copy.
@@ -191,9 +169,9 @@ function ____exports.arrayEquals(self, array1, array2)
191
169
  end
192
170
  )
193
171
  end
194
- --- Shallow copies and removes the specified element(s) from the array. Returns the copied array. If
195
- -- the specified element(s) are not found in the array, it will simply return a shallow copy of the
196
- -- array.
172
+ --- Builds a new array based on the original array without the specified element(s). Returns the new
173
+ -- array. If the specified element(s) are not found in the array, it will simply return a shallow
174
+ -- copy of the array.
197
175
  --
198
176
  -- This function is variadic, meaning that you can specify N arguments to remove N elements.
199
177
  --
@@ -201,8 +179,14 @@ end
201
179
  -- matching element. If you want to remove all of the elements, use the `arrayRemoveAll` function
202
180
  -- instead.
203
181
  function ____exports.arrayRemove(self, originalArray, ...)
204
- local array = ____exports.copyArray(nil, originalArray)
205
- ____exports.arrayRemoveInPlace(nil, array, ...)
182
+ local elementsToRemove = {...}
183
+ local elementsToRemoveSet = __TS__New(ReadonlySet, elementsToRemove)
184
+ local array = {}
185
+ for ____, element in ipairs(originalArray) do
186
+ if not elementsToRemoveSet:has(element) then
187
+ array[#array + 1] = element
188
+ end
189
+ end
206
190
  return array
207
191
  end
208
192
  --- Shallow copies and removes the specified element(s) from the array. Returns the copied array. If
@@ -219,6 +203,28 @@ function ____exports.arrayRemoveAll(self, originalArray, ...)
219
203
  ____exports.arrayRemoveAllInPlace(nil, array, ...)
220
204
  return array
221
205
  end
206
+ --- Removes the specified element(s) from the array. If the specified element(s) are not found in the
207
+ -- array, this function will do nothing.
208
+ --
209
+ -- This function is variadic, meaning that you can specify N arguments to remove N elements.
210
+ --
211
+ -- If there is more than one matching element in the array, this function will only remove the first
212
+ -- matching element. If you want to remove all of the elements, use the `arrayRemoveAllInPlace`
213
+ -- function instead.
214
+ --
215
+ -- @returns The removed elements. This will be an empty array if no elements were removed.
216
+ function ____exports.arrayRemoveInPlace(self, array, ...)
217
+ local elementsToRemove = {...}
218
+ local removedElements = {}
219
+ for ____, element in ipairs(elementsToRemove) do
220
+ local index = __TS__ArrayIndexOf(array, element)
221
+ if index > -1 then
222
+ local removedElement = __TS__ArraySplice(array, index, 1)
223
+ __TS__ArrayPushArray(removedElements, removedElement)
224
+ end
225
+ end
226
+ return removedElements
227
+ end
222
228
  --- Shallow copies and removes the elements at the specified indexes from the array. Returns the
223
229
  -- copied array. If the specified indexes are not found in the array, it will simply return a
224
230
  -- shallow copy of the array.
@@ -18,8 +18,8 @@ local DEFAULT_CARD_DESCRIPTION = ____cardDescriptions.DEFAULT_CARD_DESCRIPTION
18
18
  local ____cardNames = require("objects.cardNames")
19
19
  local CARD_NAMES = ____cardNames.CARD_NAMES
20
20
  local DEFAULT_CARD_NAME = ____cardNames.DEFAULT_CARD_NAME
21
- local ____itemConfigCardTypesForCardsSet = require("sets.itemConfigCardTypesForCardsSet")
22
- local ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET = ____itemConfigCardTypesForCardsSet.ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET
21
+ local ____itemConfigCardTypesForCards = require("sets.itemConfigCardTypesForCards")
22
+ local ITEM_CONFIG_CARD_TYPES_FOR_CARDS = ____itemConfigCardTypesForCards.ITEM_CONFIG_CARD_TYPES_FOR_CARDS
23
23
  local ____flag = require("functions.flag")
24
24
  local addFlag = ____flag.addFlag
25
25
  function ____exports.isVanillaCardType(self, cardType)
@@ -97,7 +97,7 @@ function ____exports.isCard(self, cardType)
97
97
  if itemConfigCardType == nil then
98
98
  return false
99
99
  end
100
- return ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET:has(itemConfigCardType)
100
+ return ITEM_CONFIG_CARD_TYPES_FOR_CARDS:has(itemConfigCardType)
101
101
  end
102
102
  --- Returns whether the given card type matches the specified item config card type.
103
103
  function ____exports.isCardType(self, cardType, itemConfigCardType)
@@ -86,12 +86,12 @@ export declare function getCollectibleQuality(collectibleOrCollectibleType: Enti
86
86
  */
87
87
  export declare function getCollectibleTags(collectibleOrCollectibleType: EntityPickup | CollectibleType): BitFlags<ItemConfigTag>;
88
88
  /**
89
- * Returns a set containing every vanilla collectible type with the given quality.
89
+ * Returns an array containing every vanilla collectible type with the given quality.
90
90
  *
91
91
  * Note that this function will only return vanilla collectible types. To handle modded collectible
92
92
  * types, use the `getCollectibleTypesOfQuality` helper function instead.
93
93
  */
94
- export declare function getVanillaCollectibleTypesOfQuality(quality: Quality): ReadonlySet<CollectibleType>;
94
+ export declare function getVanillaCollectibleTypesOfQuality(quality: Quality): readonly CollectibleType[];
95
95
  /** Returns true if the item type in the item config is equal to `ItemType.ACTIVE`. */
96
96
  export declare function isActiveCollectible(collectibleType: CollectibleType): boolean;
97
97
  /**
@@ -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;AAgEtC,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,CAqBR;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,yBAA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,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"}
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;AAgEtC,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,CAqBR;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,YAAY,GAAG,eAAe,GAAG,CAAC,CAAC,GAChE,MAAM,CAg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AAkB,EAAE,eAAe,GAClC,IAAI,CA2BN;AAED;;;GAGG;AACH,wBAAgB,qCAAqC,IAAI,IAAI,CAK5D"}
@@ -1,7 +1,6 @@
1
1
  local ____lualib = require("lualib_bundle")
2
2
  local Map = ____lualib.Map
3
3
  local __TS__New = ____lualib.__TS__New
4
- local Set = ____lualib.Set
5
4
  local ____exports = {}
6
5
  local getCollectibleTypeFromArg
7
6
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
@@ -141,14 +140,14 @@ local GLITCHED_ITEM_THRESHOLD = 4000000000
141
140
  local QUALITY_TO_VANILLA_COLLECTIBLE_TYPES_MAP = (function()
142
141
  local qualityToCollectibleTypesMap = __TS__New(Map)
143
142
  for ____, quality in ipairs(QUALITIES) do
144
- local collectibleTypesSet = __TS__New(Set)
143
+ local collectibleTypes = {}
145
144
  for ____, collectibleType in ipairs(VANILLA_COLLECTIBLE_TYPES) do
146
145
  local collectibleTypeQuality = ____exports.getCollectibleQuality(nil, collectibleType)
147
146
  if collectibleTypeQuality == quality then
148
- collectibleTypesSet:add(collectibleType)
147
+ collectibleTypes[#collectibleTypes + 1] = collectibleType
149
148
  end
150
149
  end
151
- qualityToCollectibleTypesMap:set(quality, collectibleTypesSet)
150
+ qualityToCollectibleTypesMap:set(quality, collectibleTypes)
152
151
  end
153
152
  return qualityToCollectibleTypesMap
154
153
  end)(nil)
@@ -339,7 +338,7 @@ function ____exports.getCollectibleTags(self, collectibleOrCollectibleType)
339
338
  local itemConfigItem = itemConfig:GetCollectible(collectibleType)
340
339
  return itemConfigItem == nil and ItemConfigTagZero or itemConfigItem.Tags
341
340
  end
342
- --- Returns a set containing every vanilla collectible type with the given quality.
341
+ --- Returns an array containing every vanilla collectible type with the given quality.
343
342
  --
344
343
  -- Note that this function will only return vanilla collectible types. To handle modded collectible
345
344
  -- types, use the `getCollectibleTypesOfQuality` helper function instead.
@@ -4,7 +4,7 @@ import { PillColor } from "isaac-typescript-definitions";
4
4
  * Helper function to get an array with every non-null pill color. This includes all gold colors and
5
5
  * all horse colors.
6
6
  */
7
- export declare function getAllPillColors(): PillColor[];
7
+ export declare function getAllPillColors(): readonly PillColor[];
8
8
  /**
9
9
  * Helper function to get the associated pill effect after False PHD is acquired. If a pill effect
10
10
  * is not altered by False PHD, then the same pill effect will be returned.
@@ -18,7 +18,7 @@ export declare function getFalsePHDPillEffect(pillEffect: PillEffect): PillEffec
18
18
  */
19
19
  export declare function getHorsePillColor(pillColor: PillColor): PillColor;
20
20
  /** Helper function to get an array with every non-gold horse pill color. */
21
- export declare function getHorsePillColors(): PillColor[];
21
+ export declare function getHorsePillColors(): readonly PillColor[];
22
22
  /**
23
23
  * Helper function to get the corresponding normal pill color from a horse pill color.
24
24
  *
@@ -28,7 +28,7 @@ export declare function getHorsePillColors(): PillColor[];
28
28
  */
29
29
  export declare function getNormalPillColorFromHorse(pillColor: PillColor): PillColor;
30
30
  /** Helper function to get an array with every non-gold and non-horse pill color. */
31
- export declare function getNormalPillColors(): PillColor[];
31
+ export declare function getNormalPillColors(): readonly PillColor[];
32
32
  /**
33
33
  * Helper function to get the associated pill effect after PHD is acquired. If a pill effect is not
34
34
  * altered by PHD, then the same pill effect will be returned.
@@ -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,IAA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
  * Helper function to get all of the trinkets that the player is currently holding. This will not
28
28
  * include any smelted trinkets.
29
29
  */
30
- export declare function getPlayerTrinkets(player: EntityPlayer): TrinketType[];
30
+ export declare function getPlayerTrinkets(player: EntityPlayer): readonly TrinketType[];
31
31
  /**
32
32
  * Helper function to get only the players that have a certain trinket.
33
33
  *
@@ -1 +1 @@
1
- {"version":3,"file":"playerTrinkets.d.ts","sourceRoot":"","sources":["../../src/functions/playerTrinkets.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAMtC,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,WAAW,EAAE,WAAW,GACvB,IAAI,CAON;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,WAAW,EACxB,eAAe,CAAC,EAAE,OAAO,GACxB,OAAO,CAMT;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,GAAG,SAAS,CAkBxE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW,EAAE,CAWrE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,YAAY,EAAE,WAAW,EAAE,GAC7B,YAAY,EAAE,CAMhB;AAED,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAO3D;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAOhE;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,YAAY,EACpB,GAAG,YAAY,EAAE,WAAW,EAAE,GAC7B,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAalE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EACpB,WAAW,EAAE,WAAW,GACvB,IAAI,CAON"}
1
+ {"version":3,"file":"playerTrinkets.d.ts","sourceRoot":"","sources":["../../src/functions/playerTrinkets.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAMtC,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,WAAW,EAAE,WAAW,GACvB,IAAI,CAON;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,WAAW,EACxB,eAAe,CAAC,EAAE,OAAO,GACxB,OAAO,CAMT;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,GAAG,SAAS,CAkBxE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,GACnB,SAAS,WAAW,EAAE,CAWxB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,YAAY,EAAE,WAAW,EAAE,GAC7B,YAAY,EAAE,CAMhB;AAED,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAO3D;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAOhE;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,YAAY,EACpB,GAAG,YAAY,EAAE,WAAW,EAAE,GAC7B,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAalE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EACpB,WAAW,EAAE,WAAW,GACvB,IAAI,CAON"}
@@ -1073,9 +1073,9 @@ declare type Arr_2<N extends number, T extends unknown[] = []> = T["length"] ext
1073
1073
  export declare function arrayEquals<T>(array1: T[] | readonly T[], array2: T[] | readonly T[]): boolean;
1074
1074
 
1075
1075
  /**
1076
- * Shallow copies and removes the specified element(s) from the array. Returns the copied array. If
1077
- * the specified element(s) are not found in the array, it will simply return a shallow copy of the
1078
- * array.
1076
+ * Builds a new array based on the original array without the specified element(s). Returns the new
1077
+ * array. If the specified element(s) are not found in the array, it will simply return a shallow
1078
+ * copy of the array.
1079
1079
  *
1080
1080
  * This function is variadic, meaning that you can specify N arguments to remove N elements.
1081
1081
  *
@@ -4948,7 +4948,7 @@ export declare function getAllGridIndexes(): int[];
4948
4948
  * Helper function to get an array with every non-null pill color. This includes all gold colors and
4949
4949
  * all horse colors.
4950
4950
  */
4951
- export declare function getAllPillColors(): PillColor[];
4951
+ export declare function getAllPillColors(): readonly PillColor[];
4952
4952
 
4953
4953
  /**
4954
4954
  * Helper function to get every player with no restrictions, by using `Game.GetNumPlayers` and
@@ -6083,7 +6083,7 @@ export declare function getHighestEnumValue<T extends TranspiledEnum>(transpiled
6083
6083
  export declare function getHorsePillColor(pillColor: PillColor): PillColor;
6084
6084
 
6085
6085
  /** Helper function to get an array with every non-gold horse pill color. */
6086
- export declare function getHorsePillColors(): PillColor[];
6086
+ export declare function getHorsePillColors(): readonly PillColor[];
6087
6087
 
6088
6088
  /**
6089
6089
  * In the options menu, players have the ability to set a HUD offset (which gets written to the
@@ -6452,7 +6452,7 @@ export declare function getNextStageType(upwards?: boolean): StageType;
6452
6452
  export declare function getNormalPillColorFromHorse(pillColor: PillColor): PillColor;
6453
6453
 
6454
6454
  /** Helper function to get an array with every non-gold and non-horse pill color. */
6455
- export declare function getNormalPillColors(): PillColor[];
6455
+ export declare function getNormalPillColors(): readonly PillColor[];
6456
6456
 
6457
6457
  /**
6458
6458
  * Helper function to get the corresponding normal trinket type from a golden trinket type.
@@ -6894,7 +6894,7 @@ export declare function getPlayerTransformations(player: EntityPlayer): Set<Play
6894
6894
  * Helper function to get all of the trinkets that the player is currently holding. This will not
6895
6895
  * include any smelted trinkets.
6896
6896
  */
6897
- export declare function getPlayerTrinkets(player: EntityPlayer): TrinketType[];
6897
+ export declare function getPlayerTrinkets(player: EntityPlayer): readonly TrinketType[];
6898
6898
 
6899
6899
  /**
6900
6900
  * Use this helper function as a workaround for the `EntityPlayer.GetPocketItem` method not working
@@ -8144,12 +8144,12 @@ export declare function getUnusedDoorSlots(): DoorSlot[];
8144
8144
  export declare function getUsableActiveItemSlots(player: EntityPlayer, collectibleType: CollectibleType): ActiveSlot[];
8145
8145
 
8146
8146
  /**
8147
- * Returns a set containing every vanilla collectible type with the given quality.
8147
+ * Returns an array containing every vanilla collectible type with the given quality.
8148
8148
  *
8149
8149
  * Note that this function will only return vanilla collectible types. To handle modded collectible
8150
8150
  * types, use the `getCollectibleTypesOfQuality` helper function instead.
8151
8151
  */
8152
- export declare function getVanillaCollectibleTypesOfQuality(quality: Quality): ReadonlySet<CollectibleType>;
8152
+ export declare function getVanillaCollectibleTypesOfQuality(quality: Quality): readonly CollectibleType[];
8153
8153
 
8154
8154
  export declare function getVanillaPillEffectsOfType(pillEffectType: ItemConfigPillEffectType): readonly PillEffect[];
8155
8155
 
@@ -10309,7 +10309,7 @@ declare class ItemPoolDetection extends Feature {
10309
10309
  *
10310
10310
  * @public
10311
10311
  */
10312
- getCollectiblesInItemPool(itemPoolType: ItemPoolType): CollectibleType[];
10312
+ getCollectiblesInItemPool(itemPoolType: ItemPoolType): readonly CollectibleType[];
10313
10313
  /**
10314
10314
  * Helper function to see if the given collectible is still present in the given item pool.
10315
10315
  *
@@ -13837,21 +13837,21 @@ declare class ModdedElementSets extends Feature {
13837
13837
  private readonly moddedPillEffectsSet;
13838
13838
  private readonly cacheFlagToCollectibleTypesMap;
13839
13839
  private readonly cacheFlagToTrinketTypesMap;
13840
- private flyingCollectibleTypesSet;
13841
- private readonly permanentFlyingCollectibleTypesSet;
13842
- private flyingTrinketTypesSet;
13840
+ private flyingCollectibleTypes;
13841
+ private permanentFlyingCollectibleTypes;
13842
+ private flyingTrinketTypes;
13843
13843
  private readonly tagToCollectibleTypesMap;
13844
13844
  private readonly edenActiveCollectibleTypesSet;
13845
13845
  private readonly edenPassiveCollectibleTypesSet;
13846
13846
  private readonly qualityToCollectibleTypesMap;
13847
13847
  private readonly itemConfigCardTypeToCardTypeMap;
13848
13848
  /**
13849
- * The set of card types that are not:
13849
+ * The array of card types that are not:
13850
13850
  *
13851
13851
  * - ItemConfigCardType.RUNE
13852
13852
  * - ItemConfigCardType.SPECIAL_OBJECT
13853
13853
  */
13854
- private readonly cardSet;
13854
+ private readonly cardTypeCardArray;
13855
13855
  private readonly moddedElementDetection;
13856
13856
  private lazyInit;
13857
13857
  private lazyInitModdedCollectibleTypes;
@@ -14131,7 +14131,7 @@ declare class ModdedElementSets extends Feature {
14131
14131
  *
14132
14132
  * @public
14133
14133
  */
14134
- getCollectibleTypesWithCacheFlag(cacheFlag: CacheFlag): ReadonlySet<CollectibleType>;
14134
+ getCollectibleTypesWithCacheFlag(cacheFlag: CacheFlag): readonly CollectibleType[];
14135
14135
  /**
14136
14136
  * Returns a set containing every trinket type with the given cache flag, including modded
14137
14137
  * trinkets.
@@ -14144,7 +14144,7 @@ declare class ModdedElementSets extends Feature {
14144
14144
  *
14145
14145
  * @public
14146
14146
  */
14147
- getTrinketsTypesWithCacheFlag(cacheFlag: CacheFlag): ReadonlySet<TrinketType>;
14147
+ getTrinketsTypesWithCacheFlag(cacheFlag: CacheFlag): readonly TrinketType[];
14148
14148
  /**
14149
14149
  * Returns an array containing every collectible type that the player has that matches the
14150
14150
  * provided `CacheFlag`.
@@ -14171,7 +14171,7 @@ declare class ModdedElementSets extends Feature {
14171
14171
  *
14172
14172
  * @public
14173
14173
  */
14174
- getPlayerCollectiblesWithCacheFlag(player: EntityPlayer, cacheFlag: CacheFlag): CollectibleType[];
14174
+ getPlayerCollectiblesWithCacheFlag(player: EntityPlayer, cacheFlag: CacheFlag): readonly CollectibleType[];
14175
14175
  /**
14176
14176
  * Returns a map containing every trinket type that the player has that matches the provided
14177
14177
  * `CacheFlag`. The values of the map correspond to the multiplier for that trinket.
@@ -14207,7 +14207,7 @@ declare class ModdedElementSets extends Feature {
14207
14207
  * be included in the set (like Empty Vessel).
14208
14208
  * @public
14209
14209
  */
14210
- getFlyingCollectibleTypes(includeConditionalItems: boolean): ReadonlySet<CollectibleType>;
14210
+ getFlyingCollectibleTypes(includeConditionalItems: boolean): readonly CollectibleType[];
14211
14211
  /**
14212
14212
  * Returns a set of all of the trinkets that grant flight. (All vanilla trinkets that grant flight
14213
14213
  * do so conditionally, like Bat Wing and Azazel's Stump.)
@@ -14224,7 +14224,7 @@ declare class ModdedElementSets extends Feature {
14224
14224
  *
14225
14225
  * @public
14226
14226
  */
14227
- getFlyingTrinketTypes(): ReadonlySet<TrinketType>;
14227
+ getFlyingTrinketTypes(): readonly TrinketType[];
14228
14228
  /**
14229
14229
  * Returns a set containing every collectible type with the given tag.
14230
14230
  *
@@ -14243,7 +14243,7 @@ declare class ModdedElementSets extends Feature {
14243
14243
  *
14244
14244
  * @public
14245
14245
  */
14246
- getCollectibleTypesWithTag(itemConfigTag: ItemConfigTag): ReadonlySet<CollectibleType>;
14246
+ getCollectibleTypesWithTag(itemConfigTag: ItemConfigTag): readonly CollectibleType[];
14247
14247
  /**
14248
14248
  * Returns an array of collectible types that a player has with a particular tag.
14249
14249
  *
@@ -14255,7 +14255,7 @@ declare class ModdedElementSets extends Feature {
14255
14255
  *
14256
14256
  * @public
14257
14257
  */
14258
- getPlayerCollectiblesWithTag(player: EntityPlayer, itemConfigTag: ItemConfigTag): CollectibleType[];
14258
+ getPlayerCollectiblesWithTag(player: EntityPlayer, itemConfigTag: ItemConfigTag): readonly CollectibleType[];
14259
14259
  /**
14260
14260
  * Helper function to get all of the collectible types in the game that count towards a particular
14261
14261
  * transformation.
@@ -14274,7 +14274,7 @@ declare class ModdedElementSets extends Feature {
14274
14274
  *
14275
14275
  * @public
14276
14276
  */
14277
- getCollectibleTypesForTransformation(playerForm: PlayerForm): ReadonlySet<CollectibleType>;
14277
+ getCollectibleTypesForTransformation(playerForm: PlayerForm): readonly CollectibleType[];
14278
14278
  /**
14279
14279
  * Returns an array of collectible types that a player has that count towards a particular
14280
14280
  * transformation.
@@ -14287,7 +14287,7 @@ declare class ModdedElementSets extends Feature {
14287
14287
  *
14288
14288
  * @public
14289
14289
  */
14290
- getPlayerCollectiblesForTransformation(player: EntityPlayer, playerForm: PlayerForm): CollectibleType[];
14290
+ getPlayerCollectiblesForTransformation(player: EntityPlayer, playerForm: PlayerForm): readonly CollectibleType[];
14291
14291
  /**
14292
14292
  * Returns a set containing every valid passive item that can be randomly granted to Eden as a
14293
14293
  * starting item.
@@ -14358,7 +14358,7 @@ declare class ModdedElementSets extends Feature {
14358
14358
  */
14359
14359
  getRandomEdenPassiveCollectibleType(seedOrRNG: Seed | RNG | undefined, exceptions?: CollectibleType[] | readonly CollectibleType[]): CollectibleType;
14360
14360
  /**
14361
- * Returns a set containing every collectible type with the given quality.
14361
+ * Returns an array containing every collectible type with the given quality.
14362
14362
  *
14363
14363
  * This function can only be called if at least one callback has been executed. This is because
14364
14364
  * not all collectible types will necessarily be present when a mod first loads (due to mod load
@@ -14368,7 +14368,7 @@ declare class ModdedElementSets extends Feature {
14368
14368
  *
14369
14369
  * @public
14370
14370
  */
14371
- getCollectibleTypesOfQuality(quality: Quality): ReadonlySet<CollectibleType>;
14371
+ getCollectibleTypesOfQuality(quality: Quality): readonly CollectibleType[];
14372
14372
  /**
14373
14373
  * Returns an array of collectible types that a player has that are of a particular quality.
14374
14374
  *
@@ -14380,11 +14380,11 @@ declare class ModdedElementSets extends Feature {
14380
14380
  *
14381
14381
  * @public
14382
14382
  */
14383
- getPlayerCollectiblesOfQuality(player: EntityPlayer, quality: Quality): CollectibleType[];
14383
+ getPlayerCollectiblesOfQuality(player: EntityPlayer, quality: Quality): readonly CollectibleType[];
14384
14384
  /**
14385
- * Helper function to get a set of card types matching the `ItemConfigCardType`.
14385
+ * Helper function to get an array of card types matching the `ItemConfigCardType`.
14386
14386
  *
14387
- * This function is variadic, meaning that you can you can specify N card types to get a set
14387
+ * This function is variadic, meaning that you can you can specify N card types to get an array
14388
14388
  * containing cards that match any of the specified types.
14389
14389
  *
14390
14390
  * This function can only be called if at least one callback has been executed. This is because
@@ -14394,7 +14394,7 @@ declare class ModdedElementSets extends Feature {
14394
14394
  *
14395
14395
  * @public
14396
14396
  */
14397
- getCardTypesOfType(...itemConfigCardTypes: ItemConfigCardType[]): Set<CardType>;
14397
+ getCardTypesOfType(...itemConfigCardTypes: ItemConfigCardType[]): readonly CardType[];
14398
14398
  /**
14399
14399
  * Helper function to get a random card type that matches the provided `ItemConfigCardType`.
14400
14400
  *