isaacscript-common 6.2.1 → 6.5.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 (109) hide show
  1. package/cachedClasses.d.ts +15 -0
  2. package/cachedClasses.lua +20 -0
  3. package/callbacks/reorderedCallbacks.d.ts +9 -0
  4. package/callbacks/reorderedCallbacks.lua +9 -0
  5. package/constants.d.ts +26 -4
  6. package/constants.lua +20 -4
  7. package/enums/CornerType.d.ts +6 -0
  8. package/enums/CornerType.lua +11 -0
  9. package/enums/DecorationVariant.d.ts +9 -0
  10. package/enums/DecorationVariant.lua +7 -0
  11. package/enums/RockAltType.d.ts +7 -0
  12. package/enums/RockAltType.lua +13 -0
  13. package/features/customGridEntity.d.ts +2 -2
  14. package/features/customGridEntity.lua +7 -5
  15. package/features/customStage/backdrop.d.ts +2 -0
  16. package/features/customStage/backdrop.lua +211 -0
  17. package/features/customStage/customStageConstants.d.ts +1 -0
  18. package/features/customStage/customStageConstants.lua +3 -0
  19. package/features/customStage/exports.d.ts +28 -0
  20. package/features/customStage/exports.lua +58 -1
  21. package/features/customStage/gridEntities.d.ts +18 -0
  22. package/features/customStage/gridEntities.lua +215 -0
  23. package/features/customStage/init.d.ts +2 -1
  24. package/features/customStage/init.lua +71 -9
  25. package/features/customStage/streakText.d.ts +2 -0
  26. package/features/customStage/streakText.lua +22 -0
  27. package/features/customStage/v.d.ts +10 -0
  28. package/features/customStage/v.lua +4 -0
  29. package/features/customStage/versusScreen.d.ts +3 -0
  30. package/features/customStage/versusScreen.lua +201 -0
  31. package/features/debugDisplay/debugDisplay.lua +2 -0
  32. package/features/debugDisplay/exports.d.ts +108 -0
  33. package/features/debugDisplay/exports.lua +145 -0
  34. package/features/debugDisplay/v.d.ts +2 -0
  35. package/features/debugDisplay/v.lua +9 -0
  36. package/features/deployJSONRoom.lua +6 -2
  37. package/features/extraConsoleCommands/init.lua +10 -1
  38. package/features/extraConsoleCommands/listCommands.d.ts +21 -6
  39. package/features/extraConsoleCommands/listCommands.lua +50 -19
  40. package/features/extraConsoleCommands/v.d.ts +1 -0
  41. package/features/extraConsoleCommands/v.lua +2 -1
  42. package/features/pause.d.ts +11 -0
  43. package/features/pause.lua +71 -0
  44. package/features/runNextRoom.d.ts +8 -0
  45. package/features/runNextRoom.lua +40 -0
  46. package/features/saveDataManager/exports.lua +2 -2
  47. package/features/saveDataManager/load.lua +3 -3
  48. package/features/saveDataManager/main.lua +3 -3
  49. package/features/saveDataManager/merge.lua +2 -2
  50. package/features/saveDataManager/save.lua +3 -3
  51. package/features/saveDataManager/{constants.d.ts → saveDataManagerConstants.d.ts} +0 -0
  52. package/features/saveDataManager/{constants.lua → saveDataManagerConstants.lua} +0 -0
  53. package/functions/chargeBar.lua +4 -6
  54. package/functions/color.d.ts +0 -2
  55. package/functions/color.lua +0 -4
  56. package/functions/deepCopy.lua +2 -2
  57. package/functions/direction.d.ts +1 -1
  58. package/functions/doors.d.ts +12 -7
  59. package/functions/doors.lua +14 -11
  60. package/functions/entity.d.ts +5 -0
  61. package/functions/entity.lua +13 -0
  62. package/functions/gridEntity.d.ts +39 -0
  63. package/functions/gridEntity.lua +83 -2
  64. package/functions/kColor.d.ts +0 -2
  65. package/functions/kColor.lua +0 -4
  66. package/functions/log.lua +2 -1
  67. package/functions/pickups.d.ts +9 -9
  68. package/functions/playerCenter.lua +4 -5
  69. package/functions/playerIndex.d.ts +3 -0
  70. package/functions/playerIndex.lua +3 -0
  71. package/functions/roomShape.d.ts +10 -4
  72. package/functions/roomShape.lua +15 -2
  73. package/functions/run.d.ts +7 -0
  74. package/functions/run.lua +16 -4
  75. package/functions/sprite.d.ts +1 -1
  76. package/functions/sprite.lua +1 -1
  77. package/functions/ui.d.ts +2 -0
  78. package/functions/ui.lua +8 -0
  79. package/functions/utils.d.ts +6 -4
  80. package/functions/utils.lua +6 -4
  81. package/index.d.ts +1 -1
  82. package/index.lua +2 -0
  83. package/initFeatures.lua +7 -1
  84. package/interfaces/Corner.d.ts +6 -0
  85. package/interfaces/Corner.lua +2 -0
  86. package/interfaces/CustomStageLua.d.ts +236 -63
  87. package/objects/backdropTypeToRockAltType.d.ts +6 -0
  88. package/objects/backdropTypeToRockAltType.lua +69 -0
  89. package/objects/bossNamePNGFileNames.d.ts +5 -0
  90. package/objects/bossNamePNGFileNames.lua +108 -0
  91. package/objects/bossPortraitPNGFileNames.d.ts +5 -0
  92. package/objects/bossPortraitPNGFileNames.lua +108 -0
  93. package/objects/colors.d.ts +15 -8
  94. package/objects/colors.lua +9 -2
  95. package/objects/playerNamePNGFileNames.d.ts +5 -0
  96. package/objects/playerNamePNGFileNames.lua +49 -0
  97. package/objects/playerPortraitPNGFileNames.d.ts +5 -0
  98. package/objects/playerPortraitPNGFileNames.lua +49 -0
  99. package/objects/roomShapeCorners.d.ts +6 -0
  100. package/objects/roomShapeCorners.lua +259 -0
  101. package/objects/roomShapeToBottomRightPosition.d.ts +1 -1
  102. package/objects/roomShapeToTopLeftPosition.d.ts +1 -1
  103. package/objects/versusScreenBackgroundColors.d.ts +5 -0
  104. package/objects/versusScreenBackgroundColors.lua +38 -0
  105. package/objects/versusScreenDirtSpotColors.d.ts +5 -0
  106. package/objects/versusScreenDirtSpotColors.lua +38 -0
  107. package/package.json +2 -2
  108. package/sets/narrowRoomShapesSet.d.ts +2 -0
  109. package/sets/narrowRoomShapesSet.lua +8 -0
