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,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 40.0.0
3
+ isaacscript-common 41.1.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -1118,6 +1118,9 @@ end
1118
1118
  local Error, RangeError, ReferenceError, SyntaxError, TypeError, URIError
1119
1119
  do
1120
1120
  local function getErrorStack(self, constructor)
1121
+ if debug == nil then
1122
+ return nil
1123
+ end
1121
1124
  local level = 1
1122
1125
  while true do
1123
1126
  local info = debug.getinfo(level, "f")
@@ -1499,6 +1502,62 @@ local function __TS__NumberIsNaN(value)
1499
1502
  return value ~= value
1500
1503
  end
1501
1504
 
1505
+ local function __TS__StringSubstring(self, start, ____end)
1506
+ if ____end ~= ____end then
1507
+ ____end = 0
1508
+ end
1509
+ if ____end ~= nil and start > ____end then
1510
+ start, ____end = ____end, start
1511
+ end
1512
+ if start >= 0 then
1513
+ start = start + 1
1514
+ else
1515
+ start = 1
1516
+ end
1517
+ if ____end ~= nil and ____end < 0 then
1518
+ ____end = 0
1519
+ end
1520
+ return string.sub(self, start, ____end)
1521
+ end
1522
+
1523
+ local __TS__ParseInt
1524
+ do
1525
+ local parseIntBasePattern = "0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTvVwWxXyYzZ"
1526
+ function __TS__ParseInt(numberString, base)
1527
+ if base == nil then
1528
+ base = 10
1529
+ local hexMatch = __TS__Match(numberString, "^%s*-?0[xX]")
1530
+ if hexMatch ~= nil then
1531
+ base = 16
1532
+ numberString = (__TS__Match(hexMatch, "-")) and "-" .. __TS__StringSubstring(numberString, #hexMatch) or __TS__StringSubstring(numberString, #hexMatch)
1533
+ end
1534
+ end
1535
+ if base < 2 or base > 36 then
1536
+ return 0 / 0
1537
+ end
1538
+ local allowedDigits = base <= 10 and __TS__StringSubstring(parseIntBasePattern, 0, base) or __TS__StringSubstring(parseIntBasePattern, 0, 10 + 2 * (base - 10))
1539
+ local pattern = ("^%s*(-?[" .. allowedDigits) .. "]*)"
1540
+ local number = tonumber((__TS__Match(numberString, pattern)), base)
1541
+ if number == nil then
1542
+ return 0 / 0
1543
+ end
1544
+ if number >= 0 then
1545
+ return math.floor(number)
1546
+ else
1547
+ return math.ceil(number)
1548
+ end
1549
+ end
1550
+ end
1551
+
1552
+ local function __TS__ParseFloat(numberString)
1553
+ local infinityMatch = __TS__Match(numberString, "^%s*(-?Infinity)")
1554
+ if infinityMatch ~= nil then
1555
+ return __TS__StringAccess(infinityMatch, 0) == "-" and -math.huge or math.huge
1556
+ end
1557
+ local number = tonumber((__TS__Match(numberString, "^%s*(-?%d+%.?%d*)")))
1558
+ return number or 0 / 0
1559
+ end
1560
+
1502
1561
  local __TS__NumberToString
1503
1562
  do
1504
1563
  local radixChars = "0123456789abcdefghijklmnopqrstuvwxyz"
@@ -1673,62 +1732,6 @@ local function __TS__ObjectValues(obj)
1673
1732
  return result
1674
1733
  end
1675
1734
 
1676
- local function __TS__ParseFloat(numberString)
1677
- local infinityMatch = __TS__Match(numberString, "^%s*(-?Infinity)")
1678
- if infinityMatch ~= nil then
1679
- return __TS__StringAccess(infinityMatch, 0) == "-" and -math.huge or math.huge
1680
- end
1681
- local number = tonumber((__TS__Match(numberString, "^%s*(-?%d+%.?%d*)")))
1682
- return number or 0 / 0
1683
- end
1684
-
1685
- local function __TS__StringSubstring(self, start, ____end)
1686
- if ____end ~= ____end then
1687
- ____end = 0
1688
- end
1689
- if ____end ~= nil and start > ____end then
1690
- start, ____end = ____end, start
1691
- end
1692
- if start >= 0 then
1693
- start = start + 1
1694
- else
1695
- start = 1
1696
- end
1697
- if ____end ~= nil and ____end < 0 then
1698
- ____end = 0
1699
- end
1700
- return string.sub(self, start, ____end)
1701
- end
1702
-
1703
- local __TS__ParseInt
1704
- do
1705
- local parseIntBasePattern = "0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTvVwWxXyYzZ"
1706
- function __TS__ParseInt(numberString, base)
1707
- if base == nil then
1708
- base = 10
1709
- local hexMatch = __TS__Match(numberString, "^%s*-?0[xX]")
1710
- if hexMatch ~= nil then
1711
- base = 16
1712
- numberString = (__TS__Match(hexMatch, "-")) and "-" .. __TS__StringSubstring(numberString, #hexMatch) or __TS__StringSubstring(numberString, #hexMatch)
1713
- end
1714
- end
1715
- if base < 2 or base > 36 then
1716
- return 0 / 0
1717
- end
1718
- local allowedDigits = base <= 10 and __TS__StringSubstring(parseIntBasePattern, 0, base) or __TS__StringSubstring(parseIntBasePattern, 0, 10 + 2 * (base - 10))
1719
- local pattern = ("^%s*(-?[" .. allowedDigits) .. "]*)"
1720
- local number = tonumber((__TS__Match(numberString, pattern)), base)
1721
- if number == nil then
1722
- return 0 / 0
1723
- end
1724
- if number >= 0 then
1725
- return math.floor(number)
1726
- else
1727
- return math.ceil(number)
1728
- end
1729
- end
1730
- end
1731
-
1732
1735
  local function __TS__PromiseAll(iterable)
1733
1736
  local results = {}
1734
1737
  local toResolve = {}
@@ -2596,6 +2599,8 @@ return {
2596
2599
  __TS__Number = __TS__Number,
2597
2600
  __TS__NumberIsFinite = __TS__NumberIsFinite,
2598
2601
  __TS__NumberIsNaN = __TS__NumberIsNaN,
2602
+ __TS__ParseInt = __TS__ParseInt,
2603
+ __TS__ParseFloat = __TS__ParseFloat,
2599
2604
  __TS__NumberToString = __TS__NumberToString,
2600
2605
  __TS__NumberToFixed = __TS__NumberToFixed,
2601
2606
  __TS__ObjectAssign = __TS__ObjectAssign,
@@ -17932,12 +17937,15 @@ ____exports.NUM_VANILLA_CHALLENGES = getEnumLength(nil, Challenge) - 1
17932
17937
  return ____exports
17933
17938
  end,
17934
17939
  ["src.core.constants"] = function(...)
17940
+ local ____lualib = require("lualib_bundle")
17941
+ local __TS__New = ____lualib.__TS__New
17935
17942
  local ____exports = {}
17936
17943
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
17937
17944
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
17938
17945
  local Dimension = ____isaac_2Dtypescript_2Ddefinitions.Dimension
17939
17946
  local DisplayFlag = ____isaac_2Dtypescript_2Ddefinitions.DisplayFlag
17940
17947
  local ItemPoolType = ____isaac_2Dtypescript_2Ddefinitions.ItemPoolType
17948
+ local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
17941
17949
  local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
17942
17950
  local TrinketSlot = ____isaac_2Dtypescript_2Ddefinitions.TrinketSlot
17943
17951
  local ____enums = require("src.functions.enums")
@@ -17950,12 +17958,31 @@ local newReadonlyKColor = ____readOnly.newReadonlyKColor
17950
17958
  local newReadonlyVector = ____readOnly.newReadonlyVector
17951
17959
  local ____types = require("src.functions.types")
17952
17960
  local asCollectibleType = ____types.asCollectibleType
17961
+ local ____utils = require("src.functions.utils")
17962
+ local eRange = ____utils.eRange
17963
+ local ____ReadonlySet = require("src.types.ReadonlySet")
17964
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
17953
17965
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
17954
17966
  local NUM_NORMAL_PILL_COLORS = ____constantsFirstLast.NUM_NORMAL_PILL_COLORS
17955
17967
  ____exports.ALL_DISPLAY_FLAGS = addFlag(nil, DisplayFlag.VISIBLE, DisplayFlag.SHADOW, DisplayFlag.SHOW_ICON)
17956
17968
  ____exports.AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125
17957
17969
  ____exports.BLIND_ITEM_PNG_PATH = "gfx/items/collectibles/questionmark.png"
17958
17970
  ____exports.BOMB_EXPLODE_FRAME = 45
17971
+ ____exports.CHEST_PICKUP_VARIANTS = {
17972
+ PickupVariant.CHEST,
17973
+ PickupVariant.BOMB_CHEST,
17974
+ PickupVariant.SPIKED_CHEST,
17975
+ PickupVariant.ETERNAL_CHEST,
17976
+ PickupVariant.MIMIC_CHEST,
17977
+ PickupVariant.OLD_CHEST,
17978
+ PickupVariant.WOODEN_CHEST,
17979
+ PickupVariant.MEGA_CHEST,
17980
+ PickupVariant.HAUNTED_CHEST,
17981
+ PickupVariant.LOCKED_CHEST,
17982
+ PickupVariant.RED_CHEST,
17983
+ PickupVariant.MOMS_CHEST
17984
+ }
17985
+ ____exports.CHEST_PICKUP_VARIANTS_SET = __TS__New(ReadonlySet, ____exports.CHEST_PICKUP_VARIANTS)
17959
17986
  ____exports.COLLECTIBLE_INITIAL_WAIT = 20
17960
17987
  ____exports.DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE
17961
17988
  ____exports.DISTANCE_OF_GRID_TILE = 40
@@ -18041,7 +18068,8 @@ ____exports.NEW_FLOOR_STARTING_POSITION_GREED_MODE = newReadonlyVector(nil, 320,
18041
18068
  ____exports.NEW_RUN_PLAYER_STARTING_POSITION = newReadonlyVector(nil, 320, 380)
18042
18069
  ____exports.MAX_TAINTED_SAMSON_BERSERK_CHARGE = 100000
18043
18070
  ____exports.NUM_DIMENSIONS = getEnumLength(nil, Dimension) - 1
18044
- ____exports.NUM_PILLS_IN_POOL = NUM_NORMAL_PILL_COLORS
18071
+ ____exports.DIMENSIONS = eRange(nil, ____exports.NUM_DIMENSIONS)
18072
+ ____exports.NUM_PILL_COLORS_IN_POOL = NUM_NORMAL_PILL_COLORS
18045
18073
  ____exports.ONE_BY_ONE_ROOM_GRID_SIZE = 135
18046
18074
  ____exports.SECOND_IN_MILLISECONDS = 1000
18047
18075
  ____exports.MINUTE_IN_MILLISECONDS = 60 * ____exports.SECOND_IN_MILLISECONDS
@@ -21563,7 +21591,6 @@ local ____constants = require("src.core.constants")
21563
21591
  local BLIND_ITEM_PNG_PATH = ____constants.BLIND_ITEM_PNG_PATH
21564
21592
  local DEFAULT_ITEM_POOL_TYPE = ____constants.DEFAULT_ITEM_POOL_TYPE
21565
21593
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
21566
- local FIRST_COLLECTIBLE_TYPE = ____constantsFirstLast.FIRST_COLLECTIBLE_TYPE
21567
21594
  local LAST_VANILLA_COLLECTIBLE_TYPE = ____constantsFirstLast.LAST_VANILLA_COLLECTIBLE_TYPE
21568
21595
  local ____collectibleDescriptionMap = require("src.maps.collectibleDescriptionMap")
21569
21596
  local COLLECTIBLE_DESCRIPTION_MAP = ____collectibleDescriptionMap.COLLECTIBLE_DESCRIPTION_MAP
@@ -21584,8 +21611,6 @@ local clearSprite = ____sprites.clearSprite
21584
21611
  local spriteEquals = ____sprites.spriteEquals
21585
21612
  local ____types = require("src.functions.types")
21586
21613
  local isInteger = ____types.isInteger
21587
- local ____utils = require("src.functions.utils")
21588
- local iRange = ____utils.iRange
21589
21614
  function initQuestionMarkSprite(self)
21590
21615
  local sprite = Sprite()
21591
21616
  sprite:Load("gfx/005.100_collectible.anm2", false)
@@ -21801,9 +21826,6 @@ function ____exports.getCollectibleTags(self, collectibleOrCollectibleType)
21801
21826
  local itemConfigItem = itemConfig:GetCollectible(collectibleType)
21802
21827
  return itemConfigItem == nil and ItemConfigTagZero or itemConfigItem.Tags
21803
21828
  end
21804
- function ____exports.getVanillaCollectibleTypeRange(self)
21805
- return iRange(nil, FIRST_COLLECTIBLE_TYPE, LAST_VANILLA_COLLECTIBLE_TYPE)
21806
- end
21807
21829
  function ____exports.isActiveCollectible(self, collectibleType)
21808
21830
  local itemType = ____exports.getCollectibleItemType(nil, collectibleType)
21809
21831
  return itemType == ItemType.ACTIVE
@@ -27011,20 +27033,15 @@ local Dimension = ____isaac_2Dtypescript_2Ddefinitions.Dimension
27011
27033
  local ____cachedClasses = require("src.core.cachedClasses")
27012
27034
  local game = ____cachedClasses.game
27013
27035
  local ____constants = require("src.core.constants")
27014
- local NUM_DIMENSIONS = ____constants.NUM_DIMENSIONS
27036
+ local DIMENSIONS = ____constants.DIMENSIONS
27015
27037
  local ____roomData = require("src.functions.roomData")
27016
27038
  local getRoomGridIndex = ____roomData.getRoomGridIndex
27017
- local ____utils = require("src.functions.utils")
27018
- local eRange = ____utils.eRange
27019
- function ____exports.getAllDimensions(self)
27020
- return eRange(nil, NUM_DIMENSIONS)
27021
- end
27022
27039
  function ____exports.getDimension(self)
27023
27040
  local level = game:GetLevel()
27024
27041
  local roomGridIndex = getRoomGridIndex(nil)
27025
27042
  local roomDescription = level:GetRoomByIdx(roomGridIndex, Dimension.CURRENT)
27026
27043
  local currentRoomHash = GetPtrHash(roomDescription)
27027
- for ____, dimension in ipairs(____exports.getAllDimensions(nil)) do
27044
+ for ____, dimension in ipairs(DIMENSIONS) do
27028
27045
  local dimensionRoomDescription = level:GetRoomByIdx(roomGridIndex, dimension)
27029
27046
  local dimensionRoomHash = GetPtrHash(dimensionRoomDescription)
27030
27047
  if dimensionRoomHash == currentRoomHash then
@@ -27752,6 +27769,7 @@ local ____cachedClasses = require("src.core.cachedClasses")
27752
27769
  local game = ____cachedClasses.game
27753
27770
  local sfxManager = ____cachedClasses.sfxManager
27754
27771
  local ____constants = require("src.core.constants")
27772
+ local DIMENSIONS = ____constants.DIMENSIONS
27755
27773
  local MAX_LEVEL_GRID_INDEX = ____constants.MAX_LEVEL_GRID_INDEX
27756
27774
  local ____roomTypeNames = require("src.objects.roomTypeNames")
27757
27775
  local ROOM_TYPE_NAMES = ____roomTypeNames.ROOM_TYPE_NAMES
@@ -27760,7 +27778,6 @@ local MINE_SHAFT_ROOM_SUB_TYPE_SET = ____mineShaftRoomSubTypesSet.MINE_SHAFT_ROO
27760
27778
  local ____ReadonlySet = require("src.types.ReadonlySet")
27761
27779
  local ReadonlySet = ____ReadonlySet.ReadonlySet
27762
27780
  local ____dimensions = require("src.functions.dimensions")
27763
- local getAllDimensions = ____dimensions.getAllDimensions
27764
27781
  local inDimension = ____dimensions.inDimension
27765
27782
  local ____doors = require("src.functions.doors")
27766
27783
  local closeAllDoors = ____doors.closeAllDoors
@@ -27813,7 +27830,7 @@ function ____exports.getRoomsInsideGrid(self, includeExtraDimensionalRooms)
27813
27830
  includeExtraDimensionalRooms = false
27814
27831
  end
27815
27832
  local level = game:GetLevel()
27816
- local dimensions = includeExtraDimensionalRooms and getAllDimensions(nil) or ({Dimension.CURRENT})
27833
+ local dimensions = includeExtraDimensionalRooms and DIMENSIONS or ({Dimension.CURRENT})
27817
27834
  local roomDescriptorMap = __TS__New(Map)
27818
27835
  for ____, dimension in ipairs(dimensions) do
27819
27836
  for ____, roomGridIndex in ipairs(iRange(nil, MAX_LEVEL_GRID_INDEX)) do
@@ -29602,7 +29619,6 @@ local itemConfig = ____cachedClasses.itemConfig
29602
29619
  local ____constants = require("src.core.constants")
29603
29620
  local BLIND_ITEM_PNG_PATH = ____constants.BLIND_ITEM_PNG_PATH
29604
29621
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
29605
- local FIRST_TRINKET_TYPE = ____constantsFirstLast.FIRST_TRINKET_TYPE
29606
29622
  local LAST_VANILLA_TRINKET_TYPE = ____constantsFirstLast.LAST_VANILLA_TRINKET_TYPE
29607
29623
  local ____MysteriousPaperEffect = require("src.enums.MysteriousPaperEffect")
29608
29624
  local MysteriousPaperEffect = ____MysteriousPaperEffect.MysteriousPaperEffect
@@ -29626,8 +29642,6 @@ local ____sprites = require("src.functions.sprites")
29626
29642
  local clearSprite = ____sprites.clearSprite
29627
29643
  local ____types = require("src.functions.types")
29628
29644
  local asNumber = ____types.asNumber
29629
- local ____utils = require("src.functions.utils")
29630
- local iRange = ____utils.iRange
29631
29645
  function ____exports.isVanillaTrinketType(self, trinketType)
29632
29646
  return trinketType <= LAST_VANILLA_TRINKET_TYPE
29633
29647
  end
@@ -29691,9 +29705,6 @@ function ____exports.getTrinketName(self, trinketType)
29691
29705
  end
29692
29706
  return DEFAULT_TRINKET_NAME
29693
29707
  end
29694
- function ____exports.getVanillaTrinketTypeRange(self)
29695
- return iRange(nil, FIRST_TRINKET_TYPE, LAST_VANILLA_TRINKET_TYPE)
29696
- end
29697
29708
  function ____exports.hasAnyTrinket(self, player)
29698
29709
  local playerTrinketTypes = __TS__ArrayMap(
29699
29710
  TRINKET_SLOT_VALUES,
@@ -33179,7 +33190,6 @@ local itemConfig = ____cachedClasses.itemConfig
33179
33190
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
33180
33191
  local FIRST_HORSE_PILL_COLOR = ____constantsFirstLast.FIRST_HORSE_PILL_COLOR
33181
33192
  local FIRST_PILL_COLOR = ____constantsFirstLast.FIRST_PILL_COLOR
33182
- local FIRST_PILL_EFFECT = ____constantsFirstLast.FIRST_PILL_EFFECT
33183
33193
  local LAST_HORSE_PILL_COLOR = ____constantsFirstLast.LAST_HORSE_PILL_COLOR
33184
33194
  local LAST_NORMAL_PILL_COLOR = ____constantsFirstLast.LAST_NORMAL_PILL_COLOR
33185
33195
  local LAST_VANILLA_PILL_EFFECT = ____constantsFirstLast.LAST_VANILLA_PILL_EFFECT
@@ -33262,9 +33272,6 @@ function ____exports.getPillEffectType(self, pillEffect)
33262
33272
  local pillEffectClass = PILL_EFFECT_TYPES[pillEffect]
33263
33273
  return pillEffectClass or DEFAULT_PILL_EFFECT_TYPE
33264
33274
  end
33265
- function ____exports.getVanillaPillEffects(self)
33266
- return iRange(nil, FIRST_PILL_EFFECT, LAST_VANILLA_PILL_EFFECT)
33267
- end
33268
33275
  function ____exports.isGoldPill(self, pillColor)
33269
33276
  return pillColor == PillColor.GOLD or pillColor == PillColor.HORSE_GOLD
33270
33277
  end
@@ -38099,6 +38106,73 @@ function PickupChangeDetection.prototype.____constructor(self, postPickupChanged
38099
38106
  self.postPickupChanged = postPickupChanged
38100
38107
  self.pickupIndexCreation = pickupIndexCreation
38101
38108
  end
38109
+ return ____exports
38110
+ end,
38111
+ ["src.core.constantsVanilla"] = function(...)
38112
+ local ____lualib = require("lualib_bundle")
38113
+ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
38114
+ local __TS__New = ____lualib.__TS__New
38115
+ local ____exports = {}
38116
+ local ____types = require("src.functions.types")
38117
+ local asCardType = ____types.asCardType
38118
+ local asCollectibleType = ____types.asCollectibleType
38119
+ local asPillEffect = ____types.asPillEffect
38120
+ local asTrinketType = ____types.asTrinketType
38121
+ local ____utils = require("src.functions.utils")
38122
+ local iRange = ____utils.iRange
38123
+ local ____ReadonlySet = require("src.types.ReadonlySet")
38124
+ local ReadonlySet = ____ReadonlySet.ReadonlySet
38125
+ local ____cachedClasses = require("src.core.cachedClasses")
38126
+ local itemConfig = ____cachedClasses.itemConfig
38127
+ local ____constantsFirstLast = require("src.core.constantsFirstLast")
38128
+ local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
38129
+ local FIRST_COLLECTIBLE_TYPE = ____constantsFirstLast.FIRST_COLLECTIBLE_TYPE
38130
+ local FIRST_PILL_EFFECT = ____constantsFirstLast.FIRST_PILL_EFFECT
38131
+ local FIRST_TRINKET_TYPE = ____constantsFirstLast.FIRST_TRINKET_TYPE
38132
+ local LAST_VANILLA_CARD_TYPE = ____constantsFirstLast.LAST_VANILLA_CARD_TYPE
38133
+ local LAST_VANILLA_COLLECTIBLE_TYPE = ____constantsFirstLast.LAST_VANILLA_COLLECTIBLE_TYPE
38134
+ local LAST_VANILLA_PILL_EFFECT = ____constantsFirstLast.LAST_VANILLA_PILL_EFFECT
38135
+ local LAST_VANILLA_TRINKET_TYPE = ____constantsFirstLast.LAST_VANILLA_TRINKET_TYPE
38136
+ ____exports.VANILLA_COLLECTIBLE_TYPE_RANGE = iRange(nil, FIRST_COLLECTIBLE_TYPE, LAST_VANILLA_COLLECTIBLE_TYPE)
38137
+ ____exports.VANILLA_COLLECTIBLE_TYPES = __TS__ArrayFilter(
38138
+ ____exports.VANILLA_COLLECTIBLE_TYPE_RANGE,
38139
+ function(____, potentialCollectibleType)
38140
+ local collectibleType = asCollectibleType(nil, potentialCollectibleType)
38141
+ local itemConfigItem = itemConfig:GetCollectible(collectibleType)
38142
+ return itemConfigItem ~= nil
38143
+ end
38144
+ )
38145
+ ____exports.VANILLA_COLLECTIBLE_TYPES_SET = __TS__New(ReadonlySet, ____exports.VANILLA_COLLECTIBLE_TYPES)
38146
+ ____exports.VANILLA_TRINKET_TYPE_RANGE = iRange(nil, FIRST_TRINKET_TYPE, LAST_VANILLA_TRINKET_TYPE)
38147
+ ____exports.VANILLA_TRINKET_TYPES = __TS__ArrayFilter(
38148
+ ____exports.VANILLA_TRINKET_TYPE_RANGE,
38149
+ function(____, potentialTrinketType)
38150
+ local trinketType = asTrinketType(nil, potentialTrinketType)
38151
+ local itemConfigTrinket = itemConfig:GetTrinket(trinketType)
38152
+ return itemConfigTrinket ~= nil
38153
+ end
38154
+ )
38155
+ ____exports.VANILLA_TRINKET_TYPES_SET = __TS__New(ReadonlySet, ____exports.VANILLA_TRINKET_TYPES)
38156
+ ____exports.VANILLA_CARD_TYPE_RANGE = iRange(nil, FIRST_CARD_TYPE, LAST_VANILLA_CARD_TYPE)
38157
+ ____exports.VANILLA_CARD_TYPES = __TS__ArrayFilter(
38158
+ ____exports.VANILLA_CARD_TYPE_RANGE,
38159
+ function(____, potentialCardType)
38160
+ local cardType = asCardType(nil, potentialCardType)
38161
+ local itemConfigCard = itemConfig:GetCard(cardType)
38162
+ return itemConfigCard ~= nil
38163
+ end
38164
+ )
38165
+ ____exports.VANILLA_CARD_TYPES_SET = __TS__New(ReadonlySet, ____exports.VANILLA_CARD_TYPES)
38166
+ ____exports.VANILLA_PILL_EFFECT_RANGE = iRange(nil, FIRST_PILL_EFFECT, LAST_VANILLA_PILL_EFFECT)
38167
+ ____exports.VANILLA_PILL_EFFECTS = __TS__ArrayFilter(
38168
+ ____exports.VANILLA_PILL_EFFECT_RANGE,
38169
+ function(____, potentialPillEffect)
38170
+ local pillEffect = asPillEffect(nil, potentialPillEffect)
38171
+ local itemConfigPillEffect = itemConfig:GetPillEffect(pillEffect)
38172
+ return itemConfigPillEffect ~= nil
38173
+ end
38174
+ )
38175
+ ____exports.VANILLA_PILL_EFFECTS_SET = __TS__New(ReadonlySet, ____exports.VANILLA_PILL_EFFECTS)
38102
38176
  return ____exports
38103
38177
  end,
38104
38178
  ["src.objects.cardDescriptions"] = function(...)
@@ -38334,7 +38408,6 @@ local UseFlag = ____isaac_2Dtypescript_2Ddefinitions.UseFlag
38334
38408
  local ____cachedClasses = require("src.core.cachedClasses")
38335
38409
  local itemConfig = ____cachedClasses.itemConfig
38336
38410
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
38337
- local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
38338
38411
  local LAST_VANILLA_CARD_TYPE = ____constantsFirstLast.LAST_VANILLA_CARD_TYPE
38339
38412
  local ____cardDescriptions = require("src.objects.cardDescriptions")
38340
38413
  local CARD_DESCRIPTIONS = ____cardDescriptions.CARD_DESCRIPTIONS
@@ -38346,8 +38419,6 @@ local ____itemConfigCardTypesForCardsSet = require("src.sets.itemConfigCardTypes
38346
38419
  local ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET = ____itemConfigCardTypesForCardsSet.ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET
38347
38420
  local ____flag = require("src.functions.flag")
38348
38421
  local addFlag = ____flag.addFlag
38349
- local ____utils = require("src.functions.utils")
38350
- local iRange = ____utils.iRange
38351
38422
  function ____exports.isVanillaCardType(self, cardType)
38352
38423
  return cardType <= LAST_VANILLA_CARD_TYPE
38353
38424
  end
@@ -38380,9 +38451,6 @@ function ____exports.getItemConfigCardType(self, cardType)
38380
38451
  end
38381
38452
  return itemConfigCard.CardType
38382
38453
  end
38383
- function ____exports.getVanillaCardTypes(self)
38384
- return iRange(nil, FIRST_CARD_TYPE, LAST_VANILLA_CARD_TYPE)
38385
- end
38386
38454
  function ____exports.isCard(self, cardType)
38387
38455
  local itemConfigCardType = ____exports.getItemConfigCardType(nil, cardType)
38388
38456
  if itemConfigCardType == nil then
@@ -38453,8 +38521,6 @@ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
38453
38521
  local ____cachedClasses = require("src.core.cachedClasses")
38454
38522
  local itemConfig = ____cachedClasses.itemConfig
38455
38523
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
38456
- local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
38457
- local FIRST_PILL_EFFECT = ____constantsFirstLast.FIRST_PILL_EFFECT
38458
38524
  local LAST_VANILLA_CARD_TYPE = ____constantsFirstLast.LAST_VANILLA_CARD_TYPE
38459
38525
  local LAST_VANILLA_COLLECTIBLE_TYPE = ____constantsFirstLast.LAST_VANILLA_COLLECTIBLE_TYPE
38460
38526
  local LAST_VANILLA_PILL_EFFECT = ____constantsFirstLast.LAST_VANILLA_PILL_EFFECT
@@ -38471,8 +38537,6 @@ local asCollectibleType = ____types.asCollectibleType
38471
38537
  local asNumber = ____types.asNumber
38472
38538
  local asPillEffect = ____types.asPillEffect
38473
38539
  local asTrinketType = ____types.asTrinketType
38474
- local ____utils = require("src.functions.utils")
38475
- local iRange = ____utils.iRange
38476
38540
  local ____Feature = require("src.classes.private.Feature")
38477
38541
  local Feature = ____Feature.Feature
38478
38542
  ____exports.ModdedElementDetection = __TS__Class()
@@ -38482,7 +38546,7 @@ __TS__ClassExtends(ModdedElementDetection, Feature)
38482
38546
  function ModdedElementDetection.prototype.____constructor(self)
38483
38547
  Feature.prototype.____constructor(self)
38484
38548
  self.atLeastOneCallbackFired = false
38485
- self.postPlayerInit = function(____, _player)
38549
+ self.postPlayerInit = function()
38486
38550
  self.atLeastOneCallbackFired = true
38487
38551
  end
38488
38552
  self.callbacksUsed = {{ModCallback.POST_PLAYER_INIT, self.postPlayerInit}}
@@ -38513,16 +38577,6 @@ function ModdedElementDetection.prototype.getLastCollectibleType(self)
38513
38577
  return itemConfig:GetCollectibles().Size - 1
38514
38578
  end
38515
38579
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getLastCollectibleType", true)
38516
- function ModdedElementDetection.prototype.getModdedCollectibleTypes(self)
38517
- self:errorIfNoCallbacksFired("collectible")
38518
- local firstModdedCollectibleType = self:getFirstModdedCollectibleType()
38519
- if firstModdedCollectibleType == nil then
38520
- return {}
38521
- end
38522
- local lastCollectibleType = self:getLastCollectibleType()
38523
- return iRange(nil, firstModdedCollectibleType, lastCollectibleType)
38524
- end
38525
- __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getModdedCollectibleTypes", true)
38526
38580
  function ModdedElementDetection.prototype.getNumCollectibleTypes(self)
38527
38581
  self:errorIfNoCallbacksFired("collectible")
38528
38582
  local numModdedCollectibleTypes = self:getNumModdedCollectibleTypes()
@@ -38556,16 +38610,6 @@ function ModdedElementDetection.prototype.getLastTrinketType(self)
38556
38610
  return itemConfig:GetTrinkets().Size - 1
38557
38611
  end
38558
38612
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getLastTrinketType", true)
38559
- function ModdedElementDetection.prototype.getModdedTrinketTypes(self)
38560
- self:errorIfNoCallbacksFired("trinket")
38561
- local firstModdedTrinketType = self:getFirstModdedTrinketType()
38562
- if firstModdedTrinketType == nil then
38563
- return {}
38564
- end
38565
- local lastTrinketType = self:getLastTrinketType()
38566
- return iRange(nil, firstModdedTrinketType, lastTrinketType)
38567
- end
38568
- __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getModdedTrinketTypes", true)
38569
38613
  function ModdedElementDetection.prototype.getNumTrinketTypes(self)
38570
38614
  self:errorIfNoCallbacksFired("trinket")
38571
38615
  local numModdedTrinketTypes = self:getNumModdedTrinketTypes()
@@ -38578,12 +38622,6 @@ function ModdedElementDetection.prototype.getNumModdedTrinketTypes(self)
38578
38622
  return lastTrinketType - LAST_VANILLA_TRINKET_TYPE
38579
38623
  end
38580
38624
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getNumModdedTrinketTypes", true)
38581
- function ModdedElementDetection.prototype.getAllCardTypes(self)
38582
- self:errorIfNoCallbacksFired("card")
38583
- local lastCardType = self:getLastCardType()
38584
- return iRange(nil, FIRST_CARD_TYPE, lastCardType)
38585
- end
38586
- __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getAllCardTypes", true)
38587
38625
  function ModdedElementDetection.prototype.getFirstModdedCardType(self)
38588
38626
  self:errorIfNoCallbacksFired("card")
38589
38627
  local firstModdedCardType = asCardType(
@@ -38606,16 +38644,6 @@ function ModdedElementDetection.prototype.getLastCardType(self)
38606
38644
  return asCardType(nil, numCards)
38607
38645
  end
38608
38646
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getLastCardType", true)
38609
- function ModdedElementDetection.prototype.getModdedCardTypes(self)
38610
- self:errorIfNoCallbacksFired("card")
38611
- local firstModdedCardType = self:getFirstModdedCardType()
38612
- if firstModdedCardType == nil then
38613
- return {}
38614
- end
38615
- local lastCardType = self:getLastCardType()
38616
- return iRange(nil, firstModdedCardType, lastCardType)
38617
- end
38618
- __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getModdedCardTypes", true)
38619
38647
  function ModdedElementDetection.prototype.getNumCardTypes(self)
38620
38648
  self:errorIfNoCallbacksFired("card")
38621
38649
  return itemConfig:GetCards().Size - 1
@@ -38627,12 +38655,6 @@ function ModdedElementDetection.prototype.getNumModdedCardTypes(self)
38627
38655
  return numCardTypes - NUM_VANILLA_CARD_TYPES
38628
38656
  end
38629
38657
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getNumModdedCardTypes", true)
38630
- function ModdedElementDetection.prototype.getAllPillEffects(self)
38631
- self:errorIfNoCallbacksFired("pill")
38632
- local lastPillEffect = self:getLastPillEffect()
38633
- return iRange(nil, FIRST_PILL_EFFECT, lastPillEffect)
38634
- end
38635
- __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getAllPillEffects", true)
38636
38658
  function ModdedElementDetection.prototype.getFirstModdedPillEffect(self)
38637
38659
  self:errorIfNoCallbacksFired("pill")
38638
38660
  local firstModdedPillEffect = asPillEffect(
@@ -38655,16 +38677,6 @@ function ModdedElementDetection.prototype.getLastPillEffect(self)
38655
38677
  return asPillEffect(nil, numPillEffects)
38656
38678
  end
38657
38679
  __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getLastPillEffect", true)
38658
- function ModdedElementDetection.prototype.getModdedPillEffects(self)
38659
- self:errorIfNoCallbacksFired("pill")
38660
- local firstModdedPillEffect = self:getFirstModdedPillEffect()
38661
- if firstModdedPillEffect == nil then
38662
- return {}
38663
- end
38664
- local lastPillEffect = self:getLastPillEffect()
38665
- return iRange(nil, firstModdedPillEffect, lastPillEffect)
38666
- end
38667
- __TS__DecorateLegacy({Exported}, ModdedElementDetection.prototype, "getModdedPillEffects", true)
38668
38680
  function ModdedElementDetection.prototype.getNumPillEffects(self)
38669
38681
  self:errorIfNoCallbacksFired("pill")
38670
38682
  return itemConfig:GetPillEffects().Size
@@ -38704,18 +38716,21 @@ local ____cachedClasses = require("src.core.cachedClasses")
38704
38716
  local itemConfig = ____cachedClasses.itemConfig
38705
38717
  local ____constants = require("src.core.constants")
38706
38718
  local FIRST_GLITCHED_COLLECTIBLE_TYPE = ____constants.FIRST_GLITCHED_COLLECTIBLE_TYPE
38719
+ local ____constantsVanilla = require("src.core.constantsVanilla")
38720
+ local VANILLA_CARD_TYPES = ____constantsVanilla.VANILLA_CARD_TYPES
38721
+ local VANILLA_COLLECTIBLE_TYPES = ____constantsVanilla.VANILLA_COLLECTIBLE_TYPES
38722
+ local VANILLA_PILL_EFFECTS = ____constantsVanilla.VANILLA_PILL_EFFECTS
38723
+ local VANILLA_TRINKET_TYPES = ____constantsVanilla.VANILLA_TRINKET_TYPES
38707
38724
  local ____decorators = require("src.decorators")
38708
38725
  local Exported = ____decorators.Exported
38709
38726
  local ____ISCFeature = require("src.enums.ISCFeature")
38710
38727
  local ISCFeature = ____ISCFeature.ISCFeature
38711
38728
  local ____cards = require("src.functions.cards")
38712
38729
  local getItemConfigCardType = ____cards.getItemConfigCardType
38713
- local getVanillaCardTypes = ____cards.getVanillaCardTypes
38714
38730
  local ____collectibleTag = require("src.functions.collectibleTag")
38715
38731
  local collectibleHasTag = ____collectibleTag.collectibleHasTag
38716
38732
  local ____collectibles = require("src.functions.collectibles")
38717
38733
  local collectibleHasCacheFlag = ____collectibles.collectibleHasCacheFlag
38718
- local getVanillaCollectibleTypeRange = ____collectibles.getVanillaCollectibleTypeRange
38719
38734
  local isActiveCollectible = ____collectibles.isActiveCollectible
38720
38735
  local isHiddenCollectible = ____collectibles.isHiddenCollectible
38721
38736
  local isPassiveCollectible = ____collectibles.isPassiveCollectible
@@ -38729,10 +38744,15 @@ local deleteSetsFromSet = ____set.deleteSetsFromSet
38729
38744
  local getRandomSetElement = ____set.getRandomSetElement
38730
38745
  local getSortedSetValues = ____set.getSortedSetValues
38731
38746
  local ____trinkets = require("src.functions.trinkets")
38732
- local getVanillaTrinketTypeRange = ____trinkets.getVanillaTrinketTypeRange
38733
38747
  local trinketHasCacheFlag = ____trinkets.trinketHasCacheFlag
38748
+ local ____types = require("src.functions.types")
38749
+ local asCardType = ____types.asCardType
38750
+ local asCollectibleType = ____types.asCollectibleType
38751
+ local asPillEffect = ____types.asPillEffect
38752
+ local asTrinketType = ____types.asTrinketType
38734
38753
  local ____utils = require("src.functions.utils")
38735
38754
  local assertDefined = ____utils.assertDefined
38755
+ local iRange = ____utils.iRange
38736
38756
  local ____repeat = ____utils["repeat"]
38737
38757
  local ____itemConfigCardTypesForCardsSet = require("src.sets.itemConfigCardTypesForCardsSet")
38738
38758
  local ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET = ____itemConfigCardTypesForCardsSet.ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET
@@ -38766,28 +38786,26 @@ function ModdedElementSets.prototype.____constructor(self, moddedElementDetectio
38766
38786
  self.arraysInitialized = false
38767
38787
  self.allCollectibleTypesArray = {}
38768
38788
  self.allCollectibleTypesSet = __TS__New(Set)
38769
- self.vanillaCollectibleTypesArray = {}
38770
- self.vanillaCollectibleTypesSet = __TS__New(Set)
38771
38789
  self.moddedCollectibleTypesArray = {}
38772
38790
  self.moddedCollectibleTypesSet = __TS__New(Set)
38773
38791
  self.allTrinketTypesArray = {}
38774
38792
  self.allTrinketTypesSet = __TS__New(Set)
38775
- self.vanillaTrinketTypesArray = {}
38776
- self.vanillaTrinketTypesSet = __TS__New(Set)
38777
38793
  self.moddedTrinketTypesArray = {}
38778
38794
  self.moddedTrinketTypesSet = __TS__New(Set)
38779
38795
  self.allCardTypesArray = {}
38780
38796
  self.allCardTypesSet = __TS__New(Set)
38781
- self.vanillaCardTypesArray = {}
38782
- self.vanillaCardTypesSet = __TS__New(Set)
38783
38797
  self.moddedCardTypesArray = {}
38784
38798
  self.moddedCardTypesSet = __TS__New(Set)
38785
- self.tagToCollectibleTypesMap = __TS__New(Map)
38799
+ self.allPillEffectsArray = {}
38800
+ self.allPillEffectsSet = __TS__New(Set)
38801
+ self.moddedPillEffectsArray = {}
38802
+ self.moddedPillEffectsSet = __TS__New(Set)
38786
38803
  self.cacheFlagToCollectibleTypesMap = __TS__New(Map)
38787
38804
  self.cacheFlagToTrinketTypesMap = __TS__New(Map)
38788
38805
  self.flyingCollectibleTypesSet = __TS__New(Set)
38789
38806
  self.permanentFlyingCollectibleTypesSet = __TS__New(Set)
38790
38807
  self.flyingTrinketTypesSet = __TS__New(Set)
38808
+ self.tagToCollectibleTypesMap = __TS__New(Map)
38791
38809
  self.edenActiveCollectibleTypesSet = __TS__New(Set)
38792
38810
  self.edenPassiveCollectibleTypesSet = __TS__New(Set)
38793
38811
  self.itemConfigCardTypeToCardTypeMap = __TS__New(Map)
@@ -38800,12 +38818,10 @@ function ModdedElementSets.prototype.lazyInit(self)
38800
38818
  return
38801
38819
  end
38802
38820
  self.arraysInitialized = true
38803
- self:lazyInitVanillaCollectibleTypes()
38804
38821
  self:lazyInitModdedCollectibleTypes()
38805
- self:lazyInitVanillaTrinketTypes()
38806
38822
  self:lazyInitModdedTrinketTypes()
38807
- self:lazyInitVanillaCardTypes()
38808
38823
  self:lazyInitModdedCardTypes()
38824
+ self:lazyInitModdedPillEffects()
38809
38825
  self:lazyInitTagToCollectibleTypesMap()
38810
38826
  self:lazyInitCacheFlagToCollectibleTypesMap()
38811
38827
  self:lazyInitCacheFlagToTrinketTypesMap()
@@ -38814,102 +38830,103 @@ function ModdedElementSets.prototype.lazyInit(self)
38814
38830
  self:lazyInitEdenCollectibleTypesSet()
38815
38831
  self:lazyInitCardTypes()
38816
38832
  end
38817
- function ModdedElementSets.prototype.lazyInitVanillaCollectibleTypes(self)
38818
- if #self.vanillaCollectibleTypesArray > 0 then
38819
- return
38820
- end
38821
- local vanillaCollectibleTypeRange = getVanillaCollectibleTypeRange(nil)
38822
- for ____, collectibleType in ipairs(vanillaCollectibleTypeRange) do
38823
- local itemConfigItem = itemConfig:GetCollectible(collectibleType)
38824
- if itemConfigItem ~= nil then
38825
- local ____self_vanillaCollectibleTypesArray_0 = self.vanillaCollectibleTypesArray
38826
- ____self_vanillaCollectibleTypesArray_0[#____self_vanillaCollectibleTypesArray_0 + 1] = collectibleType
38827
- self.vanillaCollectibleTypesSet:add(collectibleType)
38828
- end
38829
- end
38830
- end
38831
38833
  function ModdedElementSets.prototype.lazyInitModdedCollectibleTypes(self)
38832
- for ____, collectibleType in ipairs(self.vanillaCollectibleTypesArray) do
38833
- local ____self_allCollectibleTypesArray_1 = self.allCollectibleTypesArray
38834
- ____self_allCollectibleTypesArray_1[#____self_allCollectibleTypesArray_1 + 1] = collectibleType
38834
+ for ____, collectibleType in ipairs(VANILLA_COLLECTIBLE_TYPES) do
38835
+ local ____self_allCollectibleTypesArray_0 = self.allCollectibleTypesArray
38836
+ ____self_allCollectibleTypesArray_0[#____self_allCollectibleTypesArray_0 + 1] = collectibleType
38835
38837
  self.allCollectibleTypesSet:add(collectibleType)
38836
38838
  end
38837
- local moddedCollectibleTypes = self.moddedElementDetection:getModdedCollectibleTypes()
38838
- for ____, collectibleType in ipairs(moddedCollectibleTypes) do
38839
+ local firstModdedCollectibleType = self.moddedElementDetection:getFirstModdedCollectibleType()
38840
+ if firstModdedCollectibleType == nil then
38841
+ return
38842
+ end
38843
+ local lastCollectibleType = self.moddedElementDetection:getLastCollectibleType()
38844
+ local moddedCollectibleTypes = iRange(nil, firstModdedCollectibleType, lastCollectibleType)
38845
+ for ____, collectibleTypeInt in ipairs(moddedCollectibleTypes) do
38846
+ local collectibleType = asCollectibleType(nil, collectibleTypeInt)
38839
38847
  local itemConfigItem = itemConfig:GetCollectible(collectibleType)
38840
38848
  if itemConfigItem ~= nil then
38841
- local ____self_moddedCollectibleTypesArray_2 = self.moddedCollectibleTypesArray
38842
- ____self_moddedCollectibleTypesArray_2[#____self_moddedCollectibleTypesArray_2 + 1] = collectibleType
38849
+ local ____self_moddedCollectibleTypesArray_1 = self.moddedCollectibleTypesArray
38850
+ ____self_moddedCollectibleTypesArray_1[#____self_moddedCollectibleTypesArray_1 + 1] = collectibleType
38843
38851
  self.moddedCollectibleTypesSet:add(collectibleType)
38844
- local ____self_allCollectibleTypesArray_3 = self.allCollectibleTypesArray
38845
- ____self_allCollectibleTypesArray_3[#____self_allCollectibleTypesArray_3 + 1] = collectibleType
38852
+ local ____self_allCollectibleTypesArray_2 = self.allCollectibleTypesArray
38853
+ ____self_allCollectibleTypesArray_2[#____self_allCollectibleTypesArray_2 + 1] = collectibleType
38846
38854
  self.allCollectibleTypesSet:add(collectibleType)
38847
38855
  end
38848
38856
  end
38849
38857
  end
38850
- function ModdedElementSets.prototype.lazyInitVanillaTrinketTypes(self)
38851
- if #self.vanillaTrinketTypesArray > 0 then
38852
- return
38853
- end
38854
- local vanillaTrinketTypeRange = getVanillaTrinketTypeRange(nil)
38855
- for ____, trinketType in ipairs(vanillaTrinketTypeRange) do
38856
- local itemConfigItem = itemConfig:GetTrinket(trinketType)
38857
- if itemConfigItem ~= nil then
38858
- local ____self_vanillaTrinketTypesArray_4 = self.vanillaTrinketTypesArray
38859
- ____self_vanillaTrinketTypesArray_4[#____self_vanillaTrinketTypesArray_4 + 1] = trinketType
38860
- self.vanillaTrinketTypesSet:add(trinketType)
38861
- end
38862
- end
38863
- end
38864
38858
  function ModdedElementSets.prototype.lazyInitModdedTrinketTypes(self)
38865
- for ____, trinketType in ipairs(self.vanillaTrinketTypesArray) do
38866
- local ____self_allTrinketTypesArray_5 = self.allTrinketTypesArray
38867
- ____self_allTrinketTypesArray_5[#____self_allTrinketTypesArray_5 + 1] = trinketType
38859
+ for ____, trinketType in ipairs(VANILLA_TRINKET_TYPES) do
38860
+ local ____self_allTrinketTypesArray_3 = self.allTrinketTypesArray
38861
+ ____self_allTrinketTypesArray_3[#____self_allTrinketTypesArray_3 + 1] = trinketType
38868
38862
  self.allTrinketTypesSet:add(trinketType)
38869
38863
  end
38870
- local moddedTrinketTypes = self.moddedElementDetection:getModdedTrinketTypes()
38871
- for ____, trinketType in ipairs(moddedTrinketTypes) do
38864
+ local firstModdedTrinketType = self.moddedElementDetection:getFirstModdedTrinketType()
38865
+ if firstModdedTrinketType == nil then
38866
+ return
38867
+ end
38868
+ local lastTrinketType = self.moddedElementDetection:getLastTrinketType()
38869
+ local moddedTrinketTypes = iRange(nil, firstModdedTrinketType, lastTrinketType)
38870
+ for ____, trinketTypeInt in ipairs(moddedTrinketTypes) do
38871
+ local trinketType = asTrinketType(nil, trinketTypeInt)
38872
38872
  local itemConfigItem = itemConfig:GetTrinket(trinketType)
38873
38873
  if itemConfigItem ~= nil then
38874
- local ____self_moddedTrinketTypesArray_6 = self.moddedTrinketTypesArray
38875
- ____self_moddedTrinketTypesArray_6[#____self_moddedTrinketTypesArray_6 + 1] = trinketType
38874
+ local ____self_moddedTrinketTypesArray_4 = self.moddedTrinketTypesArray
38875
+ ____self_moddedTrinketTypesArray_4[#____self_moddedTrinketTypesArray_4 + 1] = trinketType
38876
38876
  self.moddedTrinketTypesSet:add(trinketType)
38877
- local ____self_allTrinketTypesArray_7 = self.allTrinketTypesArray
38878
- ____self_allTrinketTypesArray_7[#____self_allTrinketTypesArray_7 + 1] = trinketType
38877
+ local ____self_allTrinketTypesArray_5 = self.allTrinketTypesArray
38878
+ ____self_allTrinketTypesArray_5[#____self_allTrinketTypesArray_5 + 1] = trinketType
38879
38879
  self.allTrinketTypesSet:add(trinketType)
38880
38880
  end
38881
38881
  end
38882
38882
  end
38883
- function ModdedElementSets.prototype.lazyInitVanillaCardTypes(self)
38884
- if #self.vanillaCardTypesArray > 0 then
38883
+ function ModdedElementSets.prototype.lazyInitModdedCardTypes(self)
38884
+ for ____, cardType in ipairs(VANILLA_CARD_TYPES) do
38885
+ local ____self_allCardTypesArray_6 = self.allCardTypesArray
38886
+ ____self_allCardTypesArray_6[#____self_allCardTypesArray_6 + 1] = cardType
38887
+ self.allCardTypesSet:add(cardType)
38888
+ end
38889
+ local firstModdedCardType = self.moddedElementDetection:getFirstModdedCardType()
38890
+ if firstModdedCardType == nil then
38885
38891
  return
38886
38892
  end
38887
- local vanillaCardTypes = getVanillaCardTypes(nil)
38888
- for ____, cardType in ipairs(vanillaCardTypes) do
38893
+ local lastCardType = self.moddedElementDetection:getLastCardType()
38894
+ local moddedCardTypes = iRange(nil, firstModdedCardType, lastCardType)
38895
+ for ____, cardTypeInt in ipairs(moddedCardTypes) do
38896
+ local cardType = asCardType(nil, cardTypeInt)
38889
38897
  local itemConfigCard = itemConfig:GetCard(cardType)
38890
38898
  if itemConfigCard ~= nil then
38891
- local ____self_vanillaCardTypesArray_8 = self.vanillaCardTypesArray
38892
- ____self_vanillaCardTypesArray_8[#____self_vanillaCardTypesArray_8 + 1] = cardType
38893
- self.vanillaCardTypesSet:add(cardType)
38899
+ local ____self_moddedCardTypesArray_7 = self.moddedCardTypesArray
38900
+ ____self_moddedCardTypesArray_7[#____self_moddedCardTypesArray_7 + 1] = cardType
38901
+ self.moddedCardTypesSet:add(cardType)
38902
+ local ____self_allCardTypesArray_8 = self.allCardTypesArray
38903
+ ____self_allCardTypesArray_8[#____self_allCardTypesArray_8 + 1] = cardType
38904
+ self.allCardTypesSet:add(cardType)
38894
38905
  end
38895
38906
  end
38896
38907
  end
38897
- function ModdedElementSets.prototype.lazyInitModdedCardTypes(self)
38898
- for ____, cardType in ipairs(self.vanillaCardTypesArray) do
38899
- local ____self_allCardTypesArray_9 = self.allCardTypesArray
38900
- ____self_allCardTypesArray_9[#____self_allCardTypesArray_9 + 1] = cardType
38901
- self.allCardTypesSet:add(cardType)
38908
+ function ModdedElementSets.prototype.lazyInitModdedPillEffects(self)
38909
+ for ____, pillEffect in ipairs(VANILLA_PILL_EFFECTS) do
38910
+ local ____self_allPillEffectsArray_9 = self.allPillEffectsArray
38911
+ ____self_allPillEffectsArray_9[#____self_allPillEffectsArray_9 + 1] = pillEffect
38912
+ self.allPillEffectsSet:add(pillEffect)
38902
38913
  end
38903
- local moddedCardTypes = self.moddedElementDetection:getModdedCardTypes()
38904
- for ____, cardType in ipairs(moddedCardTypes) do
38905
- local itemConfigCard = itemConfig:GetCard(cardType)
38906
- if itemConfigCard ~= nil then
38907
- local ____self_moddedCardTypesArray_10 = self.moddedCardTypesArray
38908
- ____self_moddedCardTypesArray_10[#____self_moddedCardTypesArray_10 + 1] = cardType
38909
- self.moddedCardTypesSet:add(cardType)
38910
- local ____self_allCardTypesArray_11 = self.allCardTypesArray
38911
- ____self_allCardTypesArray_11[#____self_allCardTypesArray_11 + 1] = cardType
38912
- self.allCardTypesSet:add(cardType)
38914
+ local firstModdedPillEffect = self.moddedElementDetection:getFirstModdedPillEffect()
38915
+ if firstModdedPillEffect == nil then
38916
+ return
38917
+ end
38918
+ local lastPillEffect = self.moddedElementDetection:getLastPillEffect()
38919
+ local moddedPillEffects = iRange(nil, firstModdedPillEffect, lastPillEffect)
38920
+ for ____, pillEffectInt in ipairs(moddedPillEffects) do
38921
+ local pillEffect = asPillEffect(nil, pillEffectInt)
38922
+ local itemConfigPillEffect = itemConfig:GetPillEffect(pillEffect)
38923
+ if itemConfigPillEffect ~= nil then
38924
+ local ____self_moddedPillEffectsArray_10 = self.moddedPillEffectsArray
38925
+ ____self_moddedPillEffectsArray_10[#____self_moddedPillEffectsArray_10 + 1] = pillEffect
38926
+ self.moddedPillEffectsSet:add(pillEffect)
38927
+ local ____self_allPillEffectsArray_11 = self.allPillEffectsArray
38928
+ ____self_allPillEffectsArray_11[#____self_allPillEffectsArray_11 + 1] = pillEffect
38929
+ self.allPillEffectsSet:add(pillEffect)
38913
38930
  end
38914
38931
  end
38915
38932
  end
@@ -38920,11 +38937,11 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
38920
38937
  __TS__New(Set)
38921
38938
  )
38922
38939
  end
38923
- for ____, collectibleType in ipairs(self:getCollectibleArray()) do
38940
+ for ____, collectibleType in ipairs(self:getCollectibleTypes()) do
38924
38941
  for ____, itemConfigTag in ipairs(ITEM_CONFIG_TAG_VALUES) do
38925
38942
  do
38926
38943
  if not collectibleHasTag(nil, collectibleType, itemConfigTag) then
38927
- goto __continue42
38944
+ goto __continue37
38928
38945
  end
38929
38946
  local collectibleTypesSet = self.tagToCollectibleTypesMap:get(itemConfigTag)
38930
38947
  if collectibleTypesSet == nil then
@@ -38933,14 +38950,14 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
38933
38950
  end
38934
38951
  collectibleTypesSet:add(collectibleType)
38935
38952
  end
38936
- ::__continue42::
38953
+ ::__continue37::
38937
38954
  end
38938
38955
  end
38939
38956
  end
38940
38957
  function ModdedElementSets.prototype.lazyInitCacheFlagToCollectibleTypesMap(self)
38941
38958
  for ____, cacheFlag in ipairs(CACHE_FLAG_VALUES) do
38942
38959
  local collectiblesSet = __TS__New(Set)
38943
- for ____, collectibleType in ipairs(self:getCollectibleArray()) do
38960
+ for ____, collectibleType in ipairs(self:getCollectibleTypes()) do
38944
38961
  if collectibleHasCacheFlag(nil, collectibleType, cacheFlag) then
38945
38962
  collectiblesSet:add(collectibleType)
38946
38963
  end
@@ -38951,7 +38968,7 @@ end
38951
38968
  function ModdedElementSets.prototype.lazyInitCacheFlagToTrinketTypesMap(self)
38952
38969
  for ____, cacheFlag in ipairs(CACHE_FLAG_VALUES) do
38953
38970
  local trinketsSet = __TS__New(Set)
38954
- for ____, trinketType in ipairs(self:getTrinketArray()) do
38971
+ for ____, trinketType in ipairs(self:getTrinketTypes()) do
38955
38972
  if trinketHasCacheFlag(nil, trinketType, cacheFlag) then
38956
38973
  trinketsSet:add(trinketType)
38957
38974
  end
@@ -38962,9 +38979,9 @@ end
38962
38979
  function ModdedElementSets.prototype.lazyInitFlyingCollectibleTypesSet(self)
38963
38980
  self.flyingCollectibleTypesSet = copySet(
38964
38981
  nil,
38965
- self:getCollectiblesWithCacheFlag(CacheFlag.FLYING)
38982
+ self:getCollectibleTypesWithCacheFlag(CacheFlag.FLYING)
38966
38983
  )
38967
- local collectiblesWithAllCacheFlag = self:getCollectiblesWithCacheFlag(CacheFlag.ALL)
38984
+ local collectiblesWithAllCacheFlag = self:getCollectibleTypesWithCacheFlag(CacheFlag.ALL)
38968
38985
  deleteSetsFromSet(nil, self.flyingCollectibleTypesSet, collectiblesWithAllCacheFlag)
38969
38986
  local permanentFlyingCollectibleTypes = copySet(nil, self.flyingCollectibleTypesSet)
38970
38987
  for ____, collectibleType in ipairs(CONDITIONAL_FLYING_COLLECTIBLE_TYPES) do
@@ -38977,20 +38994,20 @@ end
38977
38994
  function ModdedElementSets.prototype.lazyInitFlyingTrinketTypesSet(self)
38978
38995
  self.flyingTrinketTypesSet = copySet(
38979
38996
  nil,
38980
- self:getTrinketsWithCacheFlag(CacheFlag.FLYING)
38997
+ self:getTrinketsTypesWithCacheFlag(CacheFlag.FLYING)
38981
38998
  )
38982
38999
  local trinketsWithAllCacheFlag = copySet(
38983
39000
  nil,
38984
- self:getTrinketsWithCacheFlag(CacheFlag.ALL)
39001
+ self:getTrinketsTypesWithCacheFlag(CacheFlag.ALL)
38985
39002
  )
38986
39003
  trinketsWithAllCacheFlag:delete(TrinketType.AZAZELS_STUMP)
38987
39004
  deleteSetsFromSet(nil, self.flyingTrinketTypesSet, trinketsWithAllCacheFlag)
38988
39005
  end
38989
39006
  function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
38990
- for ____, collectibleType in ipairs(self:getCollectibleArray()) do
39007
+ for ____, collectibleType in ipairs(self:getCollectibleTypes()) do
38991
39008
  do
38992
39009
  if isHiddenCollectible(nil, collectibleType) or collectibleHasTag(nil, collectibleType, ItemConfigTag.NO_EDEN) then
38993
- goto __continue66
39010
+ goto __continue61
38994
39011
  end
38995
39012
  if isActiveCollectible(nil, collectibleType) then
38996
39013
  self.edenActiveCollectibleTypesSet:add(collectibleType)
@@ -38999,7 +39016,7 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
38999
39016
  self.edenPassiveCollectibleTypesSet:add(collectibleType)
39000
39017
  end
39001
39018
  end
39002
- ::__continue66::
39019
+ ::__continue61::
39003
39020
  end
39004
39021
  end
39005
39022
  function ModdedElementSets.prototype.lazyInitCardTypes(self)
@@ -39009,7 +39026,7 @@ function ModdedElementSets.prototype.lazyInitCardTypes(self)
39009
39026
  __TS__New(Set)
39010
39027
  )
39011
39028
  end
39012
- for ____, cardType in ipairs(self:getCardArray()) do
39029
+ for ____, cardType in ipairs(self:getCardTypes()) do
39013
39030
  local itemConfigCardType = getItemConfigCardType(nil, cardType)
39014
39031
  if itemConfigCardType ~= nil then
39015
39032
  local cardTypeSet = self.itemConfigCardTypeToCardTypeMap:get(itemConfigCardType)
@@ -39025,126 +39042,28 @@ function ModdedElementSets.prototype.lazyInitCardTypes(self)
39025
39042
  end
39026
39043
  end
39027
39044
  end
39028
- function ModdedElementSets.prototype.getCardArray(self)
39029
- self:lazyInit()
39030
- return self.allCardTypesArray
39031
- end
39032
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCardArray", true)
39033
- function ModdedElementSets.prototype.getCardSet(self)
39034
- self:lazyInit()
39035
- return self.allCardTypesSet
39036
- end
39037
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCardSet", true)
39038
- function ModdedElementSets.prototype.getCardTypesOfType(self, ...)
39039
- local itemConfigCardTypes = {...}
39040
- self:lazyInit()
39041
- local matchingCardTypes = __TS__New(Set)
39042
- for ____, itemConfigCardType in ipairs(itemConfigCardTypes) do
39043
- local cardTypeSet = self.itemConfigCardTypeToCardTypeMap:get(itemConfigCardType)
39044
- assertDefined(
39045
- nil,
39046
- cardTypeSet,
39047
- "Failed to get the card type set for item config type: " .. tostring(itemConfigCardType)
39048
- )
39049
- for ____, cardType in __TS__Iterator(cardTypeSet) do
39050
- matchingCardTypes:add(cardType)
39051
- end
39052
- end
39053
- return matchingCardTypes
39054
- end
39055
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCardTypesOfType", true)
39056
- function ModdedElementSets.prototype.getCollectibleArray(self)
39045
+ function ModdedElementSets.prototype.getCollectibleTypes(self)
39057
39046
  self:lazyInit()
39058
39047
  return self.allCollectibleTypesArray
39059
39048
  end
39060
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleArray", true)
39061
- function ModdedElementSets.prototype.getCollectibleSet(self)
39049
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleTypes", true)
39050
+ function ModdedElementSets.prototype.getCollectibleTypeSet(self)
39062
39051
  self:lazyInit()
39063
39052
  return self.allCollectibleTypesSet
39064
39053
  end
39065
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleSet", true)
39066
- function ModdedElementSets.prototype.getCollectiblesForTransformation(self, playerForm)
39067
- local itemConfigTag = TRANSFORMATION_TO_TAG_MAP:get(playerForm)
39068
- assertDefined(
39069
- nil,
39070
- itemConfigTag,
39071
- ("Failed to get the collectible types for the transformation of " .. tostring(playerForm)) .. " because that transformation is not based on collectibles."
39072
- )
39073
- return self:getCollectiblesWithTag(itemConfigTag)
39074
- end
39075
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectiblesForTransformation", true)
39076
- function ModdedElementSets.prototype.getCollectiblesWithCacheFlag(self, cacheFlag)
39077
- self:lazyInit()
39078
- local collectiblesSet = self.cacheFlagToCollectibleTypesMap:get(cacheFlag)
39079
- if collectiblesSet == nil then
39080
- return __TS__New(ReadonlySet)
39081
- end
39082
- return collectiblesSet
39083
- end
39084
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectiblesWithCacheFlag", true)
39085
- function ModdedElementSets.prototype.getCollectiblesWithTag(self, itemConfigTag)
39086
- self:lazyInit()
39087
- local collectibleTypes = self.tagToCollectibleTypesMap:get(itemConfigTag)
39088
- assertDefined(
39089
- nil,
39090
- collectibleTypes,
39091
- ("The item config tag of " .. tostring(itemConfigTag)) .. " is not a valid value of the \"ItemConfigTag\" enum."
39092
- )
39093
- return collectibleTypes
39094
- end
39095
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectiblesWithTag", true)
39096
- function ModdedElementSets.prototype.getEdenActiveCollectibles(self)
39097
- self:lazyInit()
39098
- return self.edenActiveCollectibleTypesSet
39099
- end
39100
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getEdenActiveCollectibles", true)
39101
- function ModdedElementSets.prototype.getEdenPassiveCollectibles(self)
39102
- self:lazyInit()
39103
- return self.edenPassiveCollectibleTypesSet
39104
- end
39105
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getEdenPassiveCollectibles", true)
39106
- function ModdedElementSets.prototype.getFlyingCollectibles(self, includeConditionalItems)
39107
- self:lazyInit()
39108
- return includeConditionalItems and self.flyingCollectibleTypesSet or self.permanentFlyingCollectibleTypesSet
39109
- end
39110
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getFlyingCollectibles", true)
39111
- function ModdedElementSets.prototype.getFlyingTrinkets(self)
39112
- self:lazyInit()
39113
- return self.flyingTrinketTypesSet
39114
- end
39115
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getFlyingTrinkets", true)
39116
- function ModdedElementSets.prototype.getModdedCardArray(self)
39117
- self:lazyInit()
39118
- return self.moddedCardTypesArray
39119
- end
39120
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedCardArray", true)
39121
- function ModdedElementSets.prototype.getModdedCardSet(self)
39122
- self:lazyInit()
39123
- return self.moddedCardTypesSet
39124
- end
39125
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedCardSet", true)
39126
- function ModdedElementSets.prototype.getModdedCollectibleArray(self)
39054
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleTypeSet", true)
39055
+ function ModdedElementSets.prototype.getModdedCollectibleTypes(self)
39127
39056
  self:lazyInit()
39128
39057
  return self.moddedCollectibleTypesArray
39129
39058
  end
39130
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedCollectibleArray", true)
39131
- function ModdedElementSets.prototype.getModdedCollectibleSet(self)
39059
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedCollectibleTypes", true)
39060
+ function ModdedElementSets.prototype.getModdedCollectibleTypesSet(self)
39132
39061
  self:lazyInit()
39133
39062
  return self.moddedCollectibleTypesSet
39134
39063
  end
39135
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedCollectibleSet", true)
39136
- function ModdedElementSets.prototype.getModdedTrinketArray(self)
39137
- self:lazyInit()
39138
- return self.moddedTrinketTypesArray
39139
- end
39140
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedTrinketArray", true)
39141
- function ModdedElementSets.prototype.getModdedTrinketSet(self)
39142
- self:lazyInit()
39143
- return self.moddedTrinketTypesSet
39144
- end
39145
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedTrinketSet", true)
39064
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedCollectibleTypesSet", true)
39146
39065
  function ModdedElementSets.prototype.getPlayerCollectibleMap(self, player)
39147
- local collectibleArray = self:getCollectibleArray()
39066
+ local collectibleArray = self:getCollectibleTypes()
39148
39067
  local collectibleMap = __TS__New(Map)
39149
39068
  for ____, collectibleType in ipairs(collectibleArray) do
39150
39069
  local numCollectibles = player:GetCollectibleNum(collectibleType, true)
@@ -39171,8 +39090,86 @@ function ModdedElementSets.prototype.getPlayerCollectibleMap(self, player)
39171
39090
  return collectibleMap
39172
39091
  end
39173
39092
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPlayerCollectibleMap", true)
39093
+ function ModdedElementSets.prototype.getTrinketTypes(self)
39094
+ self:lazyInit()
39095
+ return self.allTrinketTypesArray
39096
+ end
39097
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getTrinketTypes", true)
39098
+ function ModdedElementSets.prototype.getTrinketTypesSet(self)
39099
+ self:lazyInit()
39100
+ return self.allTrinketTypesSet
39101
+ end
39102
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getTrinketTypesSet", true)
39103
+ function ModdedElementSets.prototype.getModdedTrinketTypes(self)
39104
+ self:lazyInit()
39105
+ return self.moddedTrinketTypesArray
39106
+ end
39107
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedTrinketTypes", true)
39108
+ function ModdedElementSets.prototype.getModdedTrinketTypesSet(self)
39109
+ self:lazyInit()
39110
+ return self.moddedTrinketTypesSet
39111
+ end
39112
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedTrinketTypesSet", true)
39113
+ function ModdedElementSets.prototype.getCardTypes(self)
39114
+ self:lazyInit()
39115
+ return self.allCardTypesArray
39116
+ end
39117
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCardTypes", true)
39118
+ function ModdedElementSets.prototype.getCardTypesSet(self)
39119
+ self:lazyInit()
39120
+ return self.allCardTypesSet
39121
+ end
39122
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCardTypesSet", true)
39123
+ function ModdedElementSets.prototype.getModdedCardTypes(self)
39124
+ self:lazyInit()
39125
+ return self.moddedCardTypesArray
39126
+ end
39127
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedCardTypes", true)
39128
+ function ModdedElementSets.prototype.getModdedCardTypesSet(self)
39129
+ self:lazyInit()
39130
+ return self.moddedCardTypesSet
39131
+ end
39132
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedCardTypesSet", true)
39133
+ function ModdedElementSets.prototype.getPillEffects(self)
39134
+ self:lazyInit()
39135
+ return self.allPillEffectsArray
39136
+ end
39137
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPillEffects", true)
39138
+ function ModdedElementSets.prototype.getPillEffectsSet(self)
39139
+ self:lazyInit()
39140
+ return self.allPillEffectsSet
39141
+ end
39142
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPillEffectsSet", true)
39143
+ function ModdedElementSets.prototype.getModdedPillEffects(self)
39144
+ self:lazyInit()
39145
+ return self.moddedPillEffectsArray
39146
+ end
39147
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedPillEffects", true)
39148
+ function ModdedElementSets.prototype.getModdedPillEffectsSet(self)
39149
+ self:lazyInit()
39150
+ return self.moddedPillEffectsSet
39151
+ end
39152
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getModdedPillEffectsSet", true)
39153
+ function ModdedElementSets.prototype.getCollectibleTypesWithCacheFlag(self, cacheFlag)
39154
+ self:lazyInit()
39155
+ local collectiblesSet = self.cacheFlagToCollectibleTypesMap:get(cacheFlag)
39156
+ if collectiblesSet == nil then
39157
+ return __TS__New(ReadonlySet)
39158
+ end
39159
+ return collectiblesSet
39160
+ end
39161
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleTypesWithCacheFlag", true)
39162
+ function ModdedElementSets.prototype.getTrinketsTypesWithCacheFlag(self, cacheFlag)
39163
+ self:lazyInit()
39164
+ local trinketsSet = self.cacheFlagToTrinketTypesMap:get(cacheFlag)
39165
+ if trinketsSet == nil then
39166
+ return __TS__New(ReadonlySet)
39167
+ end
39168
+ return trinketsSet
39169
+ end
39170
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getTrinketsTypesWithCacheFlag", true)
39174
39171
  function ModdedElementSets.prototype.getPlayerCollectiblesWithCacheFlag(self, player, cacheFlag)
39175
- local collectiblesWithCacheFlag = self:getCollectiblesWithCacheFlag(cacheFlag)
39172
+ local collectiblesWithCacheFlag = self:getCollectibleTypesWithCacheFlag(cacheFlag)
39176
39173
  local playerCollectibles = {}
39177
39174
  for ____, collectibleType in ipairs(getSortedSetValues(nil, collectiblesWithCacheFlag)) do
39178
39175
  local numCollectibles = player:GetCollectibleNum(collectibleType, true)
@@ -39187,10 +39184,43 @@ function ModdedElementSets.prototype.getPlayerCollectiblesWithCacheFlag(self, pl
39187
39184
  return playerCollectibles
39188
39185
  end
39189
39186
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPlayerCollectiblesWithCacheFlag", true)
39187
+ function ModdedElementSets.prototype.getPlayerTrinketsWithCacheFlag(self, player, cacheFlag)
39188
+ local trinketTypesWithCacheFlag = self:getTrinketsTypesWithCacheFlag(cacheFlag)
39189
+ local playerTrinkets = __TS__New(Map)
39190
+ for ____, trinketType in __TS__Iterator(trinketTypesWithCacheFlag) do
39191
+ local trinketMultiplier = player:GetTrinketMultiplier(trinketType)
39192
+ if trinketMultiplier > 0 then
39193
+ playerTrinkets:set(trinketType, trinketMultiplier)
39194
+ end
39195
+ end
39196
+ return playerTrinkets
39197
+ end
39198
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPlayerTrinketsWithCacheFlag", true)
39199
+ function ModdedElementSets.prototype.getFlyingCollectibleTypes(self, includeConditionalItems)
39200
+ self:lazyInit()
39201
+ return includeConditionalItems and self.flyingCollectibleTypesSet or self.permanentFlyingCollectibleTypesSet
39202
+ end
39203
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getFlyingCollectibleTypes", true)
39204
+ function ModdedElementSets.prototype.getFlyingTrinketTypes(self)
39205
+ self:lazyInit()
39206
+ return self.flyingTrinketTypesSet
39207
+ end
39208
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getFlyingTrinketTypes", true)
39209
+ function ModdedElementSets.prototype.getCollectibleTypesWithTag(self, itemConfigTag)
39210
+ self:lazyInit()
39211
+ local collectibleTypes = self.tagToCollectibleTypesMap:get(itemConfigTag)
39212
+ assertDefined(
39213
+ nil,
39214
+ collectibleTypes,
39215
+ ("The item config tag of " .. tostring(itemConfigTag)) .. " is not a valid value of the \"ItemConfigTag\" enum."
39216
+ )
39217
+ return collectibleTypes
39218
+ end
39219
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleTypesWithTag", true)
39190
39220
  function ModdedElementSets.prototype.getPlayerCollectiblesWithTag(self, player, itemConfigTag)
39191
- local collectiblesWithTag = self:getCollectiblesWithTag(itemConfigTag)
39221
+ local collectibleTypesWithTag = self:getCollectibleTypesWithTag(itemConfigTag)
39192
39222
  local playerCollectibles = {}
39193
- for ____, collectibleType in ipairs(getSortedSetValues(nil, collectiblesWithTag)) do
39223
+ for ____, collectibleType in ipairs(getSortedSetValues(nil, collectibleTypesWithTag)) do
39194
39224
  local numCollectibles = player:GetCollectibleNum(collectibleType, true)
39195
39225
  ____repeat(
39196
39226
  nil,
@@ -39203,8 +39233,18 @@ function ModdedElementSets.prototype.getPlayerCollectiblesWithTag(self, player,
39203
39233
  return playerCollectibles
39204
39234
  end
39205
39235
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPlayerCollectiblesWithTag", true)
39236
+ function ModdedElementSets.prototype.getCollectibleTypesForTransformation(self, playerForm)
39237
+ local itemConfigTag = TRANSFORMATION_TO_TAG_MAP:get(playerForm)
39238
+ assertDefined(
39239
+ nil,
39240
+ itemConfigTag,
39241
+ ("Failed to get the collectible types for the transformation of " .. tostring(playerForm)) .. " because that transformation is not based on collectibles."
39242
+ )
39243
+ return self:getCollectibleTypesWithTag(itemConfigTag)
39244
+ end
39245
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCollectibleTypesForTransformation", true)
39206
39246
  function ModdedElementSets.prototype.getPlayerCollectiblesForTransformation(self, player, playerForm)
39207
- local collectibleForTransformation = self:getCollectiblesForTransformation(playerForm)
39247
+ local collectibleForTransformation = self:getCollectibleTypesForTransformation(playerForm)
39208
39248
  local playerCollectibles = {}
39209
39249
  for ____, collectibleType in ipairs(getSortedSetValues(nil, collectibleForTransformation)) do
39210
39250
  local numCollectibles = player:GetCollectibleNum(collectibleType, true)
@@ -39219,19 +39259,17 @@ function ModdedElementSets.prototype.getPlayerCollectiblesForTransformation(self
39219
39259
  return playerCollectibles
39220
39260
  end
39221
39261
  __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPlayerCollectiblesForTransformation", true)
39222
- function ModdedElementSets.prototype.getPlayerTrinketsWithCacheFlag(self, player, cacheFlag)
39223
- local trinketsWithCacheFlag = self:getTrinketsWithCacheFlag(cacheFlag)
39224
- local playerTrinkets = __TS__New(Map)
39225
- for ____, trinketType in __TS__Iterator(trinketsWithCacheFlag) do
39226
- local trinketMultiplier = player:GetTrinketMultiplier(trinketType)
39227
- if trinketMultiplier > 0 then
39228
- playerTrinkets:set(trinketType, trinketMultiplier)
39229
- end
39230
- end
39231
- return playerTrinkets
39262
+ function ModdedElementSets.prototype.getEdenActiveCollectibleTypes(self)
39263
+ self:lazyInit()
39264
+ return self.edenActiveCollectibleTypesSet
39232
39265
  end
39233
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getPlayerTrinketsWithCacheFlag", true)
39234
- function ModdedElementSets.prototype.getRandomCard(self, seedOrRNG, exceptions)
39266
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getEdenActiveCollectibleTypes", true)
39267
+ function ModdedElementSets.prototype.getEdenPassiveCollectibleTypes(self)
39268
+ self:lazyInit()
39269
+ return self.edenPassiveCollectibleTypesSet
39270
+ end
39271
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getEdenPassiveCollectibleTypes", true)
39272
+ function ModdedElementSets.prototype.getRandomEdenActiveCollectibleType(self, seedOrRNG, exceptions)
39235
39273
  if seedOrRNG == nil then
39236
39274
  seedOrRNG = getRandomSeed(nil)
39237
39275
  end
@@ -39239,33 +39277,50 @@ function ModdedElementSets.prototype.getRandomCard(self, seedOrRNG, exceptions)
39239
39277
  exceptions = {}
39240
39278
  end
39241
39279
  self:lazyInit()
39242
- return getRandomSetElement(nil, self.cardSet, seedOrRNG, exceptions)
39280
+ return getRandomSetElement(nil, self.edenPassiveCollectibleTypesSet, seedOrRNG, exceptions)
39243
39281
  end
39244
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomCard", true)
39245
- function ModdedElementSets.prototype.getRandomCardTypeOfType(self, itemConfigCardType, seedOrRNG, exceptions)
39282
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomEdenActiveCollectibleType", true)
39283
+ function ModdedElementSets.prototype.getRandomEdenPassiveCollectibleType(self, seedOrRNG, exceptions)
39246
39284
  if seedOrRNG == nil then
39247
39285
  seedOrRNG = getRandomSeed(nil)
39248
39286
  end
39249
39287
  if exceptions == nil then
39250
39288
  exceptions = {}
39251
39289
  end
39252
- local cardTypeSet = self:getCardTypesOfType(itemConfigCardType)
39253
- return getRandomSetElement(nil, cardTypeSet, seedOrRNG, exceptions)
39290
+ self:lazyInit()
39291
+ return getRandomSetElement(nil, self.edenPassiveCollectibleTypesSet, seedOrRNG, exceptions)
39254
39292
  end
39255
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomCardTypeOfType", true)
39256
- function ModdedElementSets.prototype.getRandomRune(self, seedOrRNG, exceptions)
39293
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomEdenPassiveCollectibleType", true)
39294
+ function ModdedElementSets.prototype.getCardTypesOfType(self, ...)
39295
+ local itemConfigCardTypes = {...}
39296
+ self:lazyInit()
39297
+ local matchingCardTypes = __TS__New(Set)
39298
+ for ____, itemConfigCardType in ipairs(itemConfigCardTypes) do
39299
+ local cardTypeSet = self.itemConfigCardTypeToCardTypeMap:get(itemConfigCardType)
39300
+ assertDefined(
39301
+ nil,
39302
+ cardTypeSet,
39303
+ "Failed to get the card type set for item config type: " .. tostring(itemConfigCardType)
39304
+ )
39305
+ for ____, cardType in __TS__Iterator(cardTypeSet) do
39306
+ matchingCardTypes:add(cardType)
39307
+ end
39308
+ end
39309
+ return matchingCardTypes
39310
+ end
39311
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getCardTypesOfType", true)
39312
+ function ModdedElementSets.prototype.getRandomCardTypeOfType(self, itemConfigCardType, seedOrRNG, exceptions)
39257
39313
  if seedOrRNG == nil then
39258
39314
  seedOrRNG = getRandomSeed(nil)
39259
39315
  end
39260
39316
  if exceptions == nil then
39261
39317
  exceptions = {}
39262
39318
  end
39263
- local runesSet = self:getCardTypesOfType(ItemConfigCardType.RUNE)
39264
- runesSet:delete(CardType.RUNE_SHARD)
39265
- return getRandomSetElement(nil, runesSet, seedOrRNG, exceptions)
39319
+ local cardTypeSet = self:getCardTypesOfType(itemConfigCardType)
39320
+ return getRandomSetElement(nil, cardTypeSet, seedOrRNG, exceptions)
39266
39321
  end
39267
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomRune", true)
39268
- function ModdedElementSets.prototype.getRandomEdenActiveCollectible(self, seedOrRNG, exceptions)
39322
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomCardTypeOfType", true)
39323
+ function ModdedElementSets.prototype.getRandomCard(self, seedOrRNG, exceptions)
39269
39324
  if seedOrRNG == nil then
39270
39325
  seedOrRNG = getRandomSeed(nil)
39271
39326
  end
@@ -39273,69 +39328,21 @@ function ModdedElementSets.prototype.getRandomEdenActiveCollectible(self, seedOr
39273
39328
  exceptions = {}
39274
39329
  end
39275
39330
  self:lazyInit()
39276
- return getRandomSetElement(nil, self.edenPassiveCollectibleTypesSet, seedOrRNG, exceptions)
39331
+ return getRandomSetElement(nil, self.cardSet, seedOrRNG, exceptions)
39277
39332
  end
39278
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomEdenActiveCollectible", true)
39279
- function ModdedElementSets.prototype.getRandomEdenPassiveCollectible(self, seedOrRNG, exceptions)
39333
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomCard", true)
39334
+ function ModdedElementSets.prototype.getRandomRune(self, seedOrRNG, exceptions)
39280
39335
  if seedOrRNG == nil then
39281
39336
  seedOrRNG = getRandomSeed(nil)
39282
39337
  end
39283
39338
  if exceptions == nil then
39284
39339
  exceptions = {}
39285
39340
  end
39286
- self:lazyInit()
39287
- return getRandomSetElement(nil, self.edenPassiveCollectibleTypesSet, seedOrRNG, exceptions)
39288
- end
39289
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomEdenPassiveCollectible", true)
39290
- function ModdedElementSets.prototype.getTrinketArray(self)
39291
- self:lazyInit()
39292
- return self.allTrinketTypesArray
39293
- end
39294
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getTrinketArray", true)
39295
- function ModdedElementSets.prototype.getTrinketSet(self)
39296
- self:lazyInit()
39297
- return self.allTrinketTypesSet
39298
- end
39299
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getTrinketSet", true)
39300
- function ModdedElementSets.prototype.getTrinketsWithCacheFlag(self, cacheFlag)
39301
- self:lazyInit()
39302
- local trinketsSet = self.cacheFlagToTrinketTypesMap:get(cacheFlag)
39303
- if trinketsSet == nil then
39304
- return __TS__New(ReadonlySet)
39305
- end
39306
- return trinketsSet
39307
- end
39308
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getTrinketsWithCacheFlag", true)
39309
- function ModdedElementSets.prototype.getVanillaCardArray(self)
39310
- self:lazyInitVanillaCardTypes()
39311
- return self.vanillaCardTypesArray
39312
- end
39313
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCardArray", true)
39314
- function ModdedElementSets.prototype.getVanillaCardSet(self)
39315
- self:lazyInitVanillaCardTypes()
39316
- return self.vanillaCardTypesSet
39317
- end
39318
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCardSet", true)
39319
- function ModdedElementSets.prototype.getVanillaCollectibleArray(self)
39320
- self:lazyInitVanillaCollectibleTypes()
39321
- return self.vanillaCollectibleTypesArray
39322
- end
39323
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCollectibleArray", true)
39324
- function ModdedElementSets.prototype.getVanillaCollectibleSet(self)
39325
- self:lazyInitVanillaCollectibleTypes()
39326
- return self.vanillaCollectibleTypesSet
39327
- end
39328
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaCollectibleSet", true)
39329
- function ModdedElementSets.prototype.getVanillaTrinketArray(self)
39330
- self:lazyInitVanillaTrinketTypes()
39331
- return self.vanillaTrinketTypesArray
39332
- end
39333
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaTrinketArray", true)
39334
- function ModdedElementSets.prototype.getVanillaTrinketSet(self)
39335
- self:lazyInitVanillaTrinketTypes()
39336
- return self.vanillaTrinketTypesSet
39341
+ local runesSet = self:getCardTypesOfType(ItemConfigCardType.RUNE)
39342
+ runesSet:delete(CardType.RUNE_SHARD)
39343
+ return getRandomSetElement(nil, runesSet, seedOrRNG, exceptions)
39337
39344
  end
39338
- __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getVanillaTrinketSet", true)
39345
+ __TS__DecorateLegacy({Exported}, ModdedElementSets.prototype, "getRandomRune", true)
39339
39346
  return ____exports
39340
39347
  end,
39341
39348
  ["src.classes.features.callbackLogic.PlayerCollectibleDetection"] = function(...)
@@ -39801,30 +39808,6 @@ ____exports.COIN_SUB_TYPE_TO_VALUE = {
39801
39808
  [CoinSubType.STICKY_NICKEL] = 5,
39802
39809
  [CoinSubType.GOLDEN] = 1
39803
39810
  }
39804
- return ____exports
39805
- end,
39806
- ["src.sets.chestPickupVariantsSet"] = function(...)
39807
- local ____lualib = require("lualib_bundle")
39808
- local __TS__New = ____lualib.__TS__New
39809
- local ____exports = {}
39810
- local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
39811
- local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
39812
- local ____ReadonlySet = require("src.types.ReadonlySet")
39813
- local ReadonlySet = ____ReadonlySet.ReadonlySet
39814
- ____exports.CHEST_PICKUP_VARIANTS = __TS__New(ReadonlySet, {
39815
- PickupVariant.CHEST,
39816
- PickupVariant.BOMB_CHEST,
39817
- PickupVariant.SPIKED_CHEST,
39818
- PickupVariant.ETERNAL_CHEST,
39819
- PickupVariant.MIMIC_CHEST,
39820
- PickupVariant.OLD_CHEST,
39821
- PickupVariant.WOODEN_CHEST,
39822
- PickupVariant.MEGA_CHEST,
39823
- PickupVariant.HAUNTED_CHEST,
39824
- PickupVariant.LOCKED_CHEST,
39825
- PickupVariant.RED_CHEST,
39826
- PickupVariant.MOMS_CHEST
39827
- })
39828
39811
  return ____exports
39829
39812
  end,
39830
39813
  ["src.sets.redHeartSubTypesSet"] = function(...)
@@ -40196,11 +40179,11 @@ return ____exports
40196
40179
  local ____lualib = require("lualib_bundle")
40197
40180
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
40198
40181
  local ____exports = {}
40182
+ local ____constants = require("src.core.constants")
40183
+ local CHEST_PICKUP_VARIANTS_SET = ____constants.CHEST_PICKUP_VARIANTS_SET
40199
40184
  local ____coinSubTypeToValue = require("src.objects.coinSubTypeToValue")
40200
40185
  local COIN_SUB_TYPE_TO_VALUE = ____coinSubTypeToValue.COIN_SUB_TYPE_TO_VALUE
40201
40186
  local DEFAULT_COIN_VALUE = ____coinSubTypeToValue.DEFAULT_COIN_VALUE
40202
- local ____chestPickupVariantsSet = require("src.sets.chestPickupVariantsSet")
40203
- local CHEST_PICKUP_VARIANTS = ____chestPickupVariantsSet.CHEST_PICKUP_VARIANTS
40204
40187
  local ____redHeartSubTypesSet = require("src.sets.redHeartSubTypesSet")
40205
40188
  local RED_HEART_SUB_TYPES_SET = ____redHeartSubTypesSet.RED_HEART_SUB_TYPES_SET
40206
40189
  local ____entities = require("src.functions.entities")
@@ -40210,7 +40193,7 @@ local isHeart = ____pickupVariants.isHeart
40210
40193
  local ____pickupsSpecific = require("src.functions.pickupsSpecific")
40211
40194
  local getHearts = ____pickupsSpecific.getHearts
40212
40195
  function ____exports.isChestVariant(self, pickupVariant)
40213
- return CHEST_PICKUP_VARIANTS:has(pickupVariant)
40196
+ return CHEST_PICKUP_VARIANTS_SET:has(pickupVariant)
40214
40197
  end
40215
40198
  function ____exports.getCoinValue(self, coinSubType)
40216
40199
  local value = COIN_SUB_TYPE_TO_VALUE[coinSubType]
@@ -51152,13 +51135,13 @@ function FlyingDetection.prototype.____constructor(self, moddedElementSets)
51152
51135
  end
51153
51136
  function FlyingDetection.prototype.hasFlyingTemporaryEffect(self, player)
51154
51137
  local effects = player:GetEffects()
51155
- local flyingCollectibles = self.moddedElementSets:getFlyingCollectibles(true)
51138
+ local flyingCollectibles = self.moddedElementSets:getFlyingCollectibleTypes(true)
51156
51139
  for ____, collectibleType in __TS__Iterator(flyingCollectibles) do
51157
51140
  if effects:HasCollectibleEffect(collectibleType) then
51158
51141
  return true
51159
51142
  end
51160
51143
  end
51161
- local flyingTrinkets = self.moddedElementSets:getFlyingTrinkets()
51144
+ local flyingTrinkets = self.moddedElementSets:getFlyingTrinketTypes()
51162
51145
  for ____, trinketType in __TS__Iterator(flyingTrinkets) do
51163
51146
  if effects:HasTrinketEffect(trinketType) then
51164
51147
  return true
@@ -51359,7 +51342,7 @@ function ItemPoolDetection.prototype.____constructor(self, moddedElementSets)
51359
51342
  self.moddedElementSets = moddedElementSets
51360
51343
  end
51361
51344
  function ItemPoolDetection.prototype.getCollectiblesInItemPool(self, itemPoolType)
51362
- local collectibleArray = self.moddedElementSets:getCollectibleArray()
51345
+ local collectibleArray = self.moddedElementSets:getCollectibleTypes()
51363
51346
  return __TS__ArrayFilter(
51364
51347
  collectibleArray,
51365
51348
  function(____, collectibleType) return self:isCollectibleInItemPool(collectibleType, itemPoolType) end
@@ -51384,7 +51367,7 @@ function ItemPoolDetection.prototype.isCollectibleInItemPool(self, collectibleTy
51384
51367
  local removedTrinketsMap = ____removeItemsAndTrinketsThatAffectItemPools_result_0.removedTrinketsMap
51385
51368
  local itemPool = game:GetItemPool()
51386
51369
  itemPool:ResetRoomBlacklist()
51387
- for ____, collectibleTypeInSet in ipairs(self.moddedElementSets:getCollectibleArray()) do
51370
+ for ____, collectibleTypeInSet in ipairs(self.moddedElementSets:getCollectibleTypes()) do
51388
51371
  if collectibleTypeInSet ~= collectibleType then
51389
51372
  itemPool:AddRoomBlacklist(collectibleTypeInSet)
51390
51373
  end
@@ -53238,6 +53221,9 @@ function initOptionalFeatures(self, mod, features)
53238
53221
  for ____, ____value in ipairs(exportedMethodTuples) do
53239
53222
  local funcName = ____value[1]
53240
53223
  local func = ____value[2]
53224
+ if modRecord[funcName] ~= nil then
53225
+ 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.")
53226
+ end
53241
53227
  modRecord[funcName] = func
53242
53228
  end
53243
53229
  end
@@ -54580,6 +54566,14 @@ do
54580
54566
  end
54581
54567
  end
54582
54568
  end
54569
+ do
54570
+ local ____export = require("src.core.constantsVanilla")
54571
+ for ____exportKey, ____exportValue in pairs(____export) do
54572
+ if ____exportKey ~= "default" then
54573
+ ____exports[____exportKey] = ____exportValue
54574
+ end
54575
+ end
54576
+ end
54583
54577
  do
54584
54578
  local ____export = require("src.core.upgradeMod")
54585
54579
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -55704,6 +55698,14 @@ do
55704
55698
  end
55705
55699
  end
55706
55700
  end
55701
+ do
55702
+ local ____export = require("src.core.constantsVanilla")
55703
+ for ____exportKey, ____exportValue in pairs(____export) do
55704
+ if ____exportKey ~= "default" then
55705
+ ____exports[____exportKey] = ____exportValue
55706
+ end
55707
+ end
55708
+ end
55707
55709
  do
55708
55710
  local ____export = require("src.core.upgradeMod")
55709
55711
  for ____exportKey, ____exportValue in pairs(____export) do