isaacscript-common 6.19.0 → 6.20.2

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 (51) hide show
  1. package/dist/constants.d.ts +5 -0
  2. package/dist/constants.d.ts.map +1 -1
  3. package/dist/constants.lua +4 -0
  4. package/dist/features/customStage/exports.d.ts +6 -1
  5. package/dist/features/customStage/exports.d.ts.map +1 -1
  6. package/dist/features/customStage/exports.lua +14 -11
  7. package/dist/features/customTrapdoor/blackSprite.d.ts.map +1 -1
  8. package/dist/features/customTrapdoor/blackSprite.lua +1 -0
  9. package/dist/features/customTrapdoor/init.d.ts.map +1 -1
  10. package/dist/features/customTrapdoor/init.lua +10 -2
  11. package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts.map +1 -1
  12. package/dist/features/extraConsoleCommands/commandsSubroutines.lua +2 -1
  13. package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
  14. package/dist/features/extraConsoleCommands/listCommands.lua +2 -1
  15. package/dist/functions/curses.d.ts +3 -0
  16. package/dist/functions/curses.d.ts.map +1 -0
  17. package/dist/functions/curses.lua +11 -0
  18. package/dist/functions/dimensions.d.ts +12 -0
  19. package/dist/functions/dimensions.d.ts.map +1 -0
  20. package/dist/functions/dimensions.lua +35 -0
  21. package/dist/functions/level.d.ts.map +1 -1
  22. package/dist/functions/level.lua +8 -7
  23. package/dist/functions/levelGrid.d.ts +155 -0
  24. package/dist/functions/levelGrid.d.ts.map +1 -0
  25. package/dist/functions/levelGrid.lua +349 -0
  26. package/dist/functions/roomData.d.ts +6 -1
  27. package/dist/functions/roomData.d.ts.map +1 -1
  28. package/dist/functions/roomData.lua +6 -0
  29. package/dist/functions/roomGrid.d.ts +8 -0
  30. package/dist/functions/roomGrid.d.ts.map +1 -1
  31. package/dist/functions/rooms.d.ts +67 -68
  32. package/dist/functions/rooms.d.ts.map +1 -1
  33. package/dist/functions/rooms.lua +176 -203
  34. package/dist/index.d.ts +3 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.lua +24 -0
  37. package/package.json +2 -2
  38. package/src/constants.ts +8 -0
  39. package/src/features/customStage/exports.ts +25 -14
  40. package/src/features/customTrapdoor/blackSprite.ts +1 -0
  41. package/src/features/customTrapdoor/init.ts +7 -3
  42. package/src/features/extraConsoleCommands/commandsSubroutines.ts +2 -1
  43. package/src/features/extraConsoleCommands/listCommands.ts +2 -1
  44. package/src/functions/curses.ts +9 -0
  45. package/src/functions/dimensions.ts +41 -0
  46. package/src/functions/level.ts +7 -10
  47. package/src/functions/levelGrid.ts +468 -0
  48. package/src/functions/roomData.ts +13 -1
  49. package/src/functions/roomGrid.ts +9 -0
  50. package/src/functions/rooms.ts +161 -219
  51. package/src/index.ts +3 -0
@@ -1,4 +1,9 @@
1
1
  import { CollectibleType, ItemPoolType } from "isaac-typescript-definitions";
