isaacscript-common 12.6.1 → 13.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 (89) hide show
  1. package/dist/index.d.ts +116 -37
  2. package/dist/isaacscript-common.lua +631 -184
  3. package/dist/src/features/customStage/backdrop.lua +4 -4
  4. package/dist/src/features/customStage/versusScreen.lua +2 -2
  5. package/dist/src/features/deployJSONRoom.d.ts +0 -11
  6. package/dist/src/features/deployJSONRoom.d.ts.map +1 -1
  7. package/dist/src/features/deployJSONRoom.lua +10 -74
  8. package/dist/src/features/extraConsoleCommands/listCommands.lua +2 -2
  9. package/dist/src/features/firstLast.lua +8 -8
  10. package/dist/src/features/setHotkey.d.ts +42 -0
  11. package/dist/src/features/setHotkey.d.ts.map +1 -0
  12. package/dist/src/features/setHotkey.lua +104 -0
  13. package/dist/src/functions/array.lua +2 -2
  14. package/dist/src/functions/cards.lua +2 -2
  15. package/dist/src/functions/collectibles.lua +2 -2
  16. package/dist/src/functions/dimensions.lua +2 -2
  17. package/dist/src/functions/emptyRoom.d.ts +8 -0
  18. package/dist/src/functions/emptyRoom.d.ts.map +1 -0
  19. package/dist/src/functions/emptyRoom.lua +74 -0
  20. package/dist/src/functions/enums.d.ts.map +1 -1
  21. package/dist/src/functions/enums.lua +3 -3
  22. package/dist/src/functions/gridEntities.lua +2 -2
  23. package/dist/src/functions/gridIndex.d.ts +10 -0
  24. package/dist/src/functions/gridIndex.d.ts.map +1 -0
  25. package/dist/src/functions/gridIndex.lua +32 -0
  26. package/dist/src/functions/log.d.ts.map +1 -1
  27. package/dist/src/functions/log.lua +9 -8
  28. package/dist/src/functions/logEntities.d.ts.map +1 -1
  29. package/dist/src/functions/logEntities.lua +17 -9
  30. package/dist/src/functions/pills.lua +4 -4
  31. package/dist/src/functions/roomShape.d.ts +6 -1
  32. package/dist/src/functions/roomShape.d.ts.map +1 -1
  33. package/dist/src/functions/roomShape.lua +3 -0
  34. package/dist/src/functions/roomShapeWalls.d.ts +20 -0
  35. package/dist/src/functions/roomShapeWalls.d.ts.map +1 -0
  36. package/dist/src/functions/roomShapeWalls.lua +285 -0
  37. package/dist/src/functions/rooms.d.ts +7 -0
  38. package/dist/src/functions/rooms.d.ts.map +1 -1
  39. package/dist/src/functions/rooms.lua +16 -5
  40. package/dist/src/functions/set.d.ts +7 -0
  41. package/dist/src/functions/set.d.ts.map +1 -1
  42. package/dist/src/functions/set.lua +10 -0
  43. package/dist/src/functions/sprites.lua +2 -2
  44. package/dist/src/functions/trinkets.lua +2 -2
  45. package/dist/src/functions/utils.d.ts +18 -12
  46. package/dist/src/functions/utils.d.ts.map +1 -1
  47. package/dist/src/functions/utils.lua +26 -14
  48. package/dist/src/index.d.ts +4 -1
  49. package/dist/src/index.d.ts.map +1 -1
  50. package/dist/src/index.lua +29 -5
  51. package/dist/src/initFeatures.lua +3 -3
  52. package/dist/src/interfaces/Corner.d.ts +8 -0
  53. package/dist/src/interfaces/Corner.d.ts.map +1 -1
  54. package/dist/src/objects/roomShapeCorners.d.ts +6 -1
  55. package/dist/src/objects/roomShapeCorners.d.ts.map +1 -1
  56. package/dist/src/objects/roomShapeCorners.lua +71 -14
  57. package/package.json +2 -2
  58. package/src/features/customStage/backdrop.ts +3 -3
  59. package/src/features/customStage/versusScreen.ts +2 -2
  60. package/src/features/deployJSONRoom.ts +8 -98
  61. package/src/features/extraConsoleCommands/listCommands.ts +2 -2
  62. package/src/features/firstLast.ts +8 -8
  63. package/src/features/setHotkey.ts +144 -0
  64. package/src/functions/array.ts +2 -2
  65. package/src/functions/cards.ts +2 -2
  66. package/src/functions/collectibles.ts +2 -2
  67. package/src/functions/dimensions.ts +2 -2
  68. package/src/functions/emptyRoom.ts +85 -0
  69. package/src/functions/enums.ts +4 -3
  70. package/src/functions/gridEntities.ts +2 -2
  71. package/src/functions/gridIndex.ts +40 -0
  72. package/src/functions/log.ts +9 -10
  73. package/src/functions/logEntities.ts +25 -9
  74. package/src/functions/pills.ts +4 -4
  75. package/src/functions/roomShape.ts +6 -1
  76. package/src/functions/roomShapeWalls.ts +359 -0
  77. package/src/functions/rooms.ts +22 -3
  78. package/src/functions/set.ts +12 -0
  79. package/src/functions/sprites.ts +2 -2
  80. package/src/functions/trinkets.ts +2 -2
  81. package/src/functions/utils.ts +20 -14
  82. package/src/index.ts +4 -1
  83. package/src/initFeatures.ts +2 -2
  84. package/src/interfaces/Corner.ts +9 -0
  85. package/src/objects/roomShapeCorners.ts +74 -16
  86. package/dist/src/features/registerHotkey.d.ts +0 -23
  87. package/dist/src/features/registerHotkey.d.ts.map +0 -1
  88. package/dist/src/features/registerHotkey.lua +0 -93
  89. package/src/features/registerHotkey.ts +0 -124
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 12.6.1
3
+ isaacscript-common 13.1.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -18509,7 +18509,10 @@ local ____cachedClasses = require("src.core.cachedClasses")
18509
18509
  local game = ____cachedClasses.game
18510
18510
  local ____consoleCommandsSet = require("src.sets.consoleCommandsSet")
18511
18511
  local CONSOLE_COMMANDS_SET = ____consoleCommandsSet.CONSOLE_COMMANDS_SET
18512
- function ____exports.erange(self, start, ____end)
18512
+ function ____exports.eRange(self, start, ____end, increment)
18513
+ if increment == nil then
18514
+ increment = 1
18515
+ end
18513
18516
  if ____end == nil then
18514
18517
  ____end = start
18515
18518
  start = 0
@@ -18519,7 +18522,7 @@ function ____exports.erange(self, start, ____end)
18519
18522
  local i = start
18520
18523
  while i < ____end do
