isaacscript 2.10.0 → 2.12.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.
@@ -6,5 +6,6 @@
6
6
  "dbaeumer.vscode-eslint", // The TypeScript linter
7
7
  "streetsidesoftware.code-spell-checker", // A spell-checker extension based on cspell
8
8
  "typescript-to-lua.vscode-typescript-to-lua", // The TypeScriptToLua extension
9
+ "redhat.vscode-xml", // The XML language server
9
10
  ],
10
11
  }
@@ -7,3 +7,11 @@ pull.rebase=true
7
7
 
8
8
  # Convert all files to use "\n" line endings.
9
9
  * text=auto eol=lf
10
+
11
+ # Specify the file type for VSCode/TypeScript files.
12
+ .vscode/extensions.json linguist-language=JSON-with-Comments
13
+ .vscode/settings.json linguist-language=JSON-with-Comments
14
+ api-extractor.json linguist-language=JSON-with-Comments
15
+ tsconfig.*.json linguist-language=JSON-with-Comments
16
+ tsconfig.json linguist-language=JSON-with-Comments
17
+ typedoc.json linguist-language=JSON-with-Comments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript",
3
- "version": "2.10.0",
3
+ "version": "2.12.0",
4
4
  "description": "A command line tool for managing Isaac mods written in TypeScript.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -33,10 +33,11 @@
33
33
  "figlet": "^1.5.2",
34
34
  "fs-extra": "^10.1.0",
35
35
  "git-dirty": "^1.0.2",
36
+ "glob": "^8.0.3",
36
37
  "isaacscript-tsconfig": "^2.0.0",
37
38
  "jsonc-parser": "^3.1.0",
38
39
  "moment": "^2.29.4",
39
- "npm-check-updates": "^16.0.1",
40
+ "npm-check-updates": "^16.0.5",
40
41
  "prompt": "^1.3.0",
41
42
  "source-map-support": "^0.5.21",
42
43
  "sync-directory": "^5.1.7",