2
+ export declare const ALL_DISPLAY_FLAGS: BitFlags<number & {
3
+ readonly __bitFlagBrand: symbol;
4
+ } & {
5
+ readonly __displayFlagBrand: symbol;
6
+ }>;
2
7
  /**
3
8
  * The distance of the laser when Azazel does not have any range up items yet. For more info, see
4
9
  * the documentation for the `getAzazelBrimstoneDistance` function.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAEf,YAAY,EAEb,MAAM,8BAA8B,CAAC;AAItC;;;GAGG;AACH,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,oGAAoG;AACpG,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,gGAAgG;AAChG,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,kBAAkB,KAAK,CAAC;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eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAkB,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAsB,CAAC"}
@@ -1,12 +1,16 @@
1
1
  local ____exports = {}
2
2
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
3
  local Dimension = ____isaac_2Dtypescript_2Ddefinitions.Dimension
4
+ local DisplayFlag = ____isaac_2Dtypescript_2Ddefinitions.DisplayFlag
4
5
  local ItemPoolType = ____isaac_2Dtypescript_2Ddefinitions.ItemPoolType
5
6
  local TrinketSlot = ____isaac_2Dtypescript_2Ddefinitions.TrinketSlot
6
7
  local ____constantsFirstLast = require("constantsFirstLast")
7
8
  local NUM_NORMAL_PILL_COLORS = ____constantsFirstLast.NUM_NORMAL_PILL_COLORS
8
9
  local ____enums = require("functions.enums")
9
10
  local getEnumLength = ____enums.getEnumLength
11
+ local ____flag = require("functions.flag")
12
+ local addFlag = ____flag.addFlag
13
+ ____exports.ALL_DISPLAY_FLAGS = addFlag(nil, DisplayFlag.VISIBLE, DisplayFlag.SHADOW, DisplayFlag.SHOW_ICON)
10
14
  --- The distance of the laser when Azazel does not have any range up items yet. For more info, see
11
15
  -- the documentation for the `getAzazelBrimstoneDistance` function.
12
16
  ____exports.AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125
@@ -4,8 +4,13 @@ import { EntityType } from "isaac-typescript-definitions";
4
4
  *
5
5
  * Custom stages/levels must first be defined in the "tsconfig.json" file. See the documentation for
6
6
  * more details: https://isaacscript.github.io/main/custom-stages/
7
+ *
8
+ * @param name The name of the custom stage, corresponding to what is in the "tsconfig.json" file.
9
+ * @param _firstFloor Whether to go to the first floor or the second floor. For example, if you have
10
+ * a custom stage emulating Caves, then the first floor would be Caves 1, and the
11
+ * second floor would be Caves 2.
7
12
  */
8
- export declare function setCustomStage(name: string, verbose?: boolean): void;
13
+ export declare function setCustomStage(name: string, _firstFloor?: boolean, verbose?: boolean): void;
9
14
  export declare function setCustomStageDebug(): void;