18521
18524
  array[#array + 1] = i
18522
- i = i + 1
18525
+ i = i + increment
18523
18526
  end
18524
18527
  end
18525
18528
  return array
@@ -18531,7 +18534,10 @@ function ____exports.getTraversalDescription(self, key, traversalDescription)
18531
18534
  traversalDescription = traversalDescription .. tostring(key)
18532
18535
  return traversalDescription
18533
18536
  end
18534
- function ____exports.irange(self, start, ____end)
18537
+ function ____exports.iRange(self, start, ____end, increment)
18538
+ if increment == nil then
18539
+ increment = 1
18540
+ end
18535
18541
  if ____end == nil then
18536
18542
  ____end = start
18537
18543
  start = 0
@@ -18541,7 +18547,7 @@ function ____exports.irange(self, start, ____end)
18541
18547
  local i = start
18542
18548
  while i <= ____end do
18543
18549
  array[#array + 1] = i
18544
- i = i + 1
18550
+ i = i + increment
18545
18551
  end
18546
18552
  end
18547
18553
  return array
@@ -18616,7 +18622,7 @@ local ____types = require("src.functions.types")
18616
18622
  local isNumber = ____types.isNumber
18617
18623
  local isTable = ____types.isTable
18618
18624
  local ____utils = require("src.functions.utils")
18619
- local erange = ____utils.erange
18625
+ local eRange = ____utils.eRange
18620
18626
  function ____exports.arrayRemoveAllInPlace(self, array, ...)
18621
18627
  local elementsToRemove = {...}
18622
18628
  local removedOneOrMoreElements = false
@@ -18831,7 +18837,7 @@ function ____exports.getArrayCombinations(self, array, includeEmptyArray, min, m
18831
18837
  return all
18832
18838
  end
18833
18839
  function ____exports.getArrayIndexes(self, array)
18834
- return erange(nil, #array)
18840
+ return eRange(nil, #array)
18835
18841
  end
18836
18842
  function ____exports.getLastElement(self, array)
18837
18843
  return array[#array]
@@ -18949,7 +18955,7 @@ local getRandomSeed = ____rng.getRandomSeed
18949
18955
  local ____types = require("src.functions.types")
18950
18956
  local isString = ____types.isString
18951
18957
  local ____utils = require("src.functions.utils")
18952
- local irange = ____utils.irange
18958
+ local iRange = ____utils.iRange
18953
18959
  function ____exports.getEnumEntries(self, transpiledEnum)
18954
18960
  local enumEntries = {}
18955
18961
  for key, value in pairs(transpiledEnum) do
@@ -19028,7 +19034,6 @@ function ____exports.validateCustomEnum(self, transpiledEnumName, transpiledEnum
19028
19034
  end
19029
19035
  function ____exports.validateEnumContiguous(self, transpiledEnumName, transpiledEnum)
19030
19036
  local values = ____exports.getEnumValues(nil, transpiledEnum)
19031
- local valuesSet = __TS__New(Set, values)
19032
19037
  local lastValue = values[#values]
19033
19038
  if lastValue == nil then
19034
19039
  error("Failed to validate that an enum was contiguous, since the last value was undefined.")
@@ -19036,7 +19041,8 @@ function ____exports.validateEnumContiguous(self, transpiledEnumName, transpiled
19036
19041
  if type(lastValue) ~= "number" then
19037
19042
  error("Failed to validate that an enum was contiguous, since the last value was not a number.")
19038
19043
  end
19039
- for ____, value in ipairs(irange(nil, lastValue)) do
19044
+ local valuesSet = __TS__New(Set, values)
19045
+ for ____, value in ipairs(iRange(nil, lastValue)) do
19040
19046
  if not valuesSet:has(value) then
19041
19047
  error((("Failed to find a custom enum value of " .. tostring(value)) .. " for: ") .. transpiledEnumName)
19042
19048
  end
@@ -21560,9 +21566,9 @@ local NUM_DIMENSIONS = ____constants.NUM_DIMENSIONS
21560
21566
  local ____roomData = require("src.functions.roomData")
21561
21567
  local getRoomGridIndex = ____roomData.getRoomGridIndex
21562
21568
  local ____utils = require("src.functions.utils")
21563
- local erange = ____utils.erange
21569
+ local eRange = ____utils.eRange
21564
21570
  function ____exports.getAllDimensions(self)
21565
- return erange(nil, NUM_DIMENSIONS)
21571
+ return eRange(nil, NUM_DIMENSIONS)
21566
21572
  end
21567
21573
  function ____exports.getDimension(self)
21568
21574
  local level = game:GetLevel()
@@ -23608,7 +23614,7 @@ local VectorZero = ____constants.VectorZero
23608
23614
  local ____kColor = require("src.functions.kColor")
23609
23615
  local kColorEquals = ____kColor.kColorEquals
23610
23616
  local ____utils = require("src.functions.utils")
23611
- local erange = ____utils.erange
23617
+ local eRange = ____utils.eRange
23612
23618
  function ____exports.texelEquals(self, sprite1, sprite2, position, layerID)
23613
23619
  local kColor1 = sprite1:GetTexel(position, VectorZero, 1, layerID)
23614
23620
  local kColor2 = sprite2:GetTexel(position, VectorZero, 1, layerID)
@@ -23618,7 +23624,7 @@ function ____exports.clearSprite(self, sprite, ...)
23618
23624
  local layerIDs = {...}
23619
23625
  if #layerIDs == 0 then
23620
23626
  local numLayers = sprite:GetLayerCount()
23621
- layerIDs = erange(nil, numLayers)
23627
+ layerIDs = eRange(nil, numLayers)
23622
23628
  end
23623
23629
  for ____, layerID in ipairs(layerIDs) do
23624
23630
  sprite:ReplaceSpritesheet(layerID, EMPTY_PNG_PATH)
@@ -23707,7 +23713,7 @@ local ____sprites = require("src.functions.sprites")
23707
23713
  local clearSprite = ____sprites.clearSprite
23708
23714
  local spriteEquals = ____sprites.spriteEquals
23709
23715
  local ____utils = require("src.functions.utils")
23710
- local irange = ____utils.irange
23716
+ local iRange = ____utils.iRange
23711
23717
  function initQuestionMarkSprite(self)
23712
23718
  local sprite = Sprite()
23713
23719
  sprite:Load("gfx/005.100_collectible.anm2", false)
@@ -23904,7 +23910,7 @@ function ____exports.getCollectibleTags(self, collectibleType)
23904
23910
  return itemConfigItem == nil and ItemConfigTagZero or itemConfigItem.Tags
23905
23911
  end
23906
23912
  function ____exports.getVanillaCollectibleTypeRange(self)
23907
- return irange(nil, FIRST_COLLECTIBLE_TYPE, LAST_VANILLA_COLLECTIBLE_TYPE)
23913
+ return iRange(nil, FIRST_COLLECTIBLE_TYPE, LAST_VANILLA_COLLECTIBLE_TYPE)
23908
23914
  end
23909
23915
  function ____exports.isActiveCollectible(self, collectibleType)
23910
23916
  local itemType = ____exports.getCollectibleItemType(nil, collectibleType)
@@ -24024,7 +24030,7 @@ local asNumber = ____types.asNumber
24024
24030
  local asPillEffect = ____types.asPillEffect
24025
24031
  local asTrinketType = ____types.asTrinketType
24026
24032
  local ____utils = require("src.functions.utils")
24027
- local irange = ____utils.irange
24033
+ local iRange = ____utils.iRange
24028
24034
  function postNewRoomEarly(self)
24029
24035
  atLeastOneCallbackFired = true
24030
24036
  end
@@ -24100,7 +24106,7 @@ function ____exports.getModdedCollectibleTypes(self)
24100
24106
  return {}
24101
24107
  end
24102
24108
  local lastCollectibleType = ____exports.getLastCollectibleType(nil)
24103
- return irange(nil, firstModdedCollectibleType, lastCollectibleType)
24109
+ return iRange(nil, firstModdedCollectibleType, lastCollectibleType)
24104
24110
  end
24105
24111
  function ____exports.getNumCollectibleTypes(self)
24106
24112
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
@@ -24136,7 +24142,7 @@ function ____exports.getModdedTrinketTypes(self)
24136
24142
  return {}
24137
24143
  end
24138
24144
  local lastTrinketType = ____exports.getLastTrinketType(nil)
24139
- return irange(nil, firstModdedTrinketType, lastTrinketType)
24145
+ return iRange(nil, firstModdedTrinketType, lastTrinketType)
24140
24146
  end
24141
24147
  function ____exports.getNumModdedTrinketTypes(self)
24142
24148
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
@@ -24146,11 +24152,11 @@ function ____exports.getNumModdedTrinketTypes(self)
24146
24152
  end
24147
24153
  function ____exports.getTrinketTypes(self)
24148
24154
  local lastTrinketType = ____exports.getLastTrinketType(nil)
24149
- return irange(nil, FIRST_TRINKET_TYPE, lastTrinketType)
24155
+ return iRange(nil, FIRST_TRINKET_TYPE, lastTrinketType)
24150
24156
  end
24151
24157
  function ____exports.getAllCardTypes(self)
24152
24158
  local lastCardType = ____exports.getLastCardType(nil)
24153
- return irange(nil, FIRST_CARD_TYPE, lastCardType)
24159
+ return iRange(nil, FIRST_CARD_TYPE, lastCardType)
24154
24160
  end
24155
24161
  function ____exports.getFirstModdedCardType(self)
24156
24162
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
@@ -24174,7 +24180,7 @@ function ____exports.getModdedCardTypes(self)
24174
24180
  return {}
24175
24181
  end
24176
24182
  local lastCardType = ____exports.getLastCardType(nil)
24177
- return irange(nil, firstModdedCardType, lastCardType)
24183
+ return iRange(nil, firstModdedCardType, lastCardType)
24178
24184
  end
24179
24185
  function ____exports.getNumModdedCardTypes(self)
24180
24186
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
@@ -24184,7 +24190,7 @@ function ____exports.getNumModdedCardTypes(self)
24184
24190
  end
24185
24191
  function ____exports.getAllPillEffects(self)
24186
24192
  local lastPillEffect = ____exports.getLastPillEffect(nil)
24187
- return irange(nil, FIRST_PILL_EFFECT, lastPillEffect)
24193
+ return iRange(nil, FIRST_PILL_EFFECT, lastPillEffect)
24188
24194
  end
24189
24195
  function ____exports.getFirstModdedPillEffect(self)
24190
24196
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
@@ -24208,7 +24214,7 @@ function ____exports.getModdedPillEffects(self)
24208
24214
  return {}
24209
24215
  end
24210
24216
  local lastPillEffect = ____exports.getLastPillEffect(nil)
24211
- return irange(nil, firstModdedPillEffect, lastPillEffect)
24217
+ return iRange(nil, firstModdedPillEffect, lastPillEffect)
24212
24218
  end
24213
24219
  function ____exports.getNumModdedPillEffects(self)
24214
24220
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
@@ -25069,255 +25075,309 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescri
25069
25075
  local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
25070
25076
  local ____CornerType = require("src.enums.CornerType")
25071
25077
  local CornerType = ____CornerType.CornerType
25072
- local TWO_BY_TWO_CENTER_X = 580
25073
- local TWO_BY_TWO_CENTER_Y = 420
25074
25078
  ____exports.ROOM_SHAPE_CORNERS = {
25075
25079
  [RoomShape.SHAPE_1x1] = {
25076
25080
  {
25077
25081
  type = CornerType.TOP_LEFT,
25082
+ gridIndex = 0,
25078
25083
  position = Vector(60, 140)
25079
25084
  },
25080
25085
  {
25081
25086
  type = CornerType.TOP_RIGHT,
25087
+ gridIndex = 14,
25082
25088
  position = Vector(580, 140)
25083
25089
  },
25084
25090
  {
25085
25091
  type = CornerType.BOTTOM_LEFT,
25092
+ gridIndex = 120,
25086
25093
  position = Vector(60, 420)
25087
25094
  },
25088
25095
  {
25089
25096
  type = CornerType.BOTTOM_RIGHT,
25097
+ gridIndex = 134,
25090
25098
  position = Vector(580, 420)
25091
25099
  }
25092
25100
  },
25093
25101
  [RoomShape.IH] = {
25094
25102
  {
25095
25103
  type = CornerType.TOP_LEFT,
25104
+ gridIndex = 30,
25096
25105
  position = Vector(60, 220)
25097
25106
  },
25098
25107
  {
25099
25108
  type = CornerType.TOP_RIGHT,
25109
+ gridIndex = 44,
25100
25110
  position = Vector(580, 220)
25101
25111
  },
25102
25112
  {
25103
25113
  type = CornerType.BOTTOM_LEFT,
25114
+ gridIndex = 90,
25104
25115
  position = Vector(60, 340)
25105
25116
  },
25106
25117
  {
25107
25118
  type = CornerType.BOTTOM_RIGHT,
25119
+ gridIndex = 104,
25108
25120
  position = Vector(580, 340)
25109
25121
  }
25110
25122
  },
25111
25123
  [RoomShape.IV] = {
25112
25124
  {
25113
25125
  type = CornerType.TOP_LEFT,
25126
+ gridIndex = 4,
25114
25127
  position = Vector(220, 140)
25115
25128
  },
25116
25129
  {
25117
25130
  type = CornerType.TOP_RIGHT,
25131
+ gridIndex = 10,
25118
25132
  position = Vector(420, 140)
25119
25133
  },
25120
25134
  {
25121
25135
  type = CornerType.BOTTOM_LEFT,
25136
+ gridIndex = 124,
25122
25137
  position = Vector(220, 420)
25123
25138
  },
25124
25139
  {
25125
25140
  type = CornerType.BOTTOM_RIGHT,
25141
+ gridIndex = 130,
25126
25142
  position = Vector(420, 420)
25127
25143
  }
25128
25144
  },
25129
25145
  [RoomShape.SHAPE_1x2] = {
25130
25146
  {
25131
25147
  type = CornerType.TOP_LEFT,
25148
+ gridIndex = 0,
25132
25149
  position = Vector(60, 140)
25133
25150
  },
25134
25151
  {
25135
25152
  type = CornerType.TOP_RIGHT,
25153
+ gridIndex = 14,
25136
25154
  position = Vector(580, 140)
25137
25155
  },
25138
25156
  {
25139
25157
  type = CornerType.BOTTOM_LEFT,
25158
+ gridIndex = 225,
25140
25159
  position = Vector(60, 700)
25141
25160
  },
25142
25161
  {
25143
25162
  type = CornerType.BOTTOM_RIGHT,
25163
+ gridIndex = 239,
25144
25164
  position = Vector(580, 700)
25145
25165
  }
25146
25166
  },
25147
25167
  [RoomShape.IIV] = {
25148
25168
  {
25149
25169
  type = CornerType.TOP_LEFT,
25170
+ gridIndex = 4,
25150
25171
  position = Vector(220, 140)
25151
25172
  },
25152
25173
  {
25153
25174
  type = CornerType.TOP_RIGHT,
25175
+ gridIndex = 10,
25154
25176
  position = Vector(420, 140)
25155
25177
  },
25156
25178
  {
25157
25179
  type = CornerType.BOTTOM_LEFT,
25180
+ gridIndex = 229,
25158
25181
  position = Vector(220, 700)
25159
25182
  },
25160
25183
  {
25161
25184
  type = CornerType.BOTTOM_RIGHT,
25185
+ gridIndex = 235,
25162
25186
  position = Vector(420, 700)
25163
25187
  }
25164
25188
  },
25165
25189
  [RoomShape.SHAPE_2x1] = {
25166
25190
  {
25167
25191
  type = CornerType.TOP_LEFT,
25192
+ gridIndex = 0,
25168
25193
  position = Vector(60, 140)
25169
25194
  },
25170
25195
  {
25171
25196
  type = CornerType.TOP_RIGHT,
25197
+ gridIndex = 27,
25172
25198
  position = Vector(1100, 140)
25173
25199
  },
25174
25200
  {
25175
25201
  type = CornerType.BOTTOM_LEFT,
25202
+ gridIndex = 224,
25176
25203
  position = Vector(60, 420)
25177
25204
  },
25178
25205
  {
25179
25206
  type = CornerType.BOTTOM_RIGHT,
25207
+ gridIndex = 251,
25180
25208
  position = Vector(1100, 420)
25181
25209
  }
25182
25210
  },
25183
25211
  [RoomShape.IIH] = {
25184
25212
  {
25185
25213
  type = CornerType.TOP_LEFT,
25214
+ gridIndex = 56,
25186
25215
  position = Vector(60, 220)
25187
25216
  },
25188
25217
  {
25189
25218
  type = CornerType.TOP_RIGHT,
25219
+ gridIndex = 83,
25190
25220
  position = Vector(1100, 220)
25191
25221
  },
25192
25222
  {
25193
25223
  type = CornerType.BOTTOM_LEFT,
25224
+ gridIndex = 168,
25194
25225
  position = Vector(60, 340)
25195
25226
  },
25196
25227
  {
25197
25228
  type = CornerType.BOTTOM_RIGHT,
25229
+ gridIndex = 195,
25198
25230
  position = Vector(1100, 340)
25199
25231
  }
25200
25232
  },
25201
25233
  [RoomShape.SHAPE_2x2] = {
25202
25234
  {
25203
25235
  type = CornerType.TOP_LEFT,
25236
+ gridIndex = 0,
25204
25237
  position = Vector(60, 140)
25205
25238
  },
25206
25239
  {
25207
25240
  type = CornerType.TOP_RIGHT,
25241
+ gridIndex = 27,
25208
25242
  position = Vector(1100, 140)
25209
25243
  },
25210
25244
  {
25211
25245
  type = CornerType.BOTTOM_LEFT,
25246
+ gridIndex = 420,
25212
25247
  position = Vector(60, 700)
25213
25248
  },
25214
25249
  {
25215
25250
  type = CornerType.BOTTOM_RIGHT,
25251
+ gridIndex = 447,
25216
25252
  position = Vector(1100, 700)
25217
25253
  }
25218
25254
  },
25219
25255
  [RoomShape.LTL] = {
25220
25256
  {
25221
25257
  type = CornerType.TOP_LEFT,
25222
- position = Vector(TWO_BY_TWO_CENTER_X, 140)
25258
+ gridIndex = 13,
25259
+ position = Vector(580, 140)
25223
25260
  },
25224
25261
  {
25225
25262
  type = CornerType.TOP_RIGHT,
25263
+ gridIndex = 27,
25226
25264
  position = Vector(1100, 140)
25227
25265
  },
25228
25266
  {
25229
25267
  type = CornerType.TOP_LEFT,
25230
- position = Vector(60, TWO_BY_TWO_CENTER_Y)
25268
+ gridIndex = 196,
25269
+ position = Vector(60, 420)
25231
25270
  },
25232
25271
  {
25233
25272
  type = CornerType.BOTTOM_RIGHT,
25234
- position = Vector(TWO_BY_TWO_CENTER_X, TWO_BY_TWO_CENTER_Y)
25273
+ gridIndex = 209,
25274
+ position = Vector(580, 420)
25235
25275
  },
25236
25276
  {
25237
25277
  type = CornerType.BOTTOM_LEFT,
25278
+ gridIndex = 420,
25238
25279
  position = Vector(60, 700)
25239
25280
  },
25240
25281
  {
25241
25282
  type = CornerType.BOTTOM_RIGHT,
25283
+ gridIndex = 447,
25242
25284
  position = Vector(1100, 700)
25243
25285
  }
25244
25286
  },
25245
25287
  [RoomShape.LTR] = {
25246
25288
  {
25247
25289
  type = CornerType.TOP_LEFT,
25290
+ gridIndex = 0,
25248
25291
  position = Vector(60, 140)
25249
25292
  },
25250
25293
  {
25251
25294
  type = CornerType.TOP_RIGHT,
25252
- position = Vector(TWO_BY_TWO_CENTER_X, 140)
25295
+ gridIndex = 14,
25296
+ position = Vector(580, 140)
25253
25297
  },
25254
25298
  {
25255
25299
  type = CornerType.BOTTOM_LEFT,
25256
- position = Vector(TWO_BY_TWO_CENTER_X, TWO_BY_TWO_CENTER_Y)
25300
+ gridIndex = 210,
25301
+ position = Vector(580, 420)
25257
25302
  },
25258
25303
  {
25259
25304
  type = CornerType.TOP_RIGHT,
25260
- position = Vector(1100, TWO_BY_TWO_CENTER_Y)
25305
+ gridIndex = 223,
25306
+ position = Vector(1100, 420)
25261
25307
  },
25262
25308
  {
25263
25309
  type = CornerType.BOTTOM_LEFT,
25310
+ gridIndex = 420,
25264
25311
  position = Vector(60, 700)
25265
25312
  },
25266
25313
  {
25267
25314
  type = CornerType.BOTTOM_RIGHT,
25315
+ gridIndex = 447,
25268
25316
  position = Vector(1100, 700)
25269
25317
  }
25270
25318
  },
25271
25319
  [RoomShape.LBL] = {
25272
25320
  {
25273
25321
  type = CornerType.TOP_LEFT,
25322
+ gridIndex = 0,
25274
25323
  position = Vector(60, 140)
25275
25324
  },
25276
25325
  {
25277
25326
  type = CornerType.TOP_RIGHT,
25327
+ gridIndex = 27,
25278
25328
  position = Vector(1100, 140)
25279
25329
  },
25280
25330
  {
25281
25331
  type = CornerType.BOTTOM_LEFT,
25282
- position = Vector(TWO_BY_TWO_CENTER_X, 140)
25332
+ gridIndex = 224,
25333
+ position = Vector(580, 140)
25283
25334
  },
25284
25335
  {
25285
25336
  type = CornerType.TOP_RIGHT,
25286
- position = Vector(TWO_BY_TWO_CENTER_X, TWO_BY_TWO_CENTER_Y)
25337
+ gridIndex = 237,
25338
+ position = Vector(580, 420)
25287
25339
  },
25288
25340
  {
25289
25341
  type = CornerType.BOTTOM_LEFT,
25290
- position = Vector(TWO_BY_TWO_CENTER_X, 700)
25342
+ gridIndex = 433,
25343
+ position = Vector(580, 700)
25291
25344
  },
25292
25345
  {
25293
25346
  type = CornerType.BOTTOM_RIGHT,
25347
+ gridIndex = 447,
25294
25348
  position = Vector(1100, 700)
25295
25349
  }
25296
25350
  },
25297
25351
  [RoomShape.LBR] = {
25298
25352
  {
25299
25353
  type = CornerType.TOP_LEFT,
25354
+ gridIndex = 0,
25300
25355
  position = Vector(60, 140)
25301
25356
  },
25302
25357
  {
25303
25358
  type = CornerType.TOP_RIGHT,
25359
+ gridIndex = 27,
25304
25360
  position = Vector(1100, 140)
25305
25361
  },
25306
25362
  {
25307
25363
  type = CornerType.TOP_LEFT,
25308
- position = Vector(TWO_BY_TWO_CENTER_X, TWO_BY_TWO_CENTER_Y)
25364
+ gridIndex = 238,
25365
+ position = Vector(580, 420)
25309
25366
  },
25310
25367
  {
25311
25368
  type = CornerType.BOTTOM_RIGHT,
25312
- position = Vector(1100, TWO_BY_TWO_CENTER_Y)
25369
+ gridIndex = 251,
25370
+ position = Vector(1100, 420)
25313
25371
  },
25314
25372
  {
25315
25373
  type = CornerType.BOTTOM_LEFT,
25374
+ gridIndex = 420,
25316
25375
  position = Vector(60, 700)
25317
25376
  },
25318
25377
  {
25319
25378
  type = CornerType.BOTTOM_RIGHT,
25320
- position = Vector(TWO_BY_TWO_CENTER_X, 700)
25379
+ gridIndex = 434,
25380
+ position = Vector(580, 700)
25321
25381
  }
25322
25382
  }
25323
25383
  }
@@ -26317,6 +26377,12 @@ function ____exports.getSetCombinations(self, set, includeEmptyArray)
26317
26377
  function(____, array) return __TS__New(Set, array) end
26318
26378
  )
26319
26379
  end
26380
+ function ____exports.setAdd(self, set, ...)
26381
+ local elements = {...}
26382
+ for ____, element in ipairs(elements) do
26383
+ set:add(element)
26384
+ end
26385
+ end
26320
26386
  function ____exports.sumSet(self, set)
26321
26387
  local values = {__TS__Spread(set:values())}
26322
26388
  return sumArray(nil, values)
@@ -26749,7 +26815,7 @@ local clearSprite = ____sprites.clearSprite
26749
26815
  local ____types = require("src.functions.types")
26750
26816
  local asNumber = ____types.asNumber
26751
26817
  local ____utils = require("src.functions.utils")
26752
- local irange = ____utils.irange
26818
+ local iRange = ____utils.iRange
26753
26819
  function ____exports.isVanillaTrinketType(self, trinketType)
26754
26820
  return trinketType <= LAST_VANILLA_TRINKET_TYPE
26755
26821
  end
@@ -26804,7 +26870,7 @@ function ____exports.getTrinketName(self, trinketType)
26804
26870
  return DEFAULT_TRINKET_NAME
26805
26871
  end
26806
26872
  function ____exports.getVanillaTrinketTypes(self)
26807
- return irange(nil, FIRST_TRINKET_TYPE, LAST_VANILLA_TRINKET_TYPE)
26873
+ return iRange(nil, FIRST_TRINKET_TYPE, LAST_VANILLA_TRINKET_TYPE)
26808
26874
  end
26809
26875
  function ____exports.hasOpenTrinketSlot(self, player)
26810
26876
  if isCharacter(nil, player, PlayerType.THE_SOUL_B) then
@@ -27140,38 +27206,39 @@ function ____exports.logRoom(self)
27140
27206
  local roomGridIndex = getRoomGridIndex(nil)
27141
27207
  local roomListIndex = getRoomListIndex(nil)
27142
27208
  local roomData = getRoomData(nil)
27209
+ ____exports.log(nil, "Current room information:")
27143
27210
  if roomData == nil then
27144
- ____exports.log(nil, "Current room data is undefined.")
27211
+ ____exports.log(nil, "- Room data is undefined.")
27145
27212
  else
27146
27213
  ____exports.log(
27147
27214
  nil,
27148
- "Current room stage ID: " .. tostring(roomData.StageID)
27215
+ "- Room stage ID: " .. tostring(roomData.StageID)
27149
27216
  )
27150
27217
  ____exports.log(
27151
27218
  nil,
27152
- (((("Current room type/variant/sub-type: " .. tostring(roomData.Type)) .. ".") .. tostring(roomData.Variant)) .. ".") .. tostring(roomData.Subtype)
27219
+ (((("- Type/variant/sub-type: " .. tostring(roomData.Type)) .. ".") .. tostring(roomData.Variant)) .. ".") .. tostring(roomData.Subtype)
27153
27220
  )
27154
- ____exports.log(nil, "Current room name: " .. roomData.Name)
27221
+ ____exports.log(nil, "- Name: " .. roomData.Name)
27155
27222
  end
27156
27223
  local roomGridIndexName = GridRoom[roomGridIndex]
27157
27224
  if roomGridIndexName == nil then
27158
27225
  ____exports.log(
27159
27226
  nil,
27160
- "Current room grid index: " .. tostring(roomGridIndex)
27227
+ "- Grid index: " .. tostring(roomGridIndex)
27161
27228
  )
27162
27229
  else
27163
27230
  ____exports.log(
27164
27231
  nil,
27165
- ((("Current room grid index: " .. tostring(roomGridIndex)) .. " (GridRoom.") .. roomGridIndexName) .. ")"
27232
+ ((("- Grid index: GridRoom." .. roomGridIndexName) .. " (") .. tostring(roomGridIndex)) .. ")"
27166
27233
  )
27167
27234
  end
27168
27235
  ____exports.log(
27169
27236
  nil,
27170
- "Current room list index: " .. tostring(roomListIndex)
27237
+ "- List index: " .. tostring(roomListIndex)
27171
27238
  )
27172
27239
  ____exports.log(
27173
27240
  nil,
27174
- "Current room boss ID: " .. tostring(bossID)
27241
+ "- Boss ID: " .. tostring(bossID)
27175
27242
  )
27176
27243
  end
27177
27244
  function ____exports.logSeedEffects(self)
@@ -29609,6 +29676,7 @@ local DownpourRoomSubType = ____isaac_2Dtypescript_2Ddefinitions.DownpourRoomSub
29609
29676
  local DungeonSubType = ____isaac_2Dtypescript_2Ddefinitions.DungeonSubType
29610
29677
  local GridRoom = ____isaac_2Dtypescript_2Ddefinitions.GridRoom
29611
29678
  local HomeRoomSubType = ____isaac_2Dtypescript_2Ddefinitions.HomeRoomSubType
29679
+ local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
29612
29680
  local RoomDescriptorFlag = ____isaac_2Dtypescript_2Ddefinitions.RoomDescriptorFlag
29613
29681
  local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
29614
29682
  local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
@@ -29655,7 +29723,7 @@ local getGotoCommand = ____stage.getGotoCommand
29655
29723
  local ____types = require("src.functions.types")
29656
29724
  local asNumber = ____types.asNumber
29657
29725
  local ____utils = require("src.functions.utils")
29658
- local irange = ____utils.irange
29726
+ local iRange = ____utils.iRange
29659
29727
  function ____exports.getReadOnlyRooms(self)
29660
29728
  local level = game:GetLevel()
29661
29729
  local roomList = level:GetRooms()
@@ -29680,7 +29748,7 @@ function ____exports.getRoomsInsideGrid(self, includeExtraDimensionalRooms)
29680
29748
  local dimensions = includeExtraDimensionalRooms and getAllDimensions(nil) or ({Dimension.CURRENT})
29681
29749
  local roomDescriptorMap = __TS__New(Map)
29682
29750
  for ____, dimension in ipairs(dimensions) do
29683
- for ____, roomGridIndex in ipairs(irange(nil, MAX_LEVEL_GRID_INDEX)) do
29751
+ for ____, roomGridIndex in ipairs(iRange(nil, MAX_LEVEL_GRID_INDEX)) do
29684
29752
  local roomDescriptor = level:GetRoomByIdx(roomGridIndex, dimension)
29685
29753
  if roomDescriptor.Data ~= nil then
29686
29754
  local ptrHash = GetPtrHash(roomDescriptor)
@@ -29752,7 +29820,7 @@ end
29752
29820
  function ____exports.getRoomsOfDimension(self, dimension)
29753
29821
  local level = game:GetLevel()
29754
29822
  local roomsMap = __TS__New(Map)
29755
- for ____, roomGridIndex in ipairs(irange(nil, MAX_LEVEL_GRID_INDEX)) do
29823
+ for ____, roomGridIndex in ipairs(iRange(nil, MAX_LEVEL_GRID_INDEX)) do
29756
29824
  local roomDescriptor = level:GetRoomByIdx(roomGridIndex, dimension)
29757
29825
  if roomDescriptor.Data ~= nil then
29758
29826
  local ptrHash = GetPtrHash(roomDescriptor)
@@ -29810,6 +29878,12 @@ function ____exports.inGenesisRoom(self)
29810
29878
  local roomGridIndex = getRoomGridIndex(nil)
29811
29879
  return roomGridIndex == asNumber(nil, GridRoom.GENESIS)
29812
29880
  end
29881
+ function ____exports.inHomeCloset(self)
29882
+ local level = game:GetLevel()
29883
+ local stage = level:GetStage()
29884
+ local roomSubType = getRoomSubType(nil)
29885
+ return stage == LevelStage.HOME and (roomSubType == asNumber(nil, HomeRoomSubType.CLOSET_LEFT) or roomSubType == asNumber(nil, HomeRoomSubType.CLOSET_RIGHT))
29886
+ end
29813
29887
  function ____exports.inLRoom(self)
29814
29888
  local room = game:GetRoom()
29815
29889
  local roomShape = room:GetRoomShape()
@@ -29892,12 +29966,12 @@ function ____exports.setRoomCleared(self)
29892
29966
  for ____, door in ipairs(getDoors(nil)) do
29893
29967
  do
29894
29968
  if isHiddenSecretRoomDoor(nil, door) then
29895
- goto __continue52
29969
+ goto __continue53
29896
29970
  end
29897
29971
  openDoorFast(nil, door)
29898
29972
  door.ExtraVisible = false
29899
29973
  end
29900
- ::__continue52::
29974
+ ::__continue53::
29901
29975
  end
29902
29976
  sfxManager:Stop(SoundEffect.DOOR_HEAVY_OPEN)
29903
29977
  game:ShakeScreen(0)
@@ -29949,14 +30023,14 @@ local ____types = require("src.functions.types")
29949
30023
  local asNumber = ____types.asNumber
29950
30024
  local isNumber = ____types.isNumber
29951
30025
  local ____utils = require("src.functions.utils")
29952
- local erange = ____utils.erange
30026
+ local eRange = ____utils.eRange
29953
30027
  local ____vector = require("src.functions.vector")
29954
30028
  local isVector = ____vector.isVector
29955
30029
  local vectorEquals = ____vector.vectorEquals
29956
30030
  function ____exports.getAllGridIndexes(self)
29957
30031
  local room = game:GetRoom()
29958
30032
  local gridSize = room:GetGridSize()
29959
- return erange(nil, gridSize)
30033
+ return eRange(nil, gridSize)
29960
30034
  end
29961
30035
  function getAllGridEntities(self)
29962
30036
  local room = game:GetRoom()
@@ -36234,8 +36308,8 @@ local ____string = require("src.functions.string")
36234
36308
  local removeCharactersBefore = ____string.removeCharactersBefore
36235
36309
  local trimPrefix = ____string.trimPrefix
36236
36310
  local ____utils = require("src.functions.utils")
36237
- local erange = ____utils.erange
36238
- local irange = ____utils.irange
36311
+ local eRange = ____utils.eRange
36312
+ local iRange = ____utils.iRange
36239
36313
  local ____constants = require("src.features.customStage.constants")
36240
36314
  local ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH = ____constants.ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH
36241
36315
  function getBackdropPNGPath(self, customStage, backdropKind, rng)
@@ -36267,7 +36341,7 @@ function spawnWallEntity(self, customStage, rng, isExtraWall)
36267
36341
  local cornerPNGPath = getBackdropPNGPath(nil, customStage, BackdropKind.CORNER, rng)
36268
36342
  sprite:ReplaceSpritesheet(0, cornerPNGPath)
36269
36343
  end
36270
- for ____, layerID in ipairs(irange(nil, 1, numWallLayers)) do
36344
+ for ____, layerID in ipairs(iRange(nil, 1, numWallLayers)) do
36271
36345
  local wallPNGPath = getBackdropPNGPath(nil, customStage, BackdropKind.WALL, rng)
36272
36346
  sprite:ReplaceSpritesheet(layerID, wallPNGPath)
36273
36347
  end
@@ -36306,7 +36380,7 @@ function spawnFloorEntity(self, customStage, rng)
36306
36380
  sprite:Load(ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH .. "/floor-backdrop.anm2", false)
36307
36381
  local numFloorLayers = getNumFloorLayers(nil, roomShape)
36308
36382
  if numFloorLayers ~= nil then
36309
- for ____, layerID in ipairs(erange(nil, 0, numFloorLayers)) do
36383
+ for ____, layerID in ipairs(eRange(nil, 0, numFloorLayers)) do
36310
36384
  local wallPNGPath = getBackdropPNGPath(nil, customStage, BackdropKind.WALL, rng)
36311
36385
  sprite:ReplaceSpritesheet(layerID, wallPNGPath)
36312
36386
  end
@@ -39732,7 +39806,7 @@ local getRoomSubType = ____roomData.getRoomSubType
39732
39806
  local ____string = require("src.functions.string")
39733
39807
  local removeCharactersBefore = ____string.removeCharactersBefore
39734
39808
  local ____utils = require("src.functions.utils")
39735
- local erange = ____utils.erange
39809
+ local eRange = ____utils.eRange
39736
39810
  local ____bossNamePNGFileNames = require("src.objects.bossNamePNGFileNames")
39737
39811
  local BOSS_NAME_PNG_FILE_NAMES = ____bossNamePNGFileNames.BOSS_NAME_PNG_FILE_NAMES
39738
39812
  local ____bossPortraitPNGFileNames = require("src.objects.bossPortraitPNGFileNames")
@@ -39834,7 +39908,7 @@ local OVERLAY_ANM2_LAYER = 11
39834
39908
  local PLAYER_PORTRAIT_ALT_ANM2_LAYER = 12
39835
39909
  local OTHER_ANM2_LAYERS = arrayRemove(
39836
39910
  nil,
39837
- erange(nil, NUM_VERSUS_SCREEN_ANM2_LAYERS),
39911
+ eRange(nil, NUM_VERSUS_SCREEN_ANM2_LAYERS),
39838
39912
  BACKGROUND_ANM2_LAYER,
39839
39913
  BOSS_DIRT_SPOT_ANM2_LAYER,
39840
39914
  PLAYER_DIRT_SPOT_ANM2_LAYER,
@@ -40800,6 +40874,78 @@ function ____exports.customTrapdoorInit(self, mod)
40800
40874
  mod:AddCallback(ModCallback.POST_PEFFECT_UPDATE, postPEffectUpdate)
40801
40875
  mod:AddCallbackCustom(ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_UPDATE, postGridEntityCustomUpdateTrapdoor, GridEntityTypeCustom.TRAPDOOR_CUSTOM)
40802
40876
  end
40877
+ return ____exports
40878
+ end,
40879
+ ["src.functions.emptyRoom"] = function(...)
40880
+ local ____lualib = require("lualib_bundle")
40881
+ local Set = ____lualib.Set
40882
+ local __TS__New = ____lualib.__TS__New
40883
+ local ____exports = {}
40884
+ local emptyRoomEntities, emptyRoomGridEntities, EMPTY_ROOM_BLACKLIST_ENTITY_SET, EMPTY_ROOM_BLACKLIST_GRID_ENTITY_SET
40885
+ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
40886
+ local EntityFlag = ____isaac_2Dtypescript_2Ddefinitions.EntityFlag
40887
+ local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
40888
+ local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
40889
+ local ____cachedClasses = require("src.core.cachedClasses")
40890
+ local game = ____cachedClasses.game
40891
+ local ____entities = require("src.functions.entities")
40892
+ local getEntities = ____entities.getEntities
40893
+ local ____gridEntities = require("src.functions.gridEntities")
40894
+ local getGridEntities = ____gridEntities.getGridEntities
40895
+ local removeGridEntity = ____gridEntities.removeGridEntity
40896
+ local ____rooms = require("src.functions.rooms")
40897
+ local roomUpdateSafe = ____rooms.roomUpdateSafe
40898
+ function emptyRoomEntities(self)
40899
+ local room = game:GetRoom()
40900
+ for ____, entity in ipairs(getEntities(nil)) do
40901
+ do
40902
+ if EMPTY_ROOM_BLACKLIST_ENTITY_SET:has(entity.Type) then
40903
+ goto __continue4
40904
+ end
40905
+ if entity:HasEntityFlags(EntityFlag.CHARM) or entity:HasEntityFlags(EntityFlag.FRIENDLY) or entity:HasEntityFlags(EntityFlag.PERSISTENT) then
40906
+ goto __continue4
40907
+ end
40908
+ entity:ClearEntityFlags(EntityFlag.APPEAR)
40909
+ entity:Remove()
40910
+ if entity.Type == EntityType.FIREPLACE then
40911
+ local gridIndex = room:GetGridIndex(entity.Position)
40912
+ room:SetGridPath(gridIndex, 0)
40913
+ end
40914
+ end
40915
+ ::__continue4::
40916
+ end
40917
+ end
40918
+ function emptyRoomGridEntities(self)
40919
+ local removedOneOrMoreGridEntities = false
40920
+ for ____, gridEntity in ipairs(getGridEntities(nil)) do
40921
+ do
40922
+ local gridEntityType = gridEntity:GetType()
40923
+ if EMPTY_ROOM_BLACKLIST_GRID_ENTITY_SET:has(gridEntityType) then
40924
+ goto __continue10
40925
+ end
40926
+ removeGridEntity(nil, gridEntity, false)
40927
+ removedOneOrMoreGridEntities = true
40928
+ end
40929
+ ::__continue10::
40930
+ end
40931
+ if removedOneOrMoreGridEntities then
40932
+ roomUpdateSafe(nil)
40933
+ end
40934
+ end
40935
+ EMPTY_ROOM_BLACKLIST_ENTITY_SET = __TS__New(Set, {
40936
+ EntityType.PLAYER,
40937
+ EntityType.TEAR,
40938
+ EntityType.FAMILIAR,
40939
+ EntityType.LASER,
40940
+ EntityType.KNIFE,
40941
+ EntityType.PROJECTILE,
40942
+ EntityType.DARK_ESAU
40943
+ })
40944
+ EMPTY_ROOM_BLACKLIST_GRID_ENTITY_SET = __TS__New(Set, {GridEntityType.WALL, GridEntityType.DOOR})
40945
+ function ____exports.emptyRoom(self)
40946
+ emptyRoomEntities(nil)
40947
+ emptyRoomGridEntities(nil)
40948
+ end
40803
40949
  return ____exports
40804
40950
  end,
40805
40951
  ["src.interfaces.JSONRoomsFile"] = function(...)
@@ -41287,11 +41433,10 @@ local __TS__New = ____lualib.__TS__New
41287
41433
  local Map = ____lualib.Map
41288
41434
  local __TS__Iterator = ____lualib.__TS__Iterator
41289
41435
  local ____exports = {}
41290
- local preUseItemWeNeedToGoDeeper, postNewRoomReordered, setDecorationsInvisible, respawnPersistentEntities, emptyRoomEntities, emptyRoomGridEntities, fillRoomWithDecorations, spawnAllEntities, spawnGridEntityForJSONRoom, spawnNormalEntityForJSONRoom, storePersistentEntity, fixPitGraphics, getPitMap, getPitFrame, FEATURE_NAME, PERSISTENT_ENTITY_TYPES, GRID_ENTITY_XML_TYPE_SET, EMPTY_ROOM_BLACKLIST_ENTITY_SET, EMPTY_ROOM_BLACKLIST_GRID_ENTITY_SET, v
41436
+ local preUseItemWeNeedToGoDeeper, postNewRoomReordered, setDecorationsInvisible, respawnPersistentEntities, fillRoomWithDecorations, spawnAllEntities, spawnGridEntityForJSONRoom, spawnNormalEntityForJSONRoom, storePersistentEntity, fixPitGraphics, getPitMap, getPitFrame, PERSISTENT_ENTITY_TYPES, GRID_ENTITY_XML_TYPE_SET, v
41291
41437
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
41292
41438
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
41293
41439
  local EntityCollisionClass = ____isaac_2Dtypescript_2Ddefinitions.EntityCollisionClass
41294
- local EntityFlag = ____isaac_2Dtypescript_2Ddefinitions.EntityFlag
41295
41440
  local EntityGridCollisionClass = ____isaac_2Dtypescript_2Ddefinitions.EntityGridCollisionClass
41296
41441
  local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
41297
41442
  local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
@@ -41310,8 +41455,9 @@ local ____featuresInitialized = require("src.featuresInitialized")
41310
41455
  local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
41311
41456
  local ____array = require("src.functions.array")
41312
41457
  local emptyArray = ____array.emptyArray
41458
+ local ____emptyRoom = require("src.functions.emptyRoom")
41459
+ local emptyRoom = ____emptyRoom.emptyRoom
41313
41460
  local ____entities = require("src.functions.entities")
41314
- local getEntities = ____entities.getEntities
41315
41461
  local getEntityIDFromConstituents = ____entities.getEntityIDFromConstituents
41316
41462
  local spawn = ____entities.spawn
41317
41463
  local spawnWithSeed = ____entities.spawnWithSeed
@@ -41338,7 +41484,6 @@ local getRoomListIndex = ____roomData.getRoomListIndex
41338
41484
  local ____roomGrid = require("src.functions.roomGrid")
41339
41485
  local gridCoordinatesToWorldPosition = ____roomGrid.gridCoordinatesToWorldPosition
41340
41486
  local ____rooms = require("src.functions.rooms")
41341
- local roomUpdateSafe = ____rooms.roomUpdateSafe
41342
41487
  local setRoomCleared = ____rooms.setRoomCleared
41343
41488
  local setRoomUncleared = ____rooms.setRoomUncleared
41344
41489
  local ____spawnCollectible = require("src.functions.spawnCollectible")
@@ -41421,54 +41566,6 @@ function respawnPersistentEntities(self)
41421
41566
  )
41422
41567
  end
41423
41568
  end
41424
- function ____exports.emptyRoom(self, fillWithDecorations)
41425
- errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
41426
- local roomListIndex = getRoomListIndex(nil)
41427
- v.level.deployedRoomListIndexes:add(roomListIndex)
41428
- emptyRoomEntities(nil)
41429
- emptyRoomGridEntities(nil)
41430
- setRoomCleared(nil)
41431
- if fillWithDecorations then
41432
- fillRoomWithDecorations(nil)
41433
- end
41434
- end
41435
- function emptyRoomEntities(self)
41436
- local room = game:GetRoom()
41437
- for ____, entity in ipairs(getEntities(nil)) do
41438
- do
41439
- if EMPTY_ROOM_BLACKLIST_ENTITY_SET:has(entity.Type) then
41440
- goto __continue33
41441
- end
41442
- if entity:HasEntityFlags(EntityFlag.CHARM) or entity:HasEntityFlags(EntityFlag.FRIENDLY) or entity:HasEntityFlags(EntityFlag.PERSISTENT) then
41443
- goto __continue33
41444
- end
41445
- entity:ClearEntityFlags(EntityFlag.APPEAR)
41446
- entity:Remove()
41447
- if entity.Type == EntityType.FIREPLACE then
41448
- local gridIndex = room:GetGridIndex(entity.Position)
41449
- room:SetGridPath(gridIndex, 0)
41450
- end
41451
- end
41452
- ::__continue33::
41453
- end
41454
- end
41455
- function emptyRoomGridEntities(self)
41456
- local removedOneOrMoreGridEntities = false
41457
- for ____, gridEntity in ipairs(getGridEntities(nil)) do
41458
- do
41459
- local gridEntityType = gridEntity:GetType()
41460
- if EMPTY_ROOM_BLACKLIST_GRID_ENTITY_SET:has(gridEntityType) then
41461
- goto __continue39
41462
- end
41463
- removeGridEntity(nil, gridEntity, false)
41464
- removedOneOrMoreGridEntities = true
41465
- end
41466
- ::__continue39::
41467
- end
41468
- if removedOneOrMoreGridEntities then
41469
- roomUpdateSafe(nil)
41470
- end
41471
- end
41472
41569
  function fillRoomWithDecorations(self)
41473
41570
  local room = game:GetRoom()
41474
41571
  local roomListIndex = getRoomListIndex(nil)
@@ -41477,7 +41574,7 @@ function fillRoomWithDecorations(self)
41477
41574
  do
41478
41575
  local existingGridEntity = room:GetGridEntity(gridIndex)
41479
41576
  if existingGridEntity ~= nil then
41480
- goto __continue44
41577
+ goto __continue31
41481
41578
  end
41482
41579
  local position = room:GetGridPosition(gridIndex)
41483
41580
  local decoration = Isaac.GridSpawn(GridEntityType.DECORATION, 0, position)
@@ -41486,7 +41583,7 @@ function fillRoomWithDecorations(self)
41486
41583
  end
41487
41584
  decorationGridIndexes[#decorationGridIndexes + 1] = gridIndex
41488
41585
  end
41489
- ::__continue44::
41586
+ ::__continue31::
41490
41587
  end
41491
41588
  end
41492
41589
  function spawnAllEntities(self, jsonRoom, rng, verbose)
@@ -41743,20 +41840,10 @@ function getPitFrame(self, L, R, U, D, UL, UR, DL, DR)
41743
41840
  end
41744
41841
  return F
41745
41842
  end
41746
- FEATURE_NAME = "deployJSONRoom"
41843
+ local FEATURE_NAME = "deployJSONRoom"
41747
41844
  PERSISTENT_ENTITY_TYPES = __TS__New(Set, {EntityType.WALL_HUGGER})
41748
41845
  local gridEntityXMLTypes = getEnumValues(nil, GridEntityXMLType)
41749
41846
  GRID_ENTITY_XML_TYPE_SET = __TS__New(Set, gridEntityXMLTypes)
41750
- EMPTY_ROOM_BLACKLIST_ENTITY_SET = __TS__New(Set, {
41751
- EntityType.PLAYER,
41752
- EntityType.TEAR,
41753
- EntityType.FAMILIAR,
41754
- EntityType.LASER,
41755
- EntityType.KNIFE,
41756
- EntityType.PROJECTILE,
41757
- EntityType.DARK_ESAU
41758
- })
41759
- EMPTY_ROOM_BLACKLIST_GRID_ENTITY_SET = __TS__New(Set, {GridEntityType.WALL, GridEntityType.DOOR})
41760
41847
  v = {
41761
41848
  level = {
41762
41849
  deployedRoomListIndexes = __TS__New(Set),
@@ -41785,13 +41872,16 @@ function ____exports.deployJSONRoom(self, jsonRoom, seedOrRNG, verbose)
41785
41872
  end
41786
41873
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
41787
41874
  local rng = isRNG(nil, seedOrRNG) and seedOrRNG or newRNG(nil, seedOrRNG)
41875
+ local roomListIndex = getRoomListIndex(nil)
41876
+ v.level.deployedRoomListIndexes:add(roomListIndex)
41788
41877
  if verbose then
41789
41878
  log(nil, "Starting to empty the room of entities and grid entities.")
41790
41879
  end
41791
- ____exports.emptyRoom(nil, false)
41880
+ emptyRoom(nil)
41792
41881
  if verbose then
41793
41882
  log(nil, "Finished emptying the room of entities and grid entities.")
41794
41883
  end
41884
+ setRoomCleared(nil)
41795
41885
  if verbose then
41796
41886
  log(nil, "Starting to spawn all of the new entities and grid entities.")
41797
41887
  end
@@ -42522,7 +42612,7 @@ function ____exports.preventChildEntities(self, entity)
42522
42612
  end
42523
42613
  return ____exports
42524
42614
  end,
42525
- ["src.features.registerHotkey"] = function(...)
42615
+ ["src.features.setHotkey"] = function(...)
42526
42616
  local ____lualib = require("lualib_bundle")
42527
42617
  local Map = ____lualib.Map
42528
42618
  local __TS__New = ____lualib.__TS__New
@@ -42538,8 +42628,6 @@ local ____featuresInitialized = require("src.featuresInitialized")
42538
42628
  local errorIfFeaturesNotInitialized = ____featuresInitialized.errorIfFeaturesNotInitialized
42539
42629
  local ____input = require("src.functions.input")
42540
42630
  local isKeyboardPressed = ____input.isKeyboardPressed
42541
- local ____types = require("src.functions.types")
42542
- local isFunction = ____types.isFunction
42543
42631
  function postRender(self)
42544
42632
  for ____, ____value in __TS__Iterator(staticHotkeyFunctionMap:entries()) do
42545
42633
  local keyboard = ____value[1]
@@ -42563,40 +42651,40 @@ function checkIfTriggered(self, keyboard, triggerFunc)
42563
42651
  triggerFunc(nil)
42564
42652
  end
42565
42653
  end
42566
- local FEATURE_NAME = "registerHotkeys"
42654
+ local FEATURE_NAME = "setHotkey"
42567
42655
  staticHotkeyFunctionMap = __TS__New(Map)
42568
42656
  dynamicHotkeyFunctionMap = __TS__New(Map)
42569
42657
  keyPressedMap = __TS__New(DefaultMap, false)
42570
- function ____exports.registerHotkeyInit(self, mod)
42658
+ function ____exports.setHotkeyInit(self, mod)
42571
42659
  mod:AddCallback(ModCallback.POST_RENDER, postRender)
42572
42660
  end
42573
- function ____exports.registerHotkey(self, keyboardOrFunc, triggerFunc)
42661
+ function ____exports.setConditionalHotkey(self, getKeyFunc, triggerFunc)
42574
42662
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
42575
- if isFunction(nil, keyboardOrFunc) then
42576
- if dynamicHotkeyFunctionMap:has(keyboardOrFunc) then
42577
- error("Failed to register a hotkey due to a custom hotkey already being defined for the submitted function.")
42578
- end
42579
- dynamicHotkeyFunctionMap:set(keyboardOrFunc, triggerFunc)
42580
- else
42581
- if staticHotkeyFunctionMap:has(keyboardOrFunc) then
42582
- error(((("Failed to register a hotkey due to a hotkey already being defined for key: Keyboard." .. tostring(Keyboard[keyboardOrFunc])) .. " (") .. tostring(keyboardOrFunc)) .. ")")
42583
- end
42584
- staticHotkeyFunctionMap:set(keyboardOrFunc, triggerFunc)
42663
+ if dynamicHotkeyFunctionMap:has(getKeyFunc) then
42664
+ error("Failed to register a hotkey due to a custom hotkey already being defined for the submitted function.")
42585
42665
  end
42666
+ dynamicHotkeyFunctionMap:set(getKeyFunc, triggerFunc)
42586
42667
  end
42587
- function ____exports.unregisterHotkey(self, keyboardOrFunc)
42668
+ function ____exports.setHotkey(self, keyboard, triggerFunc)
42588
42669
  errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
42589
- if isFunction(nil, keyboardOrFunc) then
42590
- if not dynamicHotkeyFunctionMap:has(keyboardOrFunc) then
42591
- error("Failed to unregister a hotkey since there is no existing hotkey defined for the submitted function.")
42592
- end
42593
- dynamicHotkeyFunctionMap:delete(keyboardOrFunc)
42594
- else
42595
- if not staticHotkeyFunctionMap:has(keyboardOrFunc) then
42596
- error(((("Failed to unregister a hotkey since there is no existing hotkey defined for key: Keyboard." .. tostring(Keyboard[keyboardOrFunc])) .. " (") .. tostring(keyboardOrFunc)) .. ")")
42597
- end
42598
- staticHotkeyFunctionMap:delete(keyboardOrFunc)
42670
+ if staticHotkeyFunctionMap:has(keyboard) then
42671
+ error(((("Failed to register a hotkey due to a hotkey already being defined for: Keyboard." .. tostring(Keyboard[keyboard])) .. " (") .. tostring(keyboard)) .. ")")
42599
42672
  end
42673
+ staticHotkeyFunctionMap:set(keyboard, triggerFunc)
42674
+ end
42675
+ function ____exports.unsetConditionalHotkey(self, getKeyFunc)
42676
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
42677
+ if not dynamicHotkeyFunctionMap:has(getKeyFunc) then
42678
+ error("Failed to unregister a hotkey since there is no existing hotkey defined for the submitted function.")
42679
+ end
42680
+ dynamicHotkeyFunctionMap:delete(getKeyFunc)
42681
+ end
42682
+ function ____exports.unsetHotkey(self, keyboard)
42683
+ errorIfFeaturesNotInitialized(nil, FEATURE_NAME)
42684
+ if not staticHotkeyFunctionMap:has(keyboard) then
42685
+ error(((("Failed to unregister a hotkey since there is no existing hotkey defined for: Keyboard." .. tostring(Keyboard[keyboard])) .. " (") .. tostring(keyboard)) .. ")")
42686
+ end
42687
+ staticHotkeyFunctionMap:delete(keyboard)
42600
42688
  end
42601
42689
  return ____exports
42602
42690
  end,
@@ -42779,8 +42867,6 @@ local ____preventChildEntities = require("src.features.preventChildEntities")
42779
42867
  local preventChildEntitiesInit = ____preventChildEntities.preventChildEntitiesInit
42780
42868
  local ____preventCollectibleRotation = require("src.features.preventCollectibleRotation")
42781
42869
  local preventCollectibleRotationInit = ____preventCollectibleRotation.preventCollectibleRotationInit
42782
- local ____registerHotkey = require("src.features.registerHotkey")
42783
- local registerHotkeyInit = ____registerHotkey.registerHotkeyInit
42784
42870
  local ____roomClearFrame = require("src.features.roomClearFrame")
42785
42871
  local roomClearFrameInit = ____roomClearFrame.roomClearFrameInit
42786
42872
  local ____roomHistory = require("src.features.roomHistory")
@@ -42789,6 +42875,8 @@ local ____runInNFrames = require("src.features.runInNFrames")
42789
42875
  local runInNFramesInit = ____runInNFrames.runInNFramesInit
42790
42876
  local ____runNextRoom = require("src.features.runNextRoom")
42791
42877
  local runNextRoomInit = ____runNextRoom.runNextRoomInit
42878
+ local ____setHotkey = require("src.features.setHotkey")
42879
+ local setHotkeyInit = ____setHotkey.setHotkeyInit
42792
42880
  local ____sirenHelpers = require("src.features.sirenHelpers")
42793
42881
  local sirenHelpersInit = ____sirenHelpers.sirenHelpersInit
42794
42882
  local ____stageHistory = require("src.features.stageHistory")
@@ -42820,10 +42908,10 @@ function initFeaturesMinor(self, mod)
42820
42908
  ponyDetectionInit(nil, mod)
42821
42909
  preventChildEntitiesInit(nil, mod)
42822
42910
  preventCollectibleRotationInit(nil, mod)
42823
- registerHotkeyInit(nil, mod)
42824
42911
  roomClearFrameInit(nil, mod)
42825
42912
  roomHistoryInit(nil, mod)
42826
42913
  runNextRoomInit(nil, mod)
42914
+ setHotkeyInit(nil, mod)
42827
42915
  sirenHelpersInit(nil, mod)
42828
42916
  stageHistoryInit(nil, mod)
42829
42917
  taintedLazarusPlayersInit(nil, mod)
@@ -43786,7 +43874,7 @@ local ____set = require("src.functions.set")
43786
43874
  local addSetsToSet = ____set.addSetsToSet
43787
43875
  local getRandomSetElement = ____set.getRandomSetElement
43788
43876
  local ____utils = require("src.functions.utils")
43789
- local irange = ____utils.irange
43877
+ local iRange = ____utils.iRange
43790
43878
  function lazyInitCardMapsSets(self)
43791
43879
  for ____, cardType in ipairs(getEnumValues(nil, ItemConfigCardType)) do
43792
43880
  ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP:set(
@@ -43833,7 +43921,7 @@ function ____exports.getItemConfigCardType(self, cardType)
43833
43921
  return itemConfigCardType == nil and DEFAULT_CARD_TYPE or itemConfigCardType
43834
43922
  end
43835
43923
  function ____exports.getVanillaCardTypes(self)
43836
- return irange(nil, FIRST_CARD_TYPE, LAST_VANILLA_CARD_TYPE)
43924
+ return iRange(nil, FIRST_CARD_TYPE, LAST_VANILLA_CARD_TYPE)
43837
43925
  end
43838
43926
  function ____exports.isVanillaCardType(self, cardType)
43839
43927
  return cardType <= LAST_VANILLA_CARD_TYPE
@@ -45111,7 +45199,7 @@ local ____types = require("src.functions.types")
45111
45199
  local asNumber = ____types.asNumber
45112
45200
  local asPillColor = ____types.asPillColor
45113
45201
  local ____utils = require("src.functions.utils")
45114
- local irange = ____utils.irange
45202
+ local iRange = ____utils.iRange
45115
45203
  function ____exports.isVanillaPillEffect(self, pillEffect)
45116
45204
  return pillEffect <= LAST_VANILLA_PILL_EFFECT
45117
45205
  end
@@ -45129,7 +45217,7 @@ function ____exports.getHorsePillColor(self, pillColor)
45129
45217
  return asNumber(nil, pillColor) + HORSE_PILL_ADJUSTMENT
45130
45218
  end
45131
45219
  function ____exports.getHorsePillColors(self)
45132
- return irange(nil, FIRST_HORSE_PILL_COLOR, LAST_HORSE_PILL_COLOR)
45220
+ return iRange(nil, FIRST_HORSE_PILL_COLOR, LAST_HORSE_PILL_COLOR)
45133
45221
  end
45134
45222
  function ____exports.getNormalPillColorFromHorse(self, pillColor)
45135
45223
  local normalPillColor = asPillColor(
@@ -45139,7 +45227,7 @@ function ____exports.getNormalPillColorFromHorse(self, pillColor)
45139
45227
  return normalPillColor > PillColor.NULL and normalPillColor or pillColor
45140
45228
  end
45141
45229
  function ____exports.getNormalPillColors(self)
45142
- return irange(nil, FIRST_PILL_COLOR, LAST_NORMAL_PILL_COLOR)
45230
+ return iRange(nil, FIRST_PILL_COLOR, LAST_NORMAL_PILL_COLOR)
45143
45231
  end
45144
45232
  function ____exports.getPHDPillEffect(self, pillEffect)
45145
45233
  local convertedPillEffect = PHD_PILL_CONVERSIONS:get(pillEffect)
@@ -45165,7 +45253,7 @@ function ____exports.getPillEffectType(self, pillEffect)
45165
45253
  return pillEffectClass == nil and DEFAULT_PILL_EFFECT_TYPE or pillEffectClass
45166
45254
  end
45167
45255
  function ____exports.getVanillaPillEffects(self)
45168
- return irange(nil, FIRST_PILL_EFFECT, LAST_VANILLA_PILL_EFFECT)
45256
+ return iRange(nil, FIRST_PILL_EFFECT, LAST_VANILLA_PILL_EFFECT)
45169
45257
  end
45170
45258
  function ____exports.isHorsePill(self, pillColor)
45171
45259
  return asNumber(nil, pillColor) > HORSE_PILL_ADJUSTMENT
@@ -45821,8 +45909,16 @@ local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
45821
45909
  local ____exports = {}
45822
45910
  local getEntityLogLine, getGridEntityLogLine
45823
45911
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
45912
+ local BombVariant = ____isaac_2Dtypescript_2Ddefinitions.BombVariant
45824
45913
  local EffectVariant = ____isaac_2Dtypescript_2Ddefinitions.EffectVariant
45914
+ local FamiliarVariant = ____isaac_2Dtypescript_2Ddefinitions.FamiliarVariant
45825
45915
  local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
45916
+ local KnifeVariant = ____isaac_2Dtypescript_2Ddefinitions.KnifeVariant
45917
+ local LaserVariant = ____isaac_2Dtypescript_2Ddefinitions.LaserVariant
45918
+ local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
45919
+ local PlayerVariant = ____isaac_2Dtypescript_2Ddefinitions.PlayerVariant
45920
+ local ProjectileVariant = ____isaac_2Dtypescript_2Ddefinitions.ProjectileVariant
45921
+ local TearVariant = ____isaac_2Dtypescript_2Ddefinitions.TearVariant
45826
45922
  local ____entities = require("src.functions.entities")
45827
45923
  local getEntities = ____entities.getEntities
45828
45924
  local getEntityFromPtrHash = ____entities.getEntityFromPtrHash
@@ -45841,23 +45937,23 @@ function getEntityLogLine(self, entity, num)
45841
45937
  msg = msg .. getEntityID(nil, entity)
45842
45938
  local bomb = entity:ToBomb()
45843
45939
  if bomb ~= nil then
45844
- msg = msg .. " (bomb)"
45940
+ msg = msg .. (" (bomb - BombVariant." .. tostring(BombVariant[bomb.Variant])) .. ")"
45845
45941
  end
45846
45942
  local effect = entity:ToEffect()
45847
45943
  if effect ~= nil then
45848
- msg = msg .. (" (effect) (State: " .. tostring(effect.State)) .. ")"
45944
+ msg = msg .. (((" (effect - EffectVariant." .. tostring(EffectVariant[effect.Variant])) .. ") (State: ") .. tostring(effect.State)) .. ")"
45849
45945
  end
45850
45946
  local familiar = entity:ToFamiliar()
45851
45947
  if familiar ~= nil then
45852
- msg = msg .. (" (familiar) (State: " .. tostring(familiar.State)) .. ")"
45948
+ msg = msg .. (((" (familiar - FamiliarVariant." .. tostring(FamiliarVariant[familiar.Variant])) .. ") (State: ") .. tostring(familiar.State)) .. ")"
45853
45949
  end
45854
45950
  local knife = entity:ToKnife()
45855
45951
  if knife ~= nil then
45856
- msg = msg .. " (knife)"
45952
+ msg = msg .. (" (knife - KnifeVariant." .. tostring(KnifeVariant[knife.Variant])) .. ")"
45857
45953
  end
45858
45954
  local laser = entity:ToLaser()
45859
45955
  if laser ~= nil then
45860
- msg = msg .. " (laser)"
45956
+ msg = msg .. (" (laser - LaserVariant." .. tostring(LaserVariant[laser.Variant])) .. ")"
45861
45957
  end
45862
45958
  local npc = entity:ToNPC()
45863
45959
  if npc ~= nil then
@@ -45865,19 +45961,19 @@ function getEntityLogLine(self, entity, num)
45865
45961
  end
45866
45962
  local pickup = entity:ToPickup()
45867
45963
  if pickup ~= nil then
45868
- msg = msg .. (" (pickup) (State: " .. tostring(pickup.State)) .. ")"
45964
+ msg = msg .. (((" (pickup - PickupVariant." .. tostring(PickupVariant[pickup.Variant])) .. ") (State: ") .. tostring(pickup.State)) .. ")"
45869
45965
  end
45870
45966
  local player = entity:ToPlayer()
45871
45967
  if player ~= nil then
45872
- msg = msg .. " (player)"
45968
+ msg = msg .. (" (player - PlayerVariant." .. tostring(PlayerVariant[player.Variant])) .. ")"
45873
45969
  end
45874
45970
  local projectile = entity:ToProjectile()
45875
45971
  if projectile ~= nil then
45876
- msg = msg .. " (projectile)"
45972
+ msg = msg .. (" (projectile - ProjectileVariant." .. tostring(ProjectileVariant[projectile.Variant])) .. "))"
45877
45973
  end
45878
45974
  local tear = entity:ToTear()
45879
45975
  if tear ~= nil then
45880
- msg = msg .. " (tear)"
45976
+ msg = msg .. (" (tear - TearVariant." .. tostring(TearVariant[tear.Variant])) .. "))"
45881
45977
  end
45882
45978
  msg = msg .. "\n"
45883
45979
  msg = msg .. (" - Index: " .. tostring(entity.Index)) .. "\n"
@@ -46345,7 +46441,7 @@ local asCardType = ____types.asCardType
46345
46441
  local asCollectibleType = ____types.asCollectibleType
46346
46442
  local asTrinketType = ____types.asTrinketType
46347
46443
  local ____utils = require("src.functions.utils")
46348
- local irange = ____utils.irange
46444
+ local iRange = ____utils.iRange
46349
46445
  local printConsole = ____utils.printConsole
46350
46446
  local printEnabled = ____utils.printEnabled
46351
46447
  local ____cardNameToTypeMap = require("src.maps.cardNameToTypeMap")
@@ -46981,7 +47077,7 @@ end
46981
47077
  function ____exports.map(self)
46982
47078
  local level = game:GetLevel()
46983
47079
  local displayFlags = addFlag(nil, DisplayFlag.VISIBLE, DisplayFlag.SHADOW, DisplayFlag.SHOW_ICON)
46984
- for ____, roomGridIndex in ipairs(irange(nil, MAX_LEVEL_GRID_INDEX)) do
47080
+ for ____, roomGridIndex in ipairs(iRange(nil, MAX_LEVEL_GRID_INDEX)) do
46985
47081
  local roomDesc = level:GetRoomByIdx(roomGridIndex)
46986
47082
  roomDesc.DisplayFlags = displayFlags
46987
47083
  end
@@ -48483,6 +48579,35 @@ function ____exports.logNewGlobals(self)
48483
48579
  end
48484
48580
  )
48485
48581
  end
48582
+ return ____exports
48583
+ end,
48584
+ ["src.functions.gridIndex"] = function(...)
48585
+ local ____exports = {}
48586
+ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
48587
+ local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
48588
+ local ____roomShape = require("src.functions.roomShape")
48589
+ local getRoomShapeWidth = ____roomShape.getRoomShapeWidth
48590
+ local ____utils = require("src.functions.utils")
48591
+ local iRange = ____utils.iRange
48592
+ function ____exports.getGridIndexesBetween(self, gridIndex1, gridIndex2, roomShape)
48593
+ if gridIndex1 > gridIndex2 then
48594
+ local oldGridIndex1 = gridIndex1
48595
+ local oldGridIndex2 = gridIndex2
48596
+ gridIndex1 = oldGridIndex2
48597
+ gridIndex2 = oldGridIndex1
48598
+ end
48599
+ local delta = gridIndex2 - gridIndex1
48600
+ local gridWidth = getRoomShapeWidth(nil, roomShape)
48601
+ local isOnHorizontalLine = delta <= gridWidth
48602
+ if isOnHorizontalLine then
48603
+ return iRange(nil, gridIndex1, gridIndex2)
48604
+ end
48605
+ local isOnVerticalLine = delta % gridWidth == 0
48606
+ if isOnVerticalLine then
48607
+ return iRange(nil, gridIndex1, gridIndex2, gridWidth)
48608
+ end
48609
+ error(((((((("Failed to get the grid indexes between " .. tostring(gridIndex1)) .. " and ") .. tostring(gridIndex2)) .. " for RoomShape.") .. tostring(RoomShape[roomShape])) .. " (") .. tostring(roomShape)) .. ") since they are not on the same horizontal or vertical line.")
48610
+ end
48486
48611
  return ____exports
48487
48612
  end,
48488
48613
  ["src.functions.hex"] = function(...)
@@ -49551,6 +49676,280 @@ function ____exports.spawnRockAltReward(self, position, rockAltType, seedOrRNG)
49551
49676
  end
49552
49677
  until true
49553
49678
  end
49679
+ return ____exports
49680
+ end,
49681
+ ["src.functions.roomShapeWalls"] = function(...)
49682
+ local ____lualib = require("lualib_bundle")
49683
+ local Map = ____lualib.Map
49684
+ local __TS__New = ____lualib.__TS__New
49685
+ local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
49686
+ local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
49687
+ local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
49688
+ local Set = ____lualib.Set
49689
+ local ____exports = {}
49690
+ local getRoomShapeToWallGridIndexSet, getVanillaWallGridIndexSetForRoomShape, getWallGridIndexSetForRectangleRoomShape, ROOM_SHAPE_TO_WALL_GRID_INDEX_SET, HOME_CLOSET_CORNERS_SET, MOTHER_ROOM_CORNERS_SET
49691
+ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
49692
+ local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
49693
+ local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
49694
+ local ____cachedClasses = require("src.core.cachedClasses")
49695
+ local game = ____cachedClasses.game
49696
+ local ____CornerType = require("src.enums.CornerType")
49697
+ local CornerType = ____CornerType.CornerType
49698
+ local ____enums = require("src.functions.enums")
49699
+ local getEnumValues = ____enums.getEnumValues
49700
+ local ____gridIndex = require("src.functions.gridIndex")
49701
+ local getGridIndexesBetween = ____gridIndex.getGridIndexesBetween
49702
+ local ____rooms = require("src.functions.rooms")
49703
+ local inBossRoomOf = ____rooms.inBossRoomOf
49704
+ local inHomeCloset = ____rooms.inHomeCloset
49705
+ local ____roomShape = require("src.functions.roomShape")
49706
+ local getRoomShapeCorners = ____roomShape.getRoomShapeCorners
49707
+ local isLRoom = ____roomShape.isLRoom
49708
+ function getRoomShapeToWallGridIndexSet(self)
49709
+ local roomShapeToWallGridIndexSet = __TS__New(Map)
49710
+ for ____, roomShape in ipairs(getEnumValues(nil, RoomShape)) do
49711
+ local gridIndexSet = getVanillaWallGridIndexSetForRoomShape(nil, roomShape)
49712
+ roomShapeToWallGridIndexSet:set(roomShape, gridIndexSet)
49713
+ end
49714
+ return roomShapeToWallGridIndexSet
49715
+ end
49716
+ function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
49717
+ local corners = getRoomShapeCorners(nil, roomShape)
49718
+ local lRoom = isLRoom(nil, roomShape)
49719
+ if lRoom and #corners ~= 6 then
49720
+ error(((("Failed to get the correct amount of corners for: RoomShape." .. tostring(RoomShape[roomShape])) .. " (") .. tostring(roomShape)) .. ")")
49721
+ end
49722
+ repeat
49723
+ local ____switch7 = roomShape
49724
+ local ____cond7 = ____switch7 == RoomShape.LTL
49725
+ if ____cond7 then
49726
+ do
49727
+ local topMiddle, topRight, middleLeft, middle, bottomLeft, bottomRight = table.unpack(corners)
49728
+ local ____Set_1 = Set
49729
+ local ____array_0 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topMiddle.gridIndex, topRight.gridIndex, roomShape)))
49730
+ __TS__SparseArrayPush(
49731
+ ____array_0,
49732
+ table.unpack(getGridIndexesBetween(nil, middleLeft.gridIndex, middle.gridIndex, roomShape))
49733
+ )
49734
+ __TS__SparseArrayPush(
49735
+ ____array_0,
49736
+ table.unpack(getGridIndexesBetween(nil, bottomLeft.gridIndex, bottomRight.gridIndex, roomShape))
49737
+ )
49738
+ __TS__SparseArrayPush(
49739
+ ____array_0,
49740
+ table.unpack(getGridIndexesBetween(nil, middleLeft.gridIndex, bottomLeft.gridIndex, roomShape))
49741
+ )
49742
+ __TS__SparseArrayPush(
49743
+ ____array_0,
49744
+ table.unpack(getGridIndexesBetween(nil, topMiddle.gridIndex, middle.gridIndex, roomShape))
49745
+ )
49746
+ __TS__SparseArrayPush(
49747
+ ____array_0,
49748
+ table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, bottomRight.gridIndex, roomShape))
49749
+ )
49750
+ return __TS__New(
49751
+ ____Set_1,
49752
+ {__TS__SparseArraySpread(____array_0)}
49753
+ )
49754
+ end
49755
+ end
49756
+ ____cond7 = ____cond7 or ____switch7 == RoomShape.LTR
49757
+ if ____cond7 then
49758
+ do
49759
+ local topLeft, topMiddle, middle, middleRight, bottomLeft, bottomRight = table.unpack(corners)
49760
+ local ____Set_3 = Set
49761
+ local ____array_2 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topMiddle.gridIndex, roomShape)))
49762
+ __TS__SparseArrayPush(
49763
+ ____array_2,
49764
+ table.unpack(getGridIndexesBetween(nil, middle.gridIndex, middleRight.gridIndex, roomShape))
49765
+ )
49766
+ __TS__SparseArrayPush(
49767
+ ____array_2,
49768
+ table.unpack(getGridIndexesBetween(nil, bottomLeft.gridIndex, bottomRight.gridIndex, roomShape))
49769
+ )
49770
+ __TS__SparseArrayPush(
49771
+ ____array_2,
49772
+ table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, bottomLeft.gridIndex, roomShape))
49773
+ )
49774
+ __TS__SparseArrayPush(
49775
+ ____array_2,
49776
+ table.unpack(getGridIndexesBetween(nil, topMiddle.gridIndex, middle.gridIndex, roomShape))
49777
+ )
49778
+ __TS__SparseArrayPush(
49779
+ ____array_2,
49780
+ table.unpack(getGridIndexesBetween(nil, middleRight.gridIndex, bottomRight.gridIndex, roomShape))
49781
+ )
49782
+ return __TS__New(
49783
+ ____Set_3,
49784
+ {__TS__SparseArraySpread(____array_2)}
49785
+ )
49786
+ end
49787
+ end
49788
+ ____cond7 = ____cond7 or ____switch7 == RoomShape.LBL
49789
+ if ____cond7 then
49790
+ do
49791
+ local topLeft, topRight, middleLeft, middle, bottomMiddle, bottomRight = table.unpack(corners)
49792
+ local ____Set_5 = Set
49793
+ local ____array_4 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topRight.gridIndex, roomShape)))
49794
+ __TS__SparseArrayPush(
49795
+ ____array_4,
49796
+ table.unpack(getGridIndexesBetween(nil, middleLeft.gridIndex, middle.gridIndex, roomShape))
49797
+ )
49798
+ __TS__SparseArrayPush(
49799
+ ____array_4,
49800
+ table.unpack(getGridIndexesBetween(nil, bottomMiddle.gridIndex, bottomRight.gridIndex, roomShape))
49801
+ )
49802
+ __TS__SparseArrayPush(
49803
+ ____array_4,
49804
+ table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, middleLeft.gridIndex, roomShape))
49805
+ )
49806
+ __TS__SparseArrayPush(
49807
+ ____array_4,
49808
+ table.unpack(getGridIndexesBetween(nil, middle.gridIndex, bottomMiddle.gridIndex, roomShape))
49809
+ )
49810
+ __TS__SparseArrayPush(
49811
+ ____array_4,
49812
+ table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, bottomRight.gridIndex, roomShape))
49813
+ )
49814
+ return __TS__New(
49815
+ ____Set_5,
49816
+ {__TS__SparseArraySpread(____array_4)}
49817
+ )
49818
+ end
49819
+ end
49820
+ ____cond7 = ____cond7 or ____switch7 == RoomShape.LBR
49821
+ if ____cond7 then
49822
+ do
49823
+ local topLeft, topRight, middle, middleRight, bottomLeft, bottomMiddle = table.unpack(corners)
49824
+ local ____Set_7 = Set
49825
+ local ____array_6 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topRight.gridIndex, roomShape)))
49826
+ __TS__SparseArrayPush(
49827
+ ____array_6,
49828
+ table.unpack(getGridIndexesBetween(nil, middle.gridIndex, middleRight.gridIndex, roomShape))
49829
+ )
49830
+ __TS__SparseArrayPush(
49831
+ ____array_6,
49832
+ table.unpack(getGridIndexesBetween(nil, bottomLeft.gridIndex, bottomMiddle.gridIndex, roomShape))
49833
+ )
49834
+ __TS__SparseArrayPush(
49835
+ ____array_6,
49836
+ table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, bottomLeft.gridIndex, roomShape))
49837
+ )
49838
+ __TS__SparseArrayPush(
49839
+ ____array_6,
49840
+ table.unpack(getGridIndexesBetween(nil, middle.gridIndex, bottomMiddle.gridIndex, roomShape))
49841
+ )
49842
+ __TS__SparseArrayPush(
49843
+ ____array_6,
49844
+ table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, middleRight.gridIndex, roomShape))
49845
+ )
49846
+ return __TS__New(
49847
+ ____Set_7,
49848
+ {__TS__SparseArraySpread(____array_6)}
49849
+ )
49850
+ end
49851
+ end
49852
+ do
49853
+ do
49854
+ return getWallGridIndexSetForRectangleRoomShape(nil, roomShape, corners)
49855
+ end
49856
+ end
49857
+ until true
49858
+ end
49859
+ function getWallGridIndexSetForRectangleRoomShape(self, roomShape, corners)
49860
+ if #corners ~= 4 then
49861
+ error("Failed to get the correct amount of corners for rectangular room shape.")
49862
+ end
49863
+ local topLeft, topRight, bottomLeft, bottomRight = table.unpack(corners)
49864
+ local ____Set_9 = Set
49865
+ local ____array_8 = __TS__SparseArrayNew(table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, topRight.gridIndex, roomShape)))
49866
+ __TS__SparseArrayPush(
49867
+ ____array_8,
49868
+ table.unpack(getGridIndexesBetween(nil, bottomLeft.gridIndex, bottomRight.gridIndex, roomShape))
49869
+ )
49870
+ __TS__SparseArrayPush(
49871
+ ____array_8,
49872
+ table.unpack(getGridIndexesBetween(nil, topLeft.gridIndex, bottomLeft.gridIndex, roomShape))
49873
+ )
49874
+ __TS__SparseArrayPush(
49875
+ ____array_8,
49876
+ table.unpack(getGridIndexesBetween(nil, topRight.gridIndex, bottomRight.gridIndex, roomShape))
49877
+ )
49878
+ return __TS__New(
49879
+ ____Set_9,
49880
+ {__TS__SparseArraySpread(____array_8)}
49881
+ )
49882
+ end
49883
+ function ____exports.isVanillaWallGridIndex(self, gridIndex)
49884
+ local room = game:GetRoom()
49885
+ local roomShape = room:GetRoomShape()
49886
+ local wallGridIndexSet
49887
+ if inHomeCloset(nil) then
49888
+ wallGridIndexSet = HOME_CLOSET_CORNERS_SET
49889
+ elseif inBossRoomOf(nil, BossID.MOTHER) then
49890
+ wallGridIndexSet = MOTHER_ROOM_CORNERS_SET
49891
+ else
49892
+ wallGridIndexSet = ROOM_SHAPE_TO_WALL_GRID_INDEX_SET:get(roomShape)
49893
+ end
49894
+ if wallGridIndexSet == nil then
49895
+ error(((("Failed to find the wall grid index set for: RoomShape." .. tostring(RoomShape[roomShape])) .. " (") .. tostring(roomShape)) .. ")")
49896
+ end
49897
+ return wallGridIndexSet:has(gridIndex)
49898
+ end
49899
+ ROOM_SHAPE_TO_WALL_GRID_INDEX_SET = getRoomShapeToWallGridIndexSet(nil)
49900
+ local HOME_CLOSET_CORNERS = {
49901
+ {
49902
+ type = CornerType.TOP_LEFT,
49903
+ gridIndex = 30,
49904
+ position = Vector(60, 220)
49905
+ },
49906
+ {
49907
+ type = CornerType.TOP_RIGHT,
49908
+ gridIndex = 38,
49909
+ position = Vector(340, 220)
49910
+ },
49911
+ {
49912
+ type = CornerType.BOTTOM_LEFT,
49913
+ gridIndex = 90,
49914
+ position = Vector(60, 340)
49915
+ },
49916
+ {
49917
+ type = CornerType.BOTTOM_RIGHT,
49918
+ gridIndex = 98,
49919
+ position = Vector(340, 340)
49920
+ }
49921
+ }
49922
+ HOME_CLOSET_CORNERS_SET = getWallGridIndexSetForRectangleRoomShape(nil, RoomShape.IH, HOME_CLOSET_CORNERS)
49923
+ local MOTHER_ROOM_CORNERS = {
49924
+ {
49925
+ type = CornerType.TOP_LEFT,
49926
+ gridIndex = 0,
49927
+ position = Vector(60, 140)
49928
+ },
49929
+ {
49930
+ type = CornerType.TOP_RIGHT,
49931
+ gridIndex = 14,
49932
+ position = Vector(580, 140)
49933
+ },
49934
+ {
49935
+ type = CornerType.BOTTOM_LEFT,
49936
+ gridIndex = 150,
49937
+ position = Vector(60, 500)
49938
+ },
49939
+ {
49940
+ type = CornerType.BOTTOM_RIGHT,
49941
+ gridIndex = 164,
49942
+ position = Vector(580, 500)
49943
+ }
49944
+ }
49945
+ MOTHER_ROOM_CORNERS_SET = getWallGridIndexSetForRectangleRoomShape(nil, RoomShape.SHAPE_1x2, MOTHER_ROOM_CORNERS)
49946
+ function ____exports.isVanillaWall(self, gridEntity)
49947
+ local gridIndex = gridEntity:GetGridIndex()
49948
+ if StageAPI ~= nil and StageAPI.IsCustomGrid(gridIndex) then
49949
+ return false
49950
+ end
49951
+ return ____exports.isVanillaWallGridIndex(nil, gridIndex)
49952
+ end
49554
49953
  return ____exports