@@ -2,9 +2,86 @@
2
2
  "$ref": "#/definitions/IsaacScriptTSConfig",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "definitions": {
5
+ "CustomStageBossPoolEntry": {
6
+ "additionalProperties": false,
7
+ "description": "An object that represents a possible boss for a custom stage. This can be for a vanilla boss or a custom boss.",
8
+ "properties": {
9
+ "name": {
10
+ "description": "The name of the boss. This should correspond to the entry for the boss in the \"entities2.xml\" file.",
11
+ "type": "string"
12
+ },
13
+ "subType": {
14
+ "description": "The arbitrary sub-type chosen for this boss, ranging between 1 and 999. You must set the boss rooms for this boss to this sub-type in Basement Renovator by right-clicking on the room on the right-hand-side.\n\nIt does not matter if the arbitrary sub-type overlaps with any of the vanilla `BossID` values (e.g. vanilla Boss Room sub-types in \"00.special_rooms.stb\"). It also does not matter if this value overlaps with the values from other mods.\n\nIf you are creating an entry for a vanilla boss, it is recommended that you match the sub-type with the corresponding vanilla `BossID` value. This will make things a bit easier to understand for people working on your mod, but is not a hard requirement.",
15
+ "maximum": 999,
16
+ "minimum": 1,
17
+ "type": "number"
18
+ },
19
+ "versusScreen": {
20
+ "additionalProperties": false,
21
+ "description": "Optional. A collection of sprites used for the boss on the \"versus\" screen.",
22
+ "properties": {
23
+ "namePNGPath": {
24
+ "description": "Mandatory. The full path to the spritesheet that contains the graphics of the name of the boss that will be displayed on the top of the boss \"versus\" screen.\n\nIf not specified, a sprite showing \"???\" will be used.",
25
+ "type": "string"
26
+ },
27
+ "portraitPNGPath": {
28
+ "description": "Mandatory. The full path to the spritesheet that contains the portrait of the boss that will be displayed on the right side of the boss \"versus\" screen.\n\nIf not specified, a sprite showing \"???\" will be used.",
29
+ "type": "string"
30
+ }
31
+ },
32
+ "required": ["namePNGPath", "portraitPNGPath"],
33
+ "type": "object"
34
+ },
35
+ "weight": {
36
+ "description": "The weight of the boss. This is used when randomly selecting which boss to use for the floor. For example, use a value of 1 if you want this boss to be equally likely as any other boss, 0.5 if you want it to be half as likely, 2 if you want it to be twice as likely, and so on.",
37
+ "type": "number"
38
+ }
39
+ },
40
+ "required": ["name", "subType", "weight"],
41
+ "type": "object"
42
+ },
43
+ "CustomStageShadow": {
44
+ "additionalProperties": false,
45
+ "description": "A description of a custom stage shadow. (In this context, \"shadows\" are the outlines from things on the roof. For example, in Basement, a shadow of a sideways V is used, among others.)",
46
+ "properties": {
47
+ "color": {
48
+ "additionalProperties": false,
49
+ "description": "Optional. An object representing the color used for the shadow.\n\nIf not specified, an object of `{ r: 0, g: 0, b: 0, a: 0.25 }` will be used (which corresponds to 75% faded black).",
50
+ "properties": {
51
+ "a": {
52
+ "maximum": 1,
53
+ "minimum": 0,
54
+ "type": "number"
55
+ },
56
+ "b": {
57
+ "maximum": 1,
58
+ "minimum": 0,
59
+ "type": "number"
60
+ },
61
+ "g": {
62
+ "maximum": 1,
63
+ "minimum": 0,
64
+ "type": "number"
65
+ },
66
+ "r": {
67
+ "maximum": 1,
68
+ "minimum": 0,
69
+ "type": "number"
70
+ }
71
+ },
72
+ "required": ["r", "g", "b", "a"],
73
+ "type": "object"
74
+ },
75
+ "pngPath": {
76
+ "description": "The full path to the shadow overlay PNG file.\n\nFor an example of a vanilla shadow overlay, see: `resources/gfx/overlays/basement/1x1_overlay_1.png`",
77
+ "type": "string"
78
+ }
79
+ },
80
+ "required": ["pngPath"],
81
+ "type": "object"
82
+ },
5
83
  "CustomStageTSConfig": {
6
84
  "additionalProperties": false,
7
- "description": "This is the format of a custom stage in the \"isaacscript\" section of the \"tsconfig.json\" file.\n\nThe contents of this interface are used to create a \"tsconfig-isaacscript-section-schema.json\" schema with the \"ts-json-schema-generator\" library.\n\nThe contents of this interface are validated at run-time against the schema using the Ajv library.\n\nThe `CustomStageLua` interface extends this, adding room metadata.",
8
85
  "properties": {
9
86
  "backdropPNGPaths": {
10
87
  "additionalProperties": false,
@@ -43,15 +120,26 @@
43
120
  "type": "object"
44
121
  },
45
122
  "baseStage": {
46
- "description": "Optional. An integer between 2 and 13, corresponding to the `LevelStage` enum. This is the number of the stage that will be warped to and used as a basis for the stage by the level generation algorithm.\n\n(It is not possible to use Basement 1 as a base stage due to conflicts with the `Game.SetStage` method.)\n\nIf not specified, `LevelStage.BASEMENT_2` (2) will be used.",
123
+ "description": "Optional. An integer between 2 and 13, corresponding to the `LevelStage` enum. This is the number of the stage that will be warped to and used as a basis for the stage by the level generation algorithm.\n\nFor example, if you wanted to have a custom stage with a small amount of rooms per floor, then you should choose 2 as a base. (This would copy the number of rooms that would appear in Basement 2.) And if you wanted to have a custom stage with the maximum amount of rooms, then you should choose 13 as a base. (This would copy the number of rooms that would appear on The Void.)\n\nIt is not possible to use Basement 1 as a base stage due to conflicts with the `Game.SetStage` method.\n\nIf not specified, `LevelStage.BASEMENT_2` (2) will be used.",
124
+ "maximum": 13,
125
+ "minimum": 2,
47
126
  "type": "number"
48
127
  },
49
128
  "baseStageType": {
50
129
  "description": "Optional. An integer between 0 and 5, corresponding to the `StageType` enum. This is the number of the stage type that will be warped to and used as a basis for the stage by the level generation algorithm.\n\nIf not specified, `StageType.ORIGINAL` (0) will be used.",
130
+ "maximum": 5,
131
+ "minimum": 0,
51
132
  "type": "number"
52
133
  },
134
+ "bossPool": {
135
+ "description": "Optional. An array containing the bosses that should be used for the stage. This can include both vanilla bosses and modded bosses.",
136
+ "items": {
137
+ "$ref": "#/definitions/CustomStageBossPoolEntry"
138
+ },
139
+ "type": "array"
140
+ },
53
141
  "decorationsPNGPath": {
54
- "description": "Optional. The full path to the spritesheet that contains the graphics of the decorations for the floor.\n\nIf not specified, the vanilla Basement decorations spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\props_01_basement.png`",
142
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the decorations for the floor.\n\nIf not specified, the vanilla Basement decorations spritesheet will be used. For reference, this is located at: `resources/gfx/grid/props_01_basement.png`",
55
143
  "type": "string"
56
144
  },
57
145
  "doorPNGPaths": {
@@ -59,51 +147,51 @@
59
147
  "description": "Optional. A collection of paths that contain graphics for the doors of the floor. If not specified, the doors for Basement will be used.",
60
148
  "properties": {
61
149
  "angelRoom": {
62
- "description": "Optional. The full path to the spritesheet that contains the graphics of the Angel Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_07_holyroomdoor.png`",
150
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the Angel Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_07_holyroomdoor.png`",
63
151
  "type": "string"
64
152
  },
65
153
  "arcade": {
66
- "description": "Optional. The full path to the spritesheet that contains the graphics of the arcade doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_05_arcaderoomdoor.png`",
154
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the arcade doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_05_arcaderoomdoor.png`",
67
155
  "type": "string"
68
156
  },
69
157
  "bossChallengeRoom": {
70
- "description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Challenge Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_09_bossambushroomdoor.png`",
158
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Challenge Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_09_bossambushroomdoor.png`",
71
159
  "type": "string"
72
160
  },
73
161
  "bossRoom": {
74
- "description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_10_bossroomdoor.png`",
162
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_10_bossroomdoor.png`",
75
163
  "type": "string"
76
164
  },
77
165
  "bossRush": {
78
- "description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Rush doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_15_bossrushdoor.png`",
166
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the Boss Rush doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_15_bossrushdoor.png`",
79
167
  "type": "string"
80
168
  },
81
169
  "chestRoom": {
82
- "description": "Optional. The full path to the spritesheet that contains the graphics of the Chest Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_02b_chestroomdoor.png`",
170
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the Chest Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_02b_chestroomdoor.png`",
83
171
  "type": "string"
84
172
  },
85
173
  "curseRoom": {
86
- "description": "Optional. The full path to the spritesheet that contains the graphics of the Curse Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_04_selfsacrificeroomdoor.png`",
174
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the Curse Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_04_selfsacrificeroomdoor.png`",
87
175
  "type": "string"
88
176
  },
89
177
  "devilRoom": {
90
- "description": "Optional. The full path to the spritesheet that contains the graphics of the Devil Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_07_devilroomdoor.png`",
178
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the Devil Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_07_devilroomdoor.png`",
91
179
  "type": "string"
92
180
  },
93
181
  "normal": {
94
- "description": "Optional. The full path to the spritesheet that contains the graphics of the normal doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_01_normaldoor.png`",
182
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the normal doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_01_normaldoor.png`",
95
183
  "type": "string"
96
184
  },
97
185
  "normalChallengeRoom": {
98
- "description": "Optional. The full path to the spritesheet that contains the graphics of the normal Challenge Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_03_ambushroomdoor.png`",
186
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the normal Challenge Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_03_ambushroomdoor.png`",
99
187
  "type": "string"
100
188
  },
101
189
  "secretRoom": {
102
- "description": "Optional. The full path to the spritesheet that contains the graphics of the Secret Room and Super Secret Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_08_holeinwall.png`",
190
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the Secret Room and Super Secret Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_08_holeinwall.png`",
103
191
  "type": "string"
104
192
  },
105
193
  "treasureRoom": {
106
- "description": "Optional. The full path to the spritesheet that contains the graphics of the Treasure Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\door_02_treasureroomdoor.png`",
194
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the Treasure Room doors for the floor.\n\nIf not specified, the vanilla Basement door spritesheet will be used. For reference, this is located at: `resources/gfx/grid/door_02_treasureroomdoor.png`",
107
195
  "type": "string"
108
196
  }
109
197
  },
@@ -114,15 +202,17 @@
114
202
  "type": "string"
115
203
  },
116
204
  "pitsPNGPath": {
117
- "description": "Optional. The full path to the spritesheet that contains the graphics of the pits for the floor.\n\nIf not specified, the vanilla Basement pits spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\grid\\grid_pit.png`",
205
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the pits for the floor.\n\nIf not specified, the vanilla Basement pits spritesheet will be used. For reference, this is located at: `resources/gfx/grid/grid_pit.png`",
118
206
  "type": "string"
119
207
  },
120
208
  "rocksPNGPath": {
121
- "description": "Optional. The full path to the spritesheet that contains the graphics of the rocks/blocks/urns for the floor.\n\nIf specified, it is assumed that you have your own custom rock alt type, and all vanilla rewards/enemies that spawn from urns will be automatically removed. Use the `POST_GRID_ENTITY_BROKEN` callback to make your own custom rewards. Or, if you want to emulate a vanilla urn/mushroom/skull/polyp/bucket, use the `spawnRockAltReward` helper function.\n\nIf not specified, the vanilla Basement rocks spritesheet will be used. For reference, this is located at: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources-dlc3\\gfx\\grid\\rocks_basement.png`",
209
+ "description": "Optional. The full path to the spritesheet that contains the graphics of the rocks/blocks/urns for the floor.\n\nIf specified, it is assumed that you have your own custom rock alt type, and all vanilla rewards/enemies that spawn from urns will be automatically removed. Use the `POST_GRID_ENTITY_BROKEN` callback to make your own custom rewards. Or, if you want to emulate a vanilla urn/mushroom/skull/polyp/bucket, use the `spawnRockAltReward` helper function.\n\nIf not specified, the vanilla Basement rocks spritesheet will be used. For reference, this is located at: `resources-dlc3/gfx/grid/rocks_basement.png`",
122
210
  "type": "string"
123
211
  },
124
212
  "roomVariantPrefix": {
125
- "description": "Mandatory. An arbitrarily chosen prefix in the range of 101-999 that will be unique to this stage.\n\nMake sure the chosen prefix does not conflict with any other mods. You can find a list of registered room variant prefixes on the IsaacScript website.",
213
+ "description": "Mandatory. An arbitrarily chosen prefix in the range of 101-999 that will be unique to this stage.\n\nMake sure the chosen prefix does not conflict with any other mods. You can find a list of registered room variant prefixes on the IsaacScript website: https://isaacscript.github.io/main/custom-stages",
214
+ "maximum": 109,
215
+ "minimum": 101,
126
216
  "type": "number"
127
217
  },
128
218
  "shadows": {
@@ -132,144 +222,28 @@
132
222
  "1x1": {
133
223
  "description": "Optional. An array containing the shadows that will be used in rooms of shape `RoomShape.SHAPE_1x1` (1), `RoomShape.IH` (2), and `RoomShape.IV` (3).\n\nIf more than one shadow is specified, one will be randomly chosen for each room.\n\nIf not specified, no extra shadows will be drawn in these room shapes.",
134
224
  "items": {
135
- "additionalProperties": false,
136
- "description": "A description of a custom stage shadow. (In this context, \"shadows\" are the outlines from things on the roof. For example, in Basement, a shadow of a sideways V is used, among others.)",
137
- "properties": {
138
- "color": {
139
- "additionalProperties": false,
140
- "description": "Optional. An object representing the color used for the shadow.\n\nIf not specified, an object of `{ r: 0, g: 0, b: 0, a: 0.25 }` will be used (which corresponds to 75% faded black).",
141
- "properties": {
142
- "a": {
143
- "type": "number"
144
- },
145
- "b": {
146
- "type": "number"
147
- },
148
- "g": {
149
- "type": "number"
150
- },
151
- "r": {
152
- "type": "number"
153
- }
154
- },
155
- "required": ["r", "g", "b", "a"],
156
- "type": "object"
157
- },
158
- "pngPath": {
159
- "description": "The full path to the shadow overlay PNG file.\n\nFor an example of a vanilla shadow overlay, see: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\overlays\\basement\\1x1_overlay_1.png`",
160
- "type": "string"
161
- }
162
- },
163
- "required": ["pngPath"],
164
- "type": "object"
225
+ "$ref": "#/definitions/CustomStageShadow"
165
226
  },
166
227
  "type": "array"
167
228
  },
168
229
  "1x2": {
169
230
  "description": "Optional. An array containing the shadows that will be used in rooms of shape `RoomShape.SHAPE_1x2` (4) and `RoomShape.IIV` (5).\n\nIf more than one shadow is specified, one will be randomly chosen for each room.\n\nIf not specified, no extra shadows will be drawn in these room shapes.",
170
231
  "items": {
171
- "additionalProperties": false,
172
- "description": "A description of a custom stage shadow. (In this context, \"shadows\" are the outlines from things on the roof. For example, in Basement, a shadow of a sideways V is used, among others.)",
173
- "properties": {
174
- "color": {
175
- "additionalProperties": false,
176
- "description": "Optional. An object representing the color used for the shadow.\n\nIf not specified, an object of `{ r: 0, g: 0, b: 0, a: 0.25 }` will be used (which corresponds to 75% faded black).",
177
- "properties": {
178
- "a": {
179
- "type": "number"
180
- },
181
- "b": {
182
- "type": "number"
183
- },
184
- "g": {
185
- "type": "number"
186
- },
187
- "r": {
188
- "type": "number"
189
- }
190
- },
191
- "required": ["r", "g", "b", "a"],
192
- "type": "object"
193
- },
194
- "pngPath": {
195
- "description": "The full path to the shadow overlay PNG file.\n\nFor an example of a vanilla shadow overlay, see: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\overlays\\basement\\1x1_overlay_1.png`",
196
- "type": "string"
197
- }
198
- },
199
- "required": ["pngPath"],
200
- "type": "object"
232
+ "$ref": "#/definitions/CustomStageShadow"
201
233
  },
202
234
  "type": "array"
203
235
  },
204
236
  "2x1": {
205
237
  "description": "Optional. An array containing the shadows that will be used in rooms of shape `RoomShape.SHAPE_2x1` (6) and `RoomShape.IIH` (7).\n\nIf more than one shadow is specified, one will be randomly chosen for each room.\n\nIf not specified, no extra shadows will be drawn in these room shapes.",
206
238
  "items": {
207
- "additionalProperties": false,
208
- "description": "A description of a custom stage shadow. (In this context, \"shadows\" are the outlines from things on the roof. For example, in Basement, a shadow of a sideways V is used, among others.)",
209
- "properties": {
210
- "color": {
211
- "additionalProperties": false,
212
- "description": "Optional. An object representing the color used for the shadow.\n\nIf not specified, an object of `{ r: 0, g: 0, b: 0, a: 0.25 }` will be used (which corresponds to 75% faded black).",
213
- "properties": {
214
- "a": {
215
- "type": "number"
216
- },
217
- "b": {
218
- "type": "number"
219
- },
220
- "g": {
221
- "type": "number"
222
- },
223
- "r": {
224
- "type": "number"
225
- }
226
- },
227
- "required": ["r", "g", "b", "a"],
228
- "type": "object"
229
- },
230
- "pngPath": {
231
- "description": "The full path to the shadow overlay PNG file.\n\nFor an example of a vanilla shadow overlay, see: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\overlays\\basement\\1x1_overlay_1.png`",
232
- "type": "string"
233
- }
234
- },
235
- "required": ["pngPath"],
236
- "type": "object"
239
+ "$ref": "#/definitions/CustomStageShadow"
237
240
  },
238
241
  "type": "array"
239
242
  },
240
243
  "2x2": {
241
244
  "description": "Optional. An array containing the shadows that will be used in rooms of shape `RoomShape.SHAPE_2x2` (8), `RoomShape.LTL` (9), `RoomShape.LTR` (10), `RoomShape.LBL` (11), and `RoomShape.LBR` (12).\n\nIf more than one shadow is specified, one will be randomly chosen for each room.\n\nIf not specified, no extra shadows will be drawn in these room shapes.",
242
245
  "items": {
243
- "additionalProperties": false,
244
- "description": "A description of a custom stage shadow. (In this context, \"shadows\" are the outlines from things on the roof. For example, in Basement, a shadow of a sideways V is used, among others.)",
245
- "properties": {
246
- "color": {
247
- "additionalProperties": false,
248
- "description": "Optional. An object representing the color used for the shadow.\n\nIf not specified, an object of `{ r: 0, g: 0, b: 0, a: 0.25 }` will be used (which corresponds to 75% faded black).",
249
- "properties": {
250
- "a": {
251
- "type": "number"
252
- },
253
- "b": {
254
- "type": "number"
255
- },
256
- "g": {
257
- "type": "number"
258
- },
259
- "r": {
260
- "type": "number"
261
- }
262
- },
263
- "required": ["r", "g", "b", "a"],
264
- "type": "object"
265
- },
266
- "pngPath": {
267
- "description": "The full path to the shadow overlay PNG file.\n\nFor an example of a vanilla shadow overlay, see: `C:\\Program Files (x86)\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources\\gfx\\overlays\\basement\\1x1_overlay_1.png`",
268
- "type": "string"
269
- }
270
- },
271
- "required": ["pngPath"],
272
- "type": "object"
246
+ "$ref": "#/definitions/CustomStageShadow"
273
247
  },
274
248
  "type": "array"
275
249
  }
@@ -278,22 +252,30 @@
278
252
  },
279
253
  "versusScreen": {
280
254
  "additionalProperties": false,
281
- "description": "Optional. A collection of colors used in the boss \"versus\" screen.",
255
+ "description": "Optional. A collection of colors used for in the boss \"versus\" screen for all of the bosses.\n\nNote that these graphics will only be applied if one or more bosses are specified in the `bossPool` field.",
282
256
  "properties": {
283
257
  "backgroundColor": {
284
258
  "additionalProperties": false,
285
259
  "description": "Optional. An object representing the color to use for the background of the boss \"versus\" screen. If not specified, the color for Basement 1 will be used.\n\nFor a list of the colors that correspond to the vanilla stages, see `versusScreenBackgroundColors.ts`.",
286
260
  "properties": {
287
261
  "a": {
262
+ "maximum": 1,
263
+ "minimum": 0,
288
264
  "type": "number"
289
265
  },
290
266
  "b": {
267
+ "maximum": 1,
268
+ "minimum": 0,
291
269
  "type": "number"
292
270
  },
293
271
  "g": {
272
+ "maximum": 1,
273
+ "minimum": 0,
294
274
  "type": "number"
295
275
  },
296
276
  "r": {
277
+ "maximum": 1,
278
+ "minimum": 0,
297
279
  "type": "number"
298
280
  }
299
281
  },
@@ -305,15 +287,23 @@
305
287
  "description": "Optional. An object representing the color to use for the dirt spots in the boss \"versus\" screen. (There are two dirt spots; one for the player and one for the boss.) If not specified, the color for Basement 1 will be used.\n\nFor a list of the colors that correspond to the vanilla stages, see `versusScreenDirtSpotColors.ts`.",
306
288
  "properties": {
307
289
  "a": {
290
+ "maximum": 1,
291
+ "minimum": 0,
308
292
  "type": "number"
309
293
  },
310
294
  "b": {
295
+ "maximum": 1,
296
+ "minimum": 0,
311
297
  "type": "number"
312
298
  },
313
299
  "g": {
300
+ "maximum": 1,
301
+ "minimum": 0,
314
302
  "type": "number"
315
303
  },
316
304
  "r": {
305
+ "maximum": 1,
306
+ "minimum": 0,
317
307
  "type": "number"
318
308
  }
319
309
  },
@@ -328,7 +318,7 @@
328
318
  "type": "string"
329
319
  }
330
320
  },
331
- "required": ["name", "xmlPath", "roomVariantPrefix"],
321
+ "required": ["name", "xmlPath", "roomVariantPrefix", "backdropPNGPaths"],
332
322
  "type": "object"
333
323
  },
334
324
  "IsaacScriptTSConfig": {
@@ -22,7 +22,7 @@ function getExtensionsFromJSON(projectPath, verbose) {
22
22
  const extensionsJSON = (0, json_1.getJSONC)(extensionsJSONPath, verbose);
23
23
  const { recommendations } = extensionsJSON;
24
24
  if (!Array.isArray(recommendations)) {
25
- (0, utils_1.error)('The "recommendations" property in the "extensions.json" file is not an array.');
25
+ (0, utils_1.error)('The "recommendations" field in the "extensions.json" file is not an array.');
26
26
  }
27
27
  return recommendations;
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"installVSCodeExtensions.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/init/installVSCodeExtensions.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,qCAAuC;AACvC,yDAAmC;AACnC,qCAAsC;AACtC,uCAAoC;AAEpC,SAAgB,uBAAuB,CACrC,WAAmB,EACnB,aAAqB,EACrB,OAAgB;IAEhB,MAAM,UAAU,GAAG,qBAAqB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/D,KAAK,MAAM,aAAa,IAAI,UAAU,EAAE;QACtC,IAAA,gBAAS,EAAC,aAAa,EAAE,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,OAAO,CAAC,CAAC;KAC3E;AACH,CAAC;AATD,0DASC;AAED,SAAS,qBAAqB,CAC5B,WAAmB,EACnB,OAAgB;IAEhB,MAAM,kBAAkB,GAAG,cAAI,CAAC,IAAI,CAClC,WAAW,EACX,SAAS,EACT,iBAAiB,CAClB,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,EAAE;QAC7C,OAAO,EAAE,CAAC;KACX;IAED,MAAM,cAAc,GAAG,IAAA,eAAQ,EAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAE7D,MAAM,EAAE,eAAe,EAAE,GAAG,cAAc,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;QACnC,IAAA,aAAK,EACH,+EAA+E,CAChF,CAAC;KACH;IAED,OAAO,eAA2B,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"installVSCodeExtensions.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/init/installVSCodeExtensions.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,qCAAuC;AACvC,yDAAmC;AACnC,qCAAsC;AACtC,uCAAoC;AAEpC,SAAgB,uBAAuB,CACrC,WAAmB,EACnB,aAAqB,EACrB,OAAgB;IAEhB,MAAM,UAAU,GAAG,qBAAqB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/D,KAAK,MAAM,aAAa,IAAI,UAAU,EAAE;QACtC,IAAA,gBAAS,EAAC,aAAa,EAAE,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,OAAO,CAAC,CAAC;KAC3E;AACH,CAAC;AATD,0DASC;AAED,SAAS,qBAAqB,CAC5B,WAAmB,EACnB,OAAgB;IAEhB,MAAM,kBAAkB,GAAG,cAAI,CAAC,IAAI,CAClC,WAAW,EACX,SAAS,EACT,iBAAiB,CAClB,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,EAAE;QAC7C,OAAO,EAAE,CAAC;KACX;IAED,MAAM,cAAc,GAAG,IAAA,eAAQ,EAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAE7D,MAAM,EAAE,eAAe,EAAE,GAAG,cAAc,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;QACnC,IAAA,aAAK,EACH,4EAA4E,CAC7E,CAAC;KACH;IAED,OAAO,eAA2B,CAAC;AACrC,CAAC"}
@@ -181,7 +181,7 @@ function purgeRoomXMLs(modTargetPath, verbose) {
181
181
  }
182
182
  function uploadMod(modTargetPath, steamCmdPath, verbose) {
183
183
  if (steamCmdPath === undefined) {
184
- console.log(`The "steamCmdPath" property was not found in the "${chalk_1.default.green(constants_1.CONFIG_FILE_NAME)}" file; assuming that we want to use the ModUploader tool.`);
184
+ console.log(`The "steamCmdPath" field was not found in the "${chalk_1.default.green(constants_1.CONFIG_FILE_NAME)}" file; assuming that we want to use the ModUploader tool.`);
185
185
  (0, exec_1.execExe)(constants_1.MOD_UPLOADER_PATH, [], verbose, modTargetPath);
186
186
  }
187
187
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/publish/publish.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,wDAAwB;AAExB,+CAWyB;AAEzB,qCAAgE;AAChE,yDAAmC;AACnC,yDAA+E;AAE/E,uCAA4E;AAC5E,uCAA8C;AAC9C,qCAA6D;AAE7D,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAEhC,KAAK,UAAU,OAAO,CAAC,IAA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,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,sBAAsB;QACtB,eAAe;QACf,OAAO;KACR,EACD,OAAO,CACR,CAAC;IAEF,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,kBAAkB;IACzB,OAAO,eAAK,CAAC,GAAG,CACd,4EAA4E,CAC7E,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/commands/publish/publish.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,wDAAwB;AAExB,+CAWyB;AAEzB,qCAAgE;AAChE,yDAAmC;AACnC,yDAA+E;AAE/E,uCAA4E;AAC5E,uCAA8C;AAC9C,qCAA6D;AAE7D,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAEhC,KAAK,UAAU,OAAO,CAAC,IAAU,EAAE,MAAc;IACtD,MAAM,oBAAoB,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;IAChD,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC;IACpC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC;IACtC,MAAM,cAAc,GAAG,IAAA,wDAAuC,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE9E,MAAM,sBAAsB,GAAG,IAAA,iCAAyB,EAAC,MAAM,CAAC,CAAC;IACjE,MAAM,aAAa,GAAG,cAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,sBAAsB,CAAC,CAAC;IAE9E,eAAe,CAAC,UAAU,CAAC,CAAC;IAC5B,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC7B,wCAAwC,CAAC,OAAO,CAAC,CAAC;IAElD,IAAI,UAAU,E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AAK,CAAC,GAAG,CACP,uBAAuB,WAAW,+DAA+D,wBAAY,QAAQ,CACtH,CACF,CAAC;QACF,IAAA,aAAK,EAAC,kBAAkB,EAAE,CAAC,CAAC;KAC7B;IAED,MAAM,WAAW,GAAG,gBAAgB,CAAC;IACrC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC1C,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,EAAE,EAAE;QAC7C,OAAO,CAAC,KAAK,CACX,eAAK,CAAC,GAAG,CACP,uBAAuB,WAAW,+DAA+D,wBAAY,QAAQ,CACtH,CACF,CAAC;QACF,IAAA,aAAK,EAAC,kBAAkB,EAAE,CAAC,CAAC;KAC7B;IAED,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;IAE1D,IAAA,gBAAS,EACP,YAAY,EACZ;QACE,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,sBAAsB;QACtB,eAAe;QACf,OAAO;KACR,EACD,OAAO,CACR,CAAC;IAEF,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,kBAAkB;IACzB,OAAO,eAAK,CAAC,GAAG,CACd,4EAA4E,CAC7E,CAAC;AACJ,CAAC"}
package/src/common.js CHANGED
@@ -9,14 +9,14 @@ function getJSONRoomDoorSlotFlags(jsonRoom) {
9
9
  const roomShapeString = jsonRoom.$.shape;
10
10
  const roomShapeNumber = (0, utils_1.parseIntSafe)(roomShapeString);
11
11
  if (Number.isNaN(roomShapeNumber)) {
12
- (0, utils_1.error)(`Failed to parse the "shape" property of a custom stage room: ${roomShapeString}`);
12
+ (0, utils_1.error)(`Failed to parse the "shape" field of a custom stage room: ${roomShapeString}`);
13
13
  }
14
14
  const roomShape = roomShapeNumber;
15
15
  let doorSlotFlags = 0;
16
16
  for (const door of jsonRoom.door) {
17
17
  const existsString = door.$.exists;
18
18
  if (existsString !== "True" && existsString !== "False") {
19
- (0, utils_1.error)(`Failed to parse the "exists" property of a custom stage room door: ${existsString}`);
19
+ (0, utils_1.error)(`Failed to parse the "exists" field of a custom stage room door: ${existsString}`);
20
20
  }
21
21
  if (existsString === "False") {
22
22
  continue;
@@ -24,12 +24,12 @@ function getJSONRoomDoorSlotFlags(jsonRoom) {
24
24
  const xString = door.$.x;
25
25
  const x = (0, utils_1.parseIntSafe)(xString);
26
26
  if (Number.isNaN(x)) {
27
- (0, utils_1.error)(`Failed to parse the "x" property of a custom stage room door: ${xString}`);
27
+ (0, utils_1.error)(`Failed to parse the "x" field of a custom stage room door: ${xString}`);
28
28
  }
29
29
  const yString = door.$.y;
30
30
  const y = (0, utils_1.parseIntSafe)(yString);
31
31
  if (Number.isNaN(y)) {
32
- (0, utils_1.error)(`Failed to parse the "y" property of a custom stage room door: ${yString}`);
32
+ (0, utils_1.error)(`Failed to parse the "y" field of a custom stage room door: ${yString}`);
33
33
  }
34
34
  const doorSlot = getRoomShapeDoorSlot(roomShape, x, y);
35
35
  if (doorSlot === undefined) {
package/src/common.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/common.ts"],"names":[],"mappings":";AAAA,wDAAwD;;;AAMxD,6EAA+E;AAC/E,yFAA6F;AAC7F,mCAA8C;AAE9C,SAAgB,wBAAwB,CAAC,QAAkB;IACzD,MAAM,eAAe,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;IACzC,MAAM,eAAe,GAAG,IAAA,oBAAY,EAAC,eAAe,CAAC,CAAC;IACtD,IAAI,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE;QACjC,IAAA,aAAK,EACH,gEAAgE,eAAe,EAAE,CAClF,CAAC;KACH;IACD,MAAM,SAAS,GAAG,eAA4B,CAAC;IAE/C,IAAI,aAAa,GAAG,CAAC,CAAC;IAEtB,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,IAAI,EAAE;QAChC,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O,oDAA2B,CAAC,QAAQ,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,OAAO,CAAC,KAAa,EAAE,GAAG,UAAoB;IACrD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;QAClC,KAAK,IAAI,SAAS,CAAC,CAAC,mDAAmD;KACxE;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
package/src/configFile.js CHANGED
@@ -30,13 +30,13 @@ function getExistingConfig(verbose) {
30
30
  return undefined;
31
31
  }
32
32
  const config = (0, json_1.getJSONC)(constants_1.CONFIG_FILE_PATH, verbose);
33
- // Even though the "modsDirectory" property is always initialized in the class, it may not be
33
+ // Even though the "modsDirectory" field is always initialized in the class, it may not be
34
34
  // necessarily exist in the JSON file.
35
35
  if (config["modsDirectory"] === undefined) {
36
36
  errorMissing("modsDirectory", "This should be equal to the directory where Isaac mods live on your system.");
37
37
  }
38
- // Even though the "saveSlot" property is always initialized in the class, it may not be
39
- // necessarily exist in the JSON file.
38
+ // Even though the "saveSlot" field is always initialized in the class, it may not be necessarily
39
+ // exist in the JSON file.
40
40
  if (config["saveSlot"] === undefined) {
41
41
  errorMissing("saveSlot", "This should be equal to the save slot that you test your mods on.");
42
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"configFile.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/configFile.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AAExB,2DAAwD;AACxD,mEAAgE;AAChE,2CAAsE;AACtE,qDAA+B;AAC/B,iCAAkC;AAElC,mCAAgC;AAEhC,MAAM,UAAU,GAAG,CAAC,CAAC;AAEd,KAAK,UAAU,GAAG,CAAC,IAAU;IAClC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC;IACtC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC;IAE9B,MAAM,cAAc,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAClD,IAAI,cAAc,KAAK,SAAS,E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,MAAM,CAAC,4BAAgB,EAAE,OAAO,CAAC,EAAE;QAC3C,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,MAAM,GAAG,IAAA,eAAQ,EAAC,4BAAgB,EAAE,OAAO,CAAC,CAAC;IAEnD,0FAA0F;IAC1F,sCAAsC;IACtC,IAAI,MAAM,CAAC,eAAe,CAAC,KAAK,SAAS,EAAE;QACzC,YAAY,CACV,eAAe,EACf,6EAA6E,CAC9E,CAAC;KACH;IAED,iGAAiG;IACjG,0BAA0B;IAC1B,IAAI,MAAM,CAAC,UAAU,CAAC,KAAK,SAAS,EAAE;QACpC,YAAY,CACV,UAAU,EACV,mEAAmE,CACpE,CAAC;KACH;IAED,OAAO,MAA2B,CAAC;AACrC,CAAC;AAED,SAAS,YAAY,CAAC,KAAa,EAAE,WAAmB;IACtD,IAAA,aAAK,EACH,QAAQ,4BAAgB,wBAAwB,KAAK,YAAY,WAAW,iBAAiB,CAC9F,CAAC;AACJ,CAAC;AAED,SAAgB,YAAY,CAAC,aAAqB,EAAE,QAAgB;IAClE,OAAO;QACL,aAAa;QACb,QAAQ;KACT,CAAC;AACJ,CAAC;AALD,oCAKC;AAED,SAAgB,UAAU,CACxB,WAAmB,EACnB,MAAc,EACd,OAAgB;IAEhB,MAAM,cAAc,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,4BAAgB,CAAC,CAAC;IAEhE,gDAAgD;IAChD,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAE7E,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAXD,gCAWC"}
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT THIS FILE!
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=CustomStageLua.js.map
4
+ //# sourceMappingURL=CustomStageTSConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomStageTSConfig.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/interfaces/copied/CustomStageTSConfig.ts"],"names":[],"mappings":";AAAA,+DAA+D"}
package/src/tsconfig.js CHANGED
@@ -18,14 +18,14 @@ function getTSConfigJSON(verbose) {
18
18
  }
19
19
  function getIsaacScriptSection(verbose) {
20
20
  const tsConfig = getTSConfigJSON(verbose);
21
- // We allow different kinds of casing for the property name.
22
- for (const propertyName of ["isaacscript", "isaacScript", "IsaacScript"]) {
23
- const property = tsConfig[propertyName];
24
- if (property !== undefined) {
25
- if (!(0, utils_1.isRecord)(property)) {
26
- (0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has a non-object value for the "${propertyName}" property, which is surely a mistake. ${ADVICE}`);
21
+ // We allow different kinds of casing for the field name.
22
+ for (const fieldName of ["isaacscript", "isaacScript", "IsaacScript"]) {
23
+ const field = tsConfig[fieldName];
24
+ if (field !== undefined) {
25
+ if (!(0, utils_1.isRecord)(field)) {
26
+ (0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has a non-object value for the "${fieldName}" field, which is surely a mistake. ${ADVICE}`);
27
27
  }
28
- return property;
28
+ return field;
29
29
  }
30
30
  }
31
31
  return undefined;
@@ -34,14 +34,14 @@ function getFirstTSConfigIncludePath(verbose) {
34
34
  const tsConfig = getTSConfigJSON(verbose);
35
35
  const { include } = tsConfig;
36
36
  if (include === undefined) {
37
- (0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file does not have an "include" property, which is surely a mistake. ${ADVICE}`);
37
+ (0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file does not have an "include" field, which is surely a mistake. ${ADVICE}`);
38
38
  }
39
39
  if (!Array.isArray(include)) {
40
- (0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has an "include" property that is not an array, which is surely a mistake. ${ADVICE}`);
40
+ (0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has an "include" field that is not an array, which is surely a mistake. ${ADVICE}`);
41
41
  }
42
42
  const firstInclude = include[0];
43
43
  if (firstInclude === undefined) {
44
- (0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has an empty "include" property, which is surely a mistake. ${ADVICE}`);
44
+ (0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has an empty "include" field, which is surely a mistake. ${ADVICE}`);
45
45
  }
46
46
  if (typeof firstInclude !== "string") {
47
47
  (0, utils_1.error)(`Your "${chalk_1.default.green(constants_1.TSCONFIG_JSON_PATH)}" file has a non-string "include" value, which is surely a mistake. ${ADVICE}`);
@@ -66,14 +66,14 @@ function getCustomStagesFromTSConfig(verbose) {
66
66
  console.error(schemaValidate.errors);
67
67
  (0, utils_1.error)("For more information, see the custom stages documentation on the website.");
68
68
  }
69
- // "customStages" is an optional property.
69
+ // "customStages" is an optional field.
70
70
  const { customStages } = isaacScriptSection;
71
71
  if (customStages === undefined) {
72
72
  return [];
73
73
  }
74
74
  // The type of "customStages" should be validated by Ajv, but check again just in case.
75
75
  if (!Array.isArray(customStages)) {
76
- (0, utils_1.error)(`Failed to parse the "customStages" property, since it was not an array. ${ADVICE}.`);
76
+ (0, utils_1.error)(`Failed to parse the "customStages" field, since it was not an array. ${ADVICE}.`);
77
77
  }
78
78
  // Perform some extra validation that can't be automatically done by Ajv.
79
79
  for (const customStageTSConfig of customStages) {
@@ -83,20 +83,20 @@ function getCustomStagesFromTSConfig(verbose) {
83
83
  }
84
84
  const { xmlPath } = customStageTSConfig;
85
85
  if (xmlPath === "") {
86
- (0, utils_1.error)(chalk_1.default.red(`The "${name}" custom stage has a blank "xmlPath" property, which is not allowed.`));
86
+ (0, utils_1.error)(chalk_1.default.red(`The "${name}" custom stage has a blank "xmlPath" field, which is not allowed.`));
87
87
  }
88
88
  const { roomVariantPrefix } = customStageTSConfig;
89
89
  if (roomVariantPrefix < 101 || roomVariantPrefix > 999) {
90
- (0, utils_1.error)(chalk_1.default.red(`The "${name}" custom stage has an invalid value for the "roomVariantPrefix" property: ${roomVariantPrefix}`));
90
+ (0, utils_1.error)(chalk_1.default.red(`The "${name}" custom stage has an invalid value for the "roomVariantPrefix" field: ${roomVariantPrefix}`));
91
91
  }
92
92
  const { baseStage } = customStageTSConfig;
93
93
  if (baseStage !== undefined && (baseStage < 2 || baseStage > 13)) {
94
- (0, utils_1.error)(`The "${name}" custom stage has an invalid value for the "baseStage" property: ${baseStage}`);
94
+ (0, utils_1.error)(`The "${name}" custom stage has an invalid value for the "baseStage" field: ${baseStage}`);
95
95
  }
96
96
  const { baseStageType } = customStageTSConfig;
97
97
  if (baseStageType !== undefined &&
98
98
  (baseStageType < 0 || baseStageType > 5)) {
99
- (0, utils_1.error)(`The "${name}" custom stage has an invalid value for the "baseStageType" property: ${baseStageType}`);
99
+ (0, utils_1.error)(`The "${name}" custom stage has an invalid value for the "baseStageType" field: ${baseStageType}`);
100
100
  }
101
101
  }
102
102
  return customStages;
@@ -1 +1 @@
1
- {"version":3,"file":"tsconfig.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/tsconfig.ts"],"names":[],"mappings":";;;;AAAA,sDAAkC;AAClC,0DAA0B;AAC1B,2CAKqB;AACrB,qDAA+B;AAE/B,iCAAkC;AAClC,mCAA0C;AAE1C,MAAM,MAAM,GAAG,oBAAoB,yBAAa,sBAAsB,wBAAY,WAAW,CAAC;AAC9F,MAAM,sBAAsB,GAAG,IAAI,CAAC,IAAI,CAAC,mCAAuB,EAAE,KAAK,CAAC,CAAC;AACzE,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAW,CAAC;AACxE,MAA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AAG,mBAAmB,CAAC;QACrC,IAAI,IAAI,KAAK,EAAE,EAAE;YACf,IAAA,aAAK,EACH,eAAK,CAAC,GAAG,CACP,kEAAkE,CACnE,CACF,CAAC;SACH;QAED,MAAM,EAAE,OAAO,EAAE,GAAG,mBAAmB,CAAC;QACxC,IAAI,OAAO,KAAK,EAAE,EAAE;YAClB,IAAA,aAAK,EACH,eAAK,CAAC,GAAG,CACP,QAAQ,IAAI,mEAAmE,CAChF,CACF,CAAC;SACH;QAED,MAAM,EAAE,iBAAiB,EAAE,GAAG,mBAAmB,CAAC;QAClD,IAAI,iBAAiB,GAAG,GAAG,IAAI,iBAAiB,GAAG,GAAG,EAAE;YACtD,IAAA,aAAK,EACH,eAAK,CAAC,GAAG,CACP,QAAQ,IAAI,0EAA0E,iBAAiB,EAAE,CAC1G,CACF,CAAC;SACH;QAED,MAAM,EAAE,SAAS,EAAE,GAAG,mBAAmB,CAAC;QAC1C,IAAI,SAAS,KAAK,SAAS,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,SAAS,GAAG,EAAE,CAAC,EAAE;YAChE,IAAA,aAAK,EACH,QAAQ,IAAI,kEAAkE,SAAS,EAAE,CAC1F,CAAC;SACH;QAED,MAAM,EAAE,aAAa,EAAE,GAAG,mBAAmB,CAAC;QAC9C,IACE,aAAa,KAAK,SAAS;YAC3B,CAAC,aAAa,GAAG,CAAC,IAAI,aAAa,GAAG,CAAC,CAAC,EACxC;YACA,IAAA,aAAK,EACH,QAAQ,IAAI,sEAAsE,aAAa,EAAE,CAClG,CAAC;SACH;KACF;IAED,OAAO,YAAqC,CAAC;AAC/C,CAAC;AAhFD,kEAgFC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Immutable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Immutable.js","sourceRoot":"","sources":["../../../../../packages/isaacscript-cli/src/types/Immutable.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CustomStageLua.js","sourceRoot":"","sources":["../../../../../../packages/isaacscript-cli/src/interfaces/copied/CustomStageLua.ts"],"names":[],"mappings":";AAAA,+DAA+D"}