10
15
  /**
11
16
  * By default, unknown bosses will be drawn on the boss "versus" screen as "???". If your custom
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAMX,MAAM,8BAA8B,CAAC;AAoBtC;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,UAAQ,GAAG,IAAI,CAwGlE;AAED,wBAAgB,mBAAmB,IAAI,IAAI,CAQ1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,GACtB,IAAI,CAGN"}
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAKX,MAAM,8BAA8B,CAAC;AAsBtC;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,WAAW,UAAO,EAClB,OAAO,UAAQ,GACd,IAAI,CAyGN;AAED,wBAAgB,mBAAmB,IAAI,IAAI,CAQ1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,GACtB,IAAI,CAGN"}
@@ -2,7 +2,6 @@ local ____lualib = require("lualib_bundle")
2
2
  local Map = ____lualib.Map
3
3
  local ____exports = {}
4
4
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
5
- local GridRoom = ____isaac_2Dtypescript_2Ddefinitions.GridRoom
6
5
  local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
7
6
  local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
8
7
  local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
@@ -18,12 +17,10 @@ local log = ____log.log
18
17
  local logError = ____log.logError
19
18
  local ____rng = require("functions.rng")
20
19
  local newRNG = ____rng.newRNG
21
- local ____roomData = require("functions.roomData")
22
- local getRoomData = ____roomData.getRoomData
23
20
  local ____rooms = require("functions.rooms")
24
- local getRooms = ____rooms.getRooms
21
+ local getRoomDataForTypeVariant = ____rooms.getRoomDataForTypeVariant
22
+ local getRoomsInGrid = ____rooms.getRoomsInGrid
25
23
  local ____stage = require("functions.stage")
26
- local getGotoCommand = ____stage.getGotoCommand
27
24
  local setStage = ____stage.setStage
28
25
  local ____customStageUtils = require("features.customStage.customStageUtils")
29
26
  local getRandomCustomStageRoom = ____customStageUtils.getRandomCustomStageRoom
@@ -40,13 +37,21 @@ local DEFAULT_BASE_STAGE_TYPE = StageType.ORIGINAL
40
37
  --
41
38
  -- Custom stages/levels must first be defined in the "tsconfig.json" file. See the documentation for
42
39
  -- more details: https://isaacscript.github.io/main/custom-stages/
43
- function ____exports.setCustomStage(self, name, verbose)
40
+ --
41
+ -- @param name The name of the custom stage, corresponding to what is in the "tsconfig.json" file.
42
+ -- @param _firstFloor Whether to go to the first floor or the second floor. For example, if you have
43
+ -- a custom stage emulating Caves, then the first floor would be Caves 1, and the
44
+ -- second floor would be Caves 2.
45
+ function ____exports.setCustomStage(self, name, _firstFloor, verbose)
46
+ if _firstFloor == nil then
47
+ _firstFloor = true
48
+ end
44
49
  if verbose == nil then
45
50
  verbose = false
46
51
  end
47
52
  local customStage = customStagesMap:get(name)
48
53
  if customStage == nil then
49
- error(("Failed to set the custom stage of \"" .. name) .. "\" because it was not found in the custom stages map. (Try restarting IsaacScript / recompiling the mod, and try again. If that does not work, you probably forgot to define it in your \"tsconfig.json\" file.) See the website for more details on how to set up custom stages.")
54
+ error(("Failed to set the custom stage of \"" .. name) .. "\" because it was not found in the custom stages map. (Try restarting IsaacScript / recompiling the mod / restarting the game, and try again. If that does not work, you probably forgot to define it in your \"tsconfig.json\" file.) See the website for more details on how to set up custom stages.")
50
55
  end
51
56
  local level = game:GetLevel()
52
57
  local startingRoomGridIndex = level:GetStartingRoomIndex()
@@ -57,7 +62,7 @@ function ____exports.setCustomStage(self, name, verbose)
57
62
  local baseStage = customStage.baseStage == nil and DEFAULT_BASE_STAGE or customStage.baseStage
58
63
  local baseStageType = customStage.baseStageType == nil and DEFAULT_BASE_STAGE_TYPE or customStage.baseStageType
59
64
  setStage(nil, baseStage, baseStageType)
60
- for ____, room in ipairs(getRooms(nil)) do
65
+ for ____, room in ipairs(getRoomsInGrid(nil)) do
61
66
  do
62
67
  if room.SafeGridIndex == startingRoomGridIndex then
63
68
  goto __continue4
@@ -88,9 +93,7 @@ function ____exports.setCustomStage(self, name, verbose)
88
93
  local randomRoom = getRandomCustomStageRoom(nil, roomsMetadata, rng, verbose)
89
94
  local newRoomData = customStageCachedRoomData:get(randomRoom.variant)
90
95
  if newRoomData == nil then
91
- local command = getGotoCommand(nil, roomType, randomRoom.variant)
92
- Isaac.ExecuteCommand(command)
93
- newRoomData = getRoomData(nil, GridRoom.DEBUG)
96
+ newRoomData = getRoomDataForTypeVariant(nil, roomType, randomRoom.variant, false)
94
97
  if newRoomData == nil then
95
98
  logError((("Failed to get the room data for room variant " .. tostring(randomRoom.variant)) .. " for custom stage: ") .. name)
96
99
  goto __continue4
@@ -1 +1 @@
1
- {"version":3,"file":"blackSprite.d.ts","sourceRoot":"","sources":["../../../src/features/customTrapdoor/blackSprite.ts"],"names":[],"mappings":"AAUA,wBAAgB,eAAe,IAAI,IAAI,CAWtC"}
1
+ {"version":3,"file":"blackSprite.d.ts","sourceRoot":"","sources":["../../../src/features/customTrapdoor/blackSprite.ts"],"names":[],"mappings":"AAUA,wBAAgB,eAAe,IAAI,IAAI,CAYtC"}
@@ -13,6 +13,7 @@ function ____exports.drawBlackSprite(self)
13
13
  if not blackSprite:IsLoaded() then
14
14
  blackSprite:Load("gfx/ui/boss/versusscreen.anm2", true)
15
15
  blackSprite:SetFrame("Scene", 0)
16
+ blackSprite.Scale = Vector(100, 100)
16
17
  end
17
18
  blackSprite:RenderLayer(0, VectorZero)
18
19
  end
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/features/customTrapdoor/init.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAwBxD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAUzD"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/features/customTrapdoor/init.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAyBxD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAUzD"}
@@ -20,6 +20,8 @@ local getAllPlayers = ____playerIndex.getAllPlayers
20
20
  local ____roomData = require("functions.roomData")
21
21
  local getRoomGridIndex = ____roomData.getRoomGridIndex
22
22
  local getRoomListIndex = ____roomData.getRoomListIndex
23
+ local ____rooms = require("functions.rooms")
24
+ local teleport = ____rooms.teleport
23
25
  local ____stage = require("functions.stage")
24
26
  local setStage = ____stage.setStage
25
27
  local ____types = require("functions.types")
@@ -66,7 +68,7 @@ function checkAllPlayersJumpComplete(self)
66
68
  local roomGridIndex = getRoomGridIndex(nil)
67
69
  v.run.state = StageTravelState.PIXELATION_TO_BLACK
68
70
  v.run.stateRenderFrame = renderFrameCount
69
- game:StartRoomTransition(roomGridIndex, Direction.NO_DIRECTION, RoomTransitionAnim.PIXELATION)
71
+ teleport(nil, roomGridIndex, Direction.NO_DIRECTION, RoomTransitionAnim.PIXELATION)
70
72
  end
71
73
  function checkPixelationToBlackComplete(self)
72
74
  if v.run.state ~= StageTravelState.PIXELATION_TO_BLACK or v.run.stateRenderFrame == nil then
@@ -83,7 +85,13 @@ function checkPixelationToBlackComplete(self)
83
85
  v.run.stateRenderFrame = renderFrameCount
84
86
  hud:SetVisible(false)
85
87
  goToCustomDestination(nil)
86
- game:StartRoomTransition(roomGridIndex, Direction.NO_DIRECTION, RoomTransitionAnim.PIXELATION)
88
+ teleport(
89
+ nil,
90
+ roomGridIndex,
91
+ Direction.NO_DIRECTION,
92
+ RoomTransitionAnim.PIXELATION,
93
+ true
94
+ )
87
95
  end
88
96
  function checkPausingOnBlackComplete(self)
89
97
  if v.run.state ~= StageTravelState.PAUSING_ON_BLACK or v.run.stateRenderFrame == nil then
@@ -1 +1 @@
1
- {"version":3,"file":"commandsSubroutines.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/commandsSubroutines.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAIT,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAepD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CAcrE;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAqBlD;AAED,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,wBAAwB,EAAE,OAAO,GAChC,IAAI,CAYN;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI,CAY5E;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,CAgBrE;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAUjE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAevD"}
1
+ {"version":3,"file":"commandsSubroutines.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/commandsSubroutines.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAIT,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAgBpD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CAcrE;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAqBlD;AAED,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,wBAAwB,EAAE,OAAO,GAChC,IAAI,CAYN;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,IAAI,CAY5E;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,CAgBrE;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAUjE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAevD"}
@@ -11,6 +11,8 @@ local ____direction = require("functions.direction")
11
11
  local directionToVector = ____direction.directionToVector
12
12
  local ____gridEntities = require("functions.gridEntities")
13
13
  local spawnGridEntityWithVariant = ____gridEntities.spawnGridEntityWithVariant
14
+ local ____levelGrid = require("functions.levelGrid")
15
+ local getRoomGridIndexesForType = ____levelGrid.getRoomGridIndexesForType
14
16
  local ____log = require("functions.log")
15
17
  local logAllEntities = ____log.logAllEntities
16
18
  local logAllGridEntities = ____log.logAllGridEntities
@@ -21,7 +23,6 @@ local getRoomData = ____roomData.getRoomData
21
23
  local getRoomDescriptor = ____roomData.getRoomDescriptor
22
24
  local ____rooms = require("functions.rooms")
23
25
  local changeRoom = ____rooms.changeRoom
24
- local getRoomGridIndexesForType = ____rooms.getRoomGridIndexesForType
25
26
  local ____utils = require("functions.utils")
26
27
  local printConsole = ____utils.printConsole
27
28
  local ____roomTypeNames = require("objects.roomTypeNames")
@@ -1 +1 @@
1
- {"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"AA0GA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAcjD;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAc1C;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,iDAAiD;AACjD,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;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,IAAI,CAQ1C;AAED,6EAA6E;AAC7E,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED;;;GAGG;AACH,wBAAgB,IAAI,IAAI,IAAI,CAG3B;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkBvD;AAED,gEAAgE;AAChE,wBAAgB,KAAK,IAAI,IAAI,CAY5B;AAED,+CAA+C;AAC/C,wBAAgB,YAAY,IAAI,IAAI,CAInC;AAED,4CAA4C;AAC5C,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED;;;GAGG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAQ5B;AAED,wCAAwC;AACxC,wBAAgB,KAAK,IAAI,IAAI,CAE5B;AAED,6CAA6C;AAC7C,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
@@ -52,6 +52,8 @@ local ____flag = require("functions.flag")
52
52
  local addFlag = ____flag.addFlag
53
53
  local ____gridEntities = require("functions.gridEntities")
54
54
  local spawnGridEntity = ____gridEntities.spawnGridEntity
55
+ local ____levelGrid = require("functions.levelGrid")
56
+ local getRoomGridIndexesForType = ____levelGrid.getRoomGridIndexesForType
55
57
  local ____log = require("functions.log")
56
58
  local logPlayerEffects = ____log.logPlayerEffects
57
59
  local logRoom = ____log.logRoom
@@ -78,7 +80,6 @@ local ____roomGrid = require("functions.roomGrid")
78
80
  local gridCoordinatesToWorldPosition = ____roomGrid.gridCoordinatesToWorldPosition
79
81
  local ____rooms = require("functions.rooms")
80
82
  local changeRoom = ____rooms.changeRoom
81
- local getRoomGridIndexesForType = ____rooms.getRoomGridIndexesForType
82
83
  local ____run = require("functions.run")
83
84
  local onSetSeed = ____run.onSetSeed
84
85
  local restart = ____run.restart
@@ -0,0 +1,3 @@
1
+ import { LevelCurse } from "isaac-typescript-definitions";
2
+ export declare function hasCurse(curse: LevelCurse): boolean;
3
+ //# sourceMappingURL=curses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"curses.d.ts","sourceRoot":"","sources":["../../src/functions/curses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI1D,wBAAgB,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAInD"}
@@ -0,0 +1,11 @@
1
+ local ____exports = {}
2
+ local ____cachedClasses = require("cachedClasses")
3
+ local game = ____cachedClasses.game
4
+ local ____flag = require("functions.flag")
5
+ local hasFlag = ____flag.hasFlag
6
+ function ____exports.hasCurse(self, curse)
7
+ local level = game:GetLevel()
8
+ local curses = level:GetCurses()
9
+ return hasFlag(nil, curses, curse)
10
+ end
11
+ return ____exports
@@ -0,0 +1,12 @@
1
+ import { Dimension } from "isaac-typescript-definitions";
2
+ /**
3
+ * Helper function to get an array with every valid `Dimension` (not including `Dimension.CURRENT`).
4
+ */
5
+ export declare function getAllDimensions(): Dimension[];
6
+ /**
7
+ * Helper function to get the current dimension. Most of the time, this will be `Dimension.MAIN`,
8
+ * but it can change if e.g. the player is in the mirror world of Downpour/Dross.
9
+ */
10
+ export declare function getDimension(): Dimension;
11
+ export declare function inDimension(dimension: Dimension): boolean;
12
+ //# sourceMappingURL=dimensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../src/functions/dimensions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAMzD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,SAAS,EAAE,CAE9C;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,SAAS,CAmBxC;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAEzD"}
@@ -0,0 +1,35 @@
1
+ local ____exports = {}
2
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
+ local Dimension = ____isaac_2Dtypescript_2Ddefinitions.Dimension
4
+ local ____cachedClasses = require("cachedClasses")
5
+ local game = ____cachedClasses.game
6
+ local ____constants = require("constants")
7
+ local NUM_DIMENSIONS = ____constants.NUM_DIMENSIONS
8
+ local ____roomData = require("functions.roomData")
9
+ local getRoomGridIndex = ____roomData.getRoomGridIndex
10
+ local ____utils = require("functions.utils")
11
+ local erange = ____utils.erange
12
+ --- Helper function to get an array with every valid `Dimension` (not including `Dimension.CURRENT`).
13
+ function ____exports.getAllDimensions(self)
14
+ return erange(nil, NUM_DIMENSIONS)
15
+ end
16
+ --- Helper function to get the current dimension. Most of the time, this will be `Dimension.MAIN`,
17
+ -- but it can change if e.g. the player is in the mirror world of Downpour/Dross.
18
+ function ____exports.getDimension(self)
19
+ local level = game:GetLevel()
20
+ local roomGridIndex = getRoomGridIndex(nil)
21
+ local roomDescription = level:GetRoomByIdx(roomGridIndex, Dimension.CURRENT)
22
+ local currentRoomHash = GetPtrHash(roomDescription)
23
+ for ____, dimension in ipairs(____exports.getAllDimensions(nil)) do
24
+ local dimensionRoomDescription = level:GetRoomByIdx(roomGridIndex, dimension)
25
+ local dimensionRoomHash = GetPtrHash(dimensionRoomDescription)
26
+ if dimensionRoomHash == currentRoomHash then
27
+ return dimension
28
+ end
29
+ end
30
+ error("Failed to get the current dimension.")
31
+ end
32
+ function ____exports.inDimension(self, dimension)
33
+ return dimension == ____exports.getDimension(nil)
34
+ end
35
+ return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"level.d.ts","sourceRoot":"","sources":["../../src/functions/level.ts"],"names":[],"mappings":"AASA,wBAAgB,qBAAqB,IAAI,IAAI,CAqB5C"}
1
+ {"version":3,"file":"level.d.ts","sourceRoot":"","sources":["../../src/functions/level.ts"],"names":[],"mappings":"AAMA,wBAAgB,qBAAqB,IAAI,IAAI,CAqB5C"}
@@ -5,18 +5,19 @@ local ____cachedClasses = require("cachedClasses")
5
5
  local game = ____cachedClasses.game