49555
49954
  end,
49556
49955
  ["src.functions.saveFile"] = function(...)
@@ -50121,7 +50520,7 @@ do
50121
50520
  end
50122
50521
  end
50123
50522
  do
50124
- local ____export = require("src.features.registerHotkey")
50523
+ local ____export = require("src.features.roomClearFrame")
50125
50524
  for ____exportKey, ____exportValue in pairs(____export) do
50126
50525
  if ____exportKey ~= "default" then
50127
50526
  ____exports[____exportKey] = ____exportValue
@@ -50129,7 +50528,7 @@ do
50129
50528
  end
50130
50529
  end
50131
50530
  do
50132
- local ____export = require("src.features.roomClearFrame")
50531
+ local ____export = require("src.features.roomHistory")
50133
50532
  for ____exportKey, ____exportValue in pairs(____export) do
50134
50533
  if ____exportKey ~= "default" then
50135
50534
  ____exports[____exportKey] = ____exportValue
@@ -50137,7 +50536,7 @@ do
50137
50536
  end
50138
50537
  end
50139
50538
  do
50140
- local ____export = require("src.features.roomHistory")
50539
+ local ____export = require("src.features.runInNFrames")
50141
50540
  for ____exportKey, ____exportValue in pairs(____export) do
50142
50541
  if ____exportKey ~= "default" then
