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.
- package/cachedClasses.d.ts +15 -0
- package/cachedClasses.lua +20 -0
- package/callbacks/reorderedCallbacks.d.ts +9 -0
- package/callbacks/reorderedCallbacks.lua +9 -0
- package/constants.d.ts +26 -4
- package/constants.lua +20 -4
- package/enums/CornerType.d.ts +6 -0
- package/enums/CornerType.lua +11 -0
- package/enums/DecorationVariant.d.ts +9 -0
- package/enums/DecorationVariant.lua +7 -0
- package/enums/RockAltType.d.ts +7 -0
- package/enums/RockAltType.lua +13 -0
- package/features/customGridEntity.d.ts +2 -2
- package/features/customGridEntity.lua +7 -5
- package/features/customStage/backdrop.d.ts +2 -0
- package/features/customStage/backdrop.lua +211 -0
- package/features/customStage/customStageConstants.d.ts +1 -0
- package/features/customStage/customStageConstants.lua +3 -0
- package/features/customStage/exports.d.ts +28 -0
- package/features/customStage/exports.lua +58 -1
- package/features/customStage/gridEntities.d.ts +18 -0
- package/features/customStage/gridEntities.lua +215 -0
- package/features/customStage/init.d.ts +2 -1
- package/features/customStage/init.lua +71 -9
- package/features/customStage/streakText.d.ts +2 -0
- package/features/customStage/streakText.lua +22 -0
- package/features/customStage/v.d.ts +10 -0
- package/features/customStage/v.lua +4 -0
- package/features/customStage/versusScreen.d.ts +3 -0
- package/features/customStage/versusScreen.lua +201 -0
- package/features/debugDisplay/debugDisplay.lua +2 -0
- package/features/debugDisplay/exports.d.ts +108 -0
- package/features/debugDisplay/exports.lua +145 -0
- package/features/debugDisplay/v.d.ts +2 -0
- package/features/debugDisplay/v.lua +9 -0
- package/features/deployJSONRoom.lua +6 -2
- package/features/extraConsoleCommands/init.lua +10 -1
- package/features/extraConsoleCommands/listCommands.d.ts +21 -6
- package/features/extraConsoleCommands/listCommands.lua +50 -19
- package/features/extraConsoleCommands/v.d.ts +1 -0
- package/features/extraConsoleCommands/v.lua +2 -1
- package/features/pause.d.ts +11 -0
- package/features/pause.lua +71 -0
- package/features/runNextRoom.d.ts +8 -0
- package/features/runNextRoom.lua +40 -0
- package/features/saveDataManager/exports.lua +2 -2
- package/features/saveDataManager/load.lua +3 -3
- package/features/saveDataManager/main.lua +3 -3
- package/features/saveDataManager/merge.lua +2 -2
- package/features/saveDataManager/save.lua +3 -3
- package/features/saveDataManager/{constants.d.ts → saveDataManagerConstants.d.ts} +0 -0
- package/features/saveDataManager/{constants.lua → saveDataManagerConstants.lua} +0 -0
- package/functions/chargeBar.lua +4 -6
- package/functions/color.d.ts +0 -2
- package/functions/color.lua +0 -4
- package/functions/deepCopy.lua +2 -2
- package/functions/direction.d.ts +1 -1
- package/functions/doors.d.ts +12 -7
- package/functions/doors.lua +14 -11
- package/functions/entity.d.ts +5 -0
- package/functions/entity.lua +13 -0
- package/functions/gridEntity.d.ts +39 -0
- package/functions/gridEntity.lua +83 -2
- package/functions/kColor.d.ts +0 -2
- package/functions/kColor.lua +0 -4
- package/functions/log.lua +2 -1
- package/functions/pickups.d.ts +9 -9
- package/functions/playerCenter.lua +4 -5
- package/functions/playerIndex.d.ts +3 -0
- package/functions/playerIndex.lua +3 -0
- package/functions/roomShape.d.ts +10 -4
- package/functions/roomShape.lua +15 -2
- package/functions/run.d.ts +7 -0
- package/functions/run.lua +16 -4
- package/functions/sprite.d.ts +1 -1
- package/functions/sprite.lua +1 -1
- package/functions/ui.d.ts +2 -0
- package/functions/ui.lua +8 -0
- package/functions/utils.d.ts +6 -4
- package/functions/utils.lua +6 -4
- package/index.d.ts +1 -1
- package/index.lua +2 -0
- package/initFeatures.lua +7 -1
- package/interfaces/Corner.d.ts +6 -0
- package/interfaces/Corner.lua +2 -0
- package/interfaces/CustomStageLua.d.ts +236 -63
- package/objects/backdropTypeToRockAltType.d.ts +6 -0
- package/objects/backdropTypeToRockAltType.lua +69 -0
- package/objects/bossNamePNGFileNames.d.ts +5 -0
- package/objects/bossNamePNGFileNames.lua +108 -0
- package/objects/bossPortraitPNGFileNames.d.ts +5 -0
- package/objects/bossPortraitPNGFileNames.lua +108 -0
- package/objects/colors.d.ts +15 -8
- package/objects/colors.lua +9 -2
- package/objects/playerNamePNGFileNames.d.ts +5 -0
- package/objects/playerNamePNGFileNames.lua +49 -0
- package/objects/playerPortraitPNGFileNames.d.ts +5 -0
- package/objects/playerPortraitPNGFileNames.lua +49 -0
- package/objects/roomShapeCorners.d.ts +6 -0
- package/objects/roomShapeCorners.lua +259 -0
- package/objects/roomShapeToBottomRightPosition.d.ts +1 -1
- package/objects/roomShapeToTopLeftPosition.d.ts +1 -1
- package/objects/versusScreenBackgroundColors.d.ts +5 -0
- package/objects/versusScreenBackgroundColors.lua +38 -0
- package/objects/versusScreenDirtSpotColors.d.ts +5 -0
- package/objects/versusScreenDirtSpotColors.lua +38 -0
- package/package.json +2 -2
- package/sets/narrowRoomShapesSet.d.ts +2 -0
- package/sets/narrowRoomShapesSet.lua +8 -0
|
@@ -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,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.
|
|
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.
|
|
25
|
+
"isaac-typescript-definitions": "^3.0.24"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -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
|