@@ -0,0 +1,5 @@
1
+ import { StageID } from "isaac-typescript-definitions";
2
+ /** These values are taken from StageAPI. */
3
+ export declare const VERSUS_SCREEN_BACKGROUND_COLORS: {
4
+ readonly [key in StageID]: Color;
5
+ };
@@ -0,0 +1,38 @@
1
+ local ____exports = {}
2
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
+ local StageID = ____isaac_2Dtypescript_2Ddefinitions.StageID
4
+ --- We arbitrarily specify a default color equal to that of Basement.
5
+ local DEFAULT_COLOR = Color(26 / 255, 14 / 255, 12 / 255)
6
+ --- These values are taken from StageAPI.
7
+ ____exports.VERSUS_SCREEN_BACKGROUND_COLORS = {
8
+ [StageID.SPECIAL_ROOMS] = DEFAULT_COLOR,
9
+ [StageID.BASEMENT] = Color(26 / 255, 14 / 255, 12 / 255),
10
+ [StageID.CELLAR] = Color(26 / 255, 17 / 255, 13 / 255),
11
+ [StageID.BURNING_BASEMENT] = Color(28 / 255, 12 / 255, 10 / 255),
12
+ [StageID.CAVES] = Color(18 / 255, 13 / 255, 8 / 255),
13
+ [StageID.CATACOMBS] = Color(15 / 255, 10 / 255, 8 / 255),
14
+ [StageID.FLOODED_CAVES] = Color(21 / 255, 28 / 255, 35 / 255),
15
+ [StageID.DEPTHS] = Color(8 / 255, 8 / 255, 8 / 255),
16
+ [StageID.NECROPOLIS] = Color(10 / 255, 6 / 255, 6 / 255),
17
+ [StageID.DANK_DEPTHS] = Color(8 / 255, 8 / 255, 8 / 255),
18
+ [StageID.WOMB] = Color(27 / 255, 3 / 255, 3 / 255),
19
+ [StageID.UTERO] = Color(22 / 255, 6 / 255, 5 / 255),
20
+ [StageID.SCARRED_WOMB] = Color(42 / 255, 19 / 255, 10 / 255),
21
+ [StageID.BLUE_WOMB] = Color(26 / 255, 32 / 255, 40 / 255),
22
+ [StageID.SHEOL] = Color(6 / 255, 6 / 255, 6 / 255),
23
+ [StageID.CATHEDRAL] = Color(6 / 255, 13 / 255, 17 / 255),
24
+ [StageID.DARK_ROOM] = Color(9 / 255, 4 / 255, 3 / 255),
25
+ [StageID.CHEST] = Color(15 / 255, 9 / 255, 6 / 255),
26
+ [StageID.VOID] = Color(0, 0, 0),
27
+ [StageID.DOWNPOUR] = Color(29 / 255, 30 / 255, 32 / 255),
28
+ [StageID.DROSS] = Color(35 / 255, 35 / 255, 29 / 255),
29
+ [StageID.MINES] = Color(17 / 255, 15 / 255, 12 / 255),
30
+ [StageID.ASHPIT] = Color(12 / 255, 10 / 255, 10 / 255),
31
+ [StageID.MAUSOLEUM] = Color(14 / 255, 10 / 255, 14 / 255),
32
+ [StageID.GEHENNA] = Color(15 / 255, 4 / 255, 4 / 255),
33
+ [StageID.CORPSE] = Color(13 / 255, 14 / 255, 12 / 255),
34
+ [StageID.MORTIS] = Color(13 / 255, 14 / 255, 12 / 255),
35
+ [StageID.HOME] = DEFAULT_COLOR,
36
+ [StageID.BACKWARDS] = DEFAULT_COLOR
37
+ }
38
+ return ____exports
@@ -0,0 +1,5 @@
1
+ import { StageID } from "isaac-typescript-definitions";
2
+ /** These values are taken from StageAPI. */
3
+ export declare const VERSUS_SCREEN_DIRT_SPOT_COLORS: {
4
+ readonly [key in StageID]: Color;
5
+ };
@@ -0,0 +1,38 @@
1
+ local ____exports = {}
2
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
+ local StageID = ____isaac_2Dtypescript_2Ddefinitions.StageID
4
+ --- We arbitrarily specify a default color equal to that of Basement.
5
+ local DEFAULT_COLOR = Color(201 / 255, 114 / 255, 96 / 255)
6
+ --- These values are taken from StageAPI.
7
+ ____exports.VERSUS_SCREEN_DIRT_SPOT_COLORS = {
8
+ [StageID.SPECIAL_ROOMS] = DEFAULT_COLOR,
9
+ [StageID.BASEMENT] = Color(201 / 255, 114 / 255, 96 / 255),
10
+ [StageID.CELLAR] = Color(229 / 255, 157 / 255, 111 / 255),
11
+ [StageID.BURNING_BASEMENT] = Color(252 / 255, 108 / 255, 90 / 255),
12
+ [StageID.CAVES] = Color(167 / 255, 111 / 255, 75 / 255),
13
+ [StageID.CATACOMBS] = Color(135 / 255, 90 / 255, 80 / 255),
14
+ [StageID.FLOODED_CAVES] = Color(111 / 255, 147 / 255, 180 / 255),
15
+ [StageID.DEPTHS] = Color(70 / 255, 70 / 255, 72 / 255),
16
+ [StageID.NECROPOLIS] = Color(88 / 255, 67 / 255, 54 / 255),
17
+ [StageID.DANK_DEPTHS] = Color(70 / 255, 70 / 255, 72 / 255),
18
+ [StageID.WOMB] = Color(241 / 255, 28 / 255, 28 / 255),
19
+ [StageID.UTERO] = Color(199 / 255, 60 / 255, 48 / 255),
20
+ [StageID.SCARRED_WOMB] = Color(247 / 255, 152 / 255, 88 / 255),
21
+ [StageID.BLUE_WOMB] = Color(157 / 255, 209 / 255, 255 / 255),
22
+ [StageID.SHEOL] = Color(60 / 255, 54 / 255, 54 / 255),
23
+ [StageID.CATHEDRAL] = Color(44 / 255, 100 / 255, 111 / 255),
24
+ [StageID.DARK_ROOM] = Color(80 / 255, 38 / 255, 20 / 255),
25
+ [StageID.CHEST] = Color(175 / 255, 108 / 255, 72 / 255),
26
+ [StageID.VOID] = Color(70 / 255, 5 / 255, 5 / 255),
27
+ [StageID.DOWNPOUR] = Color(149 / 255, 157 / 255, 167 / 255),
28
+ [StageID.DROSS] = Color(179 / 255, 179 / 255, 143 / 255),
29
+ [StageID.MINES] = Color(93 / 255, 85 / 255, 72 / 255),
30
+ [StageID.ASHPIT] = Color(106 / 255, 102 / 255, 94 / 255),
31
+ [StageID.MAUSOLEUM] = Color(70 / 255, 59 / 255, 72 / 255),
32
+ [StageID.GEHENNA] = Color(59 / 255, 41 / 255, 41 / 255),
33
+ [StageID.CORPSE] = Color(124 / 255, 134 / 255, 111 / 255),
34
+ [StageID.MORTIS] = Color(124 / 255, 134 / 255, 111 / 255),
35
+ [StageID.HOME] = DEFAULT_COLOR,
36
+ [StageID.BACKWARDS] = DEFAULT_COLOR
37
+ }
38
+ return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "6.2.1",
3
+ "version": "6.5.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -22,6 +22,6 @@
22
22
  "main": "index",
23
23
  "types": "index.d.ts",
24
24
  "dependencies": {
25
- "isaac-typescript-definitions": "^3.0.18"
25
+ "isaac-typescript-definitions": "^3.0.24"
26
26
  }
27
27
  }
@@ -0,0 +1,2 @@
1
+ import { RoomShape } from "isaac-typescript-definitions";
2
+ export declare const NARROW_ROOM_SHAPES_SET: ReadonlySet<RoomShape>;
@@ -0,0 +1,8 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
+ local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
7
+ ____exports.NARROW_ROOM_SHAPES_SET = __TS__New(Set, {RoomShape.IH, RoomShape.IV, RoomShape.IIV, RoomShape.IIH})
8
+ return ____exports