50143
50542
  ____exports[____exportKey] = ____exportValue
@@ -50145,7 +50544,7 @@ do
50145
50544
  end
50146
50545
  end
50147
50546
  do
50148
- local ____export = require("src.features.runInNFrames")
50547
+ local ____export = require("src.features.saveDataManager.exports")
50149
50548
  for ____exportKey, ____exportValue in pairs(____export) do
50150
50549
  if ____exportKey ~= "default" then
50151
50550
  ____exports[____exportKey] = ____exportValue
@@ -50153,7 +50552,7 @@ do
50153
50552
  end
50154
50553
  end
50155
50554
  do
50156
- local ____export = require("src.features.saveDataManager.exports")
50555
+ local ____export = require("src.features.setHotkey")
50157
50556
  for ____exportKey, ____exportValue in pairs(____export) do
50158
50557
  if ____exportKey ~= "default" then
50159
50558
  ____exports[____exportKey] = ____exportValue
@@ -50408,6 +50807,14 @@ do
50408
50807
  end
50409
50808
  end
50410
50809
  end
50810
+ do
50811
+ local ____export = require("src.functions.emptyRoom")
50812
+ for ____exportKey, ____exportValue in pairs(____export) do
50813
+ if ____exportKey ~= "default" then
50814
+ ____exports[____exportKey] = ____exportValue
50815
+ end
50816
+ end
50817
+ end
50411
50818
  do