6
6
  local ____enums = require("functions.enums")
7
7
  local getEnumValues = ____enums.getEnumValues
8
+ local ____levelGrid = require("functions.levelGrid")
9
+ local isDoorSlotValidAtGridIndexForRedRoom = ____levelGrid.isDoorSlotValidAtGridIndexForRedRoom
8
10
  local ____rooms = require("functions.rooms")
9
11
  local getNumRooms = ____rooms.getNumRooms
10
- local getRooms = ____rooms.getRooms
11
- local isDoorSlotValidAtGridIndexForRedRoom = ____rooms.isDoorSlotValidAtGridIndexForRedRoom
12
+ local getRoomsInGrid = ____rooms.getRoomsInGrid
12
13
  function ____exports.fillLevelWithRedRooms(self)
13
14
  local level = game:GetLevel()
14
- local numRooms
15
+ local numRoomsInGrid
15
16
  repeat
16
17
  do
17
- local rooms = getRooms(nil)
18
- numRooms = #rooms
19
- for ____, roomDescriptor in ipairs(rooms) do
18
+ local roomsInGrid = getRoomsInGrid(nil)
19
+ numRoomsInGrid = #roomsInGrid
20
+ for ____, roomDescriptor in ipairs(roomsInGrid) do
20
21
  for ____, doorSlot in ipairs(getEnumValues(nil, DoorSlot)) do