50412
50819
  local ____export = require("src.functions.entities")
50413
50820
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -50488,6 +50895,14 @@ do
50488
50895
  end
50489
50896
  end
50490
50897
  end
50898
+ do
50899
+ local ____export = require("src.functions.gridIndex")
50900
+ for ____exportKey, ____exportValue in pairs(____export) do
50901
+ if ____exportKey ~= "default" then
50902
+ ____exports[____exportKey] = ____exportValue
50903
+ end
50904
+ end
50905
+ end
50491
50906
  do
50492
50907
  local ____export = require("src.functions.hex")
50493
50908
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -50824,6 +51239,14 @@ do
50824
51239
  end
50825
51240
  end
50826
51241
  end
51242
+ do
51243
+ local ____export = require("src.functions.roomShapeWalls")
51244
+ for ____exportKey, ____exportValue in pairs(____export) do
51245
+ if ____exportKey ~= "default" then
51246
+ ____exports[____exportKey] = ____exportValue
51247
+ end
51248
+ end
51249
+ end
50827
51250
  do
50828
51251
  local ____export = require("src.functions.roomTransition")
50829
51252
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -51397,7 +51820,7 @@ do
51397
51820
  end
51398
51821
  end
51399
51822
  do
51400
- local ____export = require("src.features.registerHotkey")
51823
+ local ____export = require("src.features.roomClearFrame")
51401
51824
  for ____exportKey, ____exportValue in pairs(____export) do
51402
51825
  if ____exportKey ~= "default" then
51403
51826
  ____exports[____exportKey] = ____exportValue
@@ -51405,7 +51828,7 @@ do
51405
51828
  end
51406
51829
  end
51407
51830
  do
51408
- local ____export = require("src.features.roomClearFrame")
51831
+ local ____export = require("src.features.roomHistory")
51409
51832
  for ____exportKey, ____exportValue in pairs(____export) do
51410
51833
  if ____exportKey ~= "default" then
51411
51834
  ____exports[____exportKey] = ____exportValue
@@ -51413,7 +51836,7 @@ do
51413
51836
  end
51414
51837
  end
51415
51838
  do
51416
- local ____export = require("src.features.roomHistory")
51839
+ local ____export = require("src.features.runInNFrames")
51417
51840
  for ____exportKey, ____exportValue in pairs(____export) do
51418
51841
  if ____exportKey ~= "default" then
51419
51842
  ____exports[____exportKey] = ____exportValue
@@ -51421,7 +51844,7 @@ do
51421
51844
  end
51422
51845
  end
51423
51846
  do
51424
- local ____export = require("src.features.runInNFrames")
51847
+ local ____export = require("src.features.saveDataManager.exports")
51425
51848
  for ____exportKey, ____exportValue in pairs(____export) do