21
22
  if isDoorSlotValidAtGridIndexForRedRoom(nil, doorSlot, roomDescriptor.GridIndex) then
22
23
  level:MakeRedRoomDoor(roomDescriptor.GridIndex, doorSlot)
@@ -24,6 +25,6 @@ function ____exports.fillLevelWithRedRooms(self)
24
25
  end
25
26
  end
26
27
  end
27
- until not (numRooms ~= getNumRooms(nil))
28
+ until not (numRoomsInGrid ~= getNumRooms(nil))
28
29
  end
29
30
  return ____exports
@@ -0,0 +1,155 @@
1
+ /**
2
+ * These functions have to do with the room grid index for the level (i.e. the position that the
3
+ * room is on the grid that represents the map for the level).
4
+ *
5
+ * For functions having to do with the grid index inside of the room, see the "Room Grid" functions.
6
+ *
7
+ * @module
8
+ */
9
+ import { DoorSlot, RoomShape, RoomType } from "isaac-typescript-definitions";
10
+ /**
11
+ * Helper function to get the room grid indexes that are adjacent to a given room grid index.
12
+ *
13
+ * Adjacent room grid indexes that are outside of the grid will not be included in the returned
14
+ * array.
15
+ *
16
+ * If a room grid index is provided that is outside of the grid, then an empty array will be
17
+ * returned.
18
+ *
19
+ * Note that this function does not take the shape of the room into account; it only looks at a
20
+ * single room grid index.
21
+ *
22
+ * @param roomGridIndex Optional. Default is the current room index.
23
+ */
24
+ export declare function getAdjacentRoomGridIndexes(roomGridIndex?: int): int[];
25
+ /** Helper function to get the room safe grid index for every room on the entire floor. */
26
+ export declare function getAllRoomGridIndexes(): int[];
27
+ /**
28
+ * Helper function to pick a random valid spot on the floor to insert a brand new room. Note that
29
+ * some floors will not have any valid spots. If this is the case, this function will return
30
+ * undefined.
31
+ *
32
+ * @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
33
+ * `RNG.Next` method will be called. Default is `getRandomSeed()`.
34
+ * @returns Either a tuple of adjacent room grid index, `DoorSlot`, and new room grid index, or
35
+ * undefined.
36
+ */
37
+ export declare function getNewRoomCandidate(seedOrRNG?: Seed | RNG): [adjacentRoomGridIndex: int, doorSlot: DoorSlot, newRoomGridIndex: int] | undefined;
38
+ /**
39
+ * Helper function to iterate through the possible doors for a room and see if any of them would be
40
+ * a valid spot to insert a brand new room on the floor.
41
+ *
42
+ * @param roomGridIndex Optional. Default is the current room index.
43
+ * @returns A array of tuples of `DoorSlot` and room grid index.
44
+ */
45
+ export declare function getNewRoomCandidatesBesideRoom(roomGridIndex?: int): Array<[doorSlot: DoorSlot, roomGridIndex: int]>;
46
+ /**
47
+ * Helper function to search through all of the rooms on the floor for a spot to insert a brand new
48
+ * room.
49
+ *
50
+ * @returns A array of tuples of adjacent room grid index, `DoorSlot`, and new room grid index.
51
+ */
52
+ export declare function getNewRoomCandidatesForLevel(): Array<[
53
+ adjacentRoomGridIndex: int,
54
+ doorSlot: DoorSlot,
55
+ newRoomGridIndex: int
56
+ ]>;
57
+ /**
58
+ * Helper function to get an array of all of the safe grid indexes for rooms that match the
59
+ * specified room type.
60
+ *
61
+ * This function only searches through rooms in the current dimension.
62
+ *
63
+ * This function is variadic, meaning that you can specify N arguments to get the combined grid
64
+ * indexes for N room types.
65
+ */
66
+ export declare function getRoomGridIndexesForType(...roomTypes: RoomType[]): int[];
67
+ /**
68
+ * Helper function to get the grid indexes of all the rooms connected to the given room index,
69
+ * taking the shape of the room into account. (This will only include rooms with valid data.)
70
+ *
71
+ * Returns an empty map if the provided room grid index is out of bounds or has no associated room
72
+ * data.
73
+ *
74
+ * @param roomGridIndex Optional. Default is the current room index.
75
+ * @returns A map of `DoorSlot` to the corresponding room grid index.
76
+ */
77
+ export declare function getRoomNeighbors(roomGridIndex?: int): Map<DoorSlot, int>;
78
+ /**
79
+ * Helper function to get the room grid index delta that each hypothetical door in a given room
80
+ * shape would go to.
81
+ *
82
+ * This is used by the `getRoomShapeNeighborGridIndexes` function.
83
+ *
84
+ * @returns A map of `DoorSlot` to the corresponding room grid index delta.
85
+ */
86
+ export declare function getRoomShapeNeighborGridIndexDeltas(roomShape: RoomShape): Map<DoorSlot, int>;
87
+ /**
88
+ * Helper function to get the room grid index that each hypothetical door in a given room shape
89
+ * would go to. (This will not include room grid indexes that are outside of the grid.)
90
+ *
91
+ * @param safeRoomGridIndex This must be the room safe grid index (i.e. the top-left room grid index
92
+ * for the respective room).
93
+ * @param roomShape The shape of the room.
94
+ * @returns A map of `DoorSlot` to the corresponding room grid index.
95
+ */
96
+ export declare function getRoomShapeNeighborGridIndexes(safeRoomGridIndex: int, roomShape: RoomShape): Map<DoorSlot, int>;
97
+ /**
98
+ * Helper function to check if the given room grid index is a dead end. Specifically, this is
99
+ * defined as having only one adjacent room that exists.
100
+ *
101
+ * Note that this function does not take the shape of the room into account; it only looks at a
102
+ * single room grid index.
103
+ *
104
+ * This function does not care if the given room grid index actually exists, so you can use it to
105
+ * check if a hypothetical room would be a dead end.
106
+ *
107
+ * @param roomGridIndex Optional. Default is the current room index.
108
+ */
109
+ export declare function isDeadEnd(roomGridIndex?: int): boolean;
110
+ export declare function isDoorSlotValidAtGridIndex(doorSlot: DoorSlot, roomGridIndex: int): boolean;
111
+ export declare function isDoorSlotValidAtGridIndexForRedRoom(doorSlot: DoorSlot, roomGridIndex: int): boolean;
112
+ /**
113
+ * Helper function to detect if the provided room was created by the Red Key item. Under the hood,
114
+ * this checks for the `RoomDescriptorFlag.FLAG_RED_ROOM` flag.
115
+ *
116
+ * @param roomGridIndex Optional. Default is the current room index.
117
+ */
118
+ export declare function isRedKeyRoom(roomGridIndex?: int): boolean;
119
+ /**
120
+ * Helper function to determine if a given room grid index is inside of the normal 13x13 level grid.
121
+ *
122
+ * For example, Devil Rooms and the Mega Satan room are not considered to be inside the grid.
123
+ */
124
+ export declare function isRoomGridIndexInBounds(roomGridIndex: int): boolean;
125
+ /**
126
+ * Helper function to generate a new room on the floor at a valid dead end attached to a normal
127
+ * room.
128
+ *
129
+ * Under the hood, this function uses the `Level.MakeRedRoomDoor` method to create the room.
130
+ *
131
+ * The newly created room will have data corresponding to the game's randomly generated red room. If
132
+ * you want to modify this, use the `setRoomData` helper function.
133
+ *
134
+ * @returns The room grid index of the new room or undefined if the floor had no valid dead ends to
135
+ * place a room.
136
+ */
137
+ export declare function newRoom(): int | undefined;
138
+ /**
139
+ * Helper function to check if a room exists at the given room grid index. (A room will exist if it
140
+ * has non-undefined data in the room descriptor.)
141
+ */
142
+ export declare function roomExists(roomGridIndex: int): boolean;
143
+ /**
144
+ * Helper function to get the coordinates of a given grid index. The floor is represented by a 13x13
145
+ * grid.
146
+ *
147
+ * - Since the starting room is in the center, the starting room grid index of 84 is equal to
148
+ * coordinates of (6, 6).
149
+ * - The top-left grid index of 0 is equal to coordinates of: (12, 0)
150
+ * - The top-right grid index of 12 is equal to coordinates of: (0, 0)
151
+ * - The bottom-left grid index of 156 is equal to coordinates of: (0, 12)
152
+ * - The bottom-right grid index of 168 is equal to coordinates of: (12, 12)
153
+ */
154
+ export declare function roomGridIndexToXY(roomGridIndex: int): [x: int, y: int];
155
+ //# sourceMappingURL=levelGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"levelGrid.d.ts","sourceRoot":"","sources":["../../src/functions/levelGrid.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEL,QAAQ,EAKR,SAAS,EACT,QAAQ,EACT,MAAM,8BAA8B,CAAC;AA6BtC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0BAA0B,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,EAAE,CAerE;AAED,0FAA0F;AAC1F,wBAAgB,qBAAqB,IAAI,GAAG,EAAE,CAG7C;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,GAAE,IAAI,GAAG,GAAqB,GAErC,CAAC,qBAAqB,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,GAAG,CAAC,GACvE,SAAS,CAOZ;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,aAAa,CAAC,EAAE,GAAG,GAClB,KAAK,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC,CA+CjD;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,IAAI,KAAK,CACnD;IAAC,qBAAqB,EAAE,GAAG;IAAE,QAAQ,EAAE,QAAQ;IAAE,gBAAgB,EAAE,GAAG;CAAC,CACxE,CAsBA;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,E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