51426
51849
  if ____exportKey ~= "default" then
51427
51850
  ____exports[____exportKey] = ____exportValue
@@ -51429,7 +51852,7 @@ do
51429
51852
  end
51430
51853
  end
51431
51854
  do
51432
- local ____export = require("src.features.saveDataManager.exports")
51855
+ local ____export = require("src.features.setHotkey")
51433
51856
  for ____exportKey, ____exportValue in pairs(____export) do
51434
51857
  if ____exportKey ~= "default" then
51435
51858
  ____exports[____exportKey] = ____exportValue
@@ -51684,6 +52107,14 @@ do
51684
52107
  end
51685
52108
  end
51686
52109
  end
52110
+ do
52111
+ local ____export = require("src.functions.emptyRoom")
52112
+ for ____exportKey, ____exportValue in pairs(____export) do
52113
+ if ____exportKey ~= "default" then
52114
+ ____exports[____exportKey] = ____exportValue
52115
+ end
52116
+ end
52117
+ end
51687
52118
  do
51688
52119
  local ____export = require("src.functions.entities")
51689
52120
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -51764,6 +52195,14 @@ do
51764
52195
  end
51765
52196
  end
51766
52197
  end
52198
+ do
52199
+ local ____export = require("src.functions.gridIndex")
52200
+ for ____exportKey, ____exportValue in pairs(____export) do
52201
+ if ____exportKey ~= "default" then
52202
+ ____exports[____exportKey] = ____exportValue
52203
+ end
52204
+ end
52205
+ end
51767
52206
  do
51768
52207
  local ____export = require("src.functions.hex")
51769
52208
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -52100,6 +52539,14 @@ do
52100
52539
  end
52101
52540
  end
52102
52541
  end
52542
+ do
52543
+ local ____export = require("src.functions.roomShapeWalls")
52544
+ for ____exportKey, ____exportValue in pairs(____export) do
52545
+ if ____exportKey ~= "default" then
52546
+ ____exports[____exportKey] = ____exportValue
52547
+ end
52548
+ end
52549
+ end
52103
52550
  do
52104
52551
  local ____export = require("src.functions.roomTransition")
52105
52552
  for ____exportKey, ____exportValue in pairs(____export) do