5etools-utils 0.15.17 → 0.16.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 (126) hide show
  1. package/README.md +13 -13
  2. package/bin/clean-html.js +0 -0
  3. package/bin/lint-js-changed.js +17 -0
  4. package/bin/test-edition-sources.js +0 -0
  5. package/bin/test-file-contents.js +0 -0
  6. package/bin/test-file-locations.js +0 -0
  7. package/bin/test-file-names.js +0 -0
  8. package/bin/test-file-props.js +0 -0
  9. package/bin/test-img-file-extensions.js +0 -0
  10. package/bin/test-img-file-sizes.js +0 -0
  11. package/bin/test-img-source-names-brew.js +0 -0
  12. package/bin/test-img-source-names-ua.js +0 -0
  13. package/bin/test-json-brew.js +0 -0
  14. package/bin/test-json-ua.js +0 -0
  15. package/lib/Lint/LintJsChanged.js +33 -0
  16. package/lib/UtilGit.js +39 -0
  17. package/lib/eslint/eslint-plugin-jquery.js +49 -0
  18. package/package.json +16 -6
  19. package/schema/brew/charcreationoptions.json +162 -8
  20. package/schema/brew/cultsboons.json +399 -14
  21. package/schema/brew/encounterbuilder.json +81 -2
  22. package/schema/brew/fluff-charcreationoptions.json +5 -33
  23. package/schema/brew/homebrew.json +8 -2
  24. package/schema/brew/items-base.json +290 -28
  25. package/schema/brew/languages.json +195 -6
  26. package/schema/brew/objects.json +389 -9
  27. package/schema/brew/psionics.json +356 -7
  28. package/schema/brew/rewards.json +207 -8
  29. package/schema/brew/senses.json +68 -7
  30. package/schema/brew/skills.json +74 -7
  31. package/schema/brew/tables.json +676 -94
  32. package/schema/brew/trapshazards.json +571 -14
  33. package/schema/brew/util-copy.json +143 -1
  34. package/schema/brew/util.json +4 -2
  35. package/schema/brew/variantrules.json +151 -22
  36. package/schema/brew/vehicles.json +6672 -61
  37. package/schema/brew-fast/charcreationoptions.json +162 -8
  38. package/schema/brew-fast/cultsboons.json +399 -14
  39. package/schema/brew-fast/encounterbuilder.json +81 -2
  40. package/schema/brew-fast/fluff-charcreationoptions.json +5 -33
  41. package/schema/brew-fast/homebrew.json +8 -2
  42. package/schema/brew-fast/items-base.json +290 -28
  43. package/schema/brew-fast/languages.json +195 -6
  44. package/schema/brew-fast/objects.json +389 -9
  45. package/schema/brew-fast/psionics.json +356 -7
  46. package/schema/brew-fast/rewards.json +207 -8
  47. package/schema/brew-fast/senses.json +68 -7
  48. package/schema/brew-fast/skills.json +74 -7
  49. package/schema/brew-fast/tables.json +676 -94
  50. package/schema/brew-fast/trapshazards.json +571 -14
  51. package/schema/brew-fast/util-copy.json +143 -1
  52. package/schema/brew-fast/util.json +4 -2
  53. package/schema/brew-fast/variantrules.json +151 -22
  54. package/schema/brew-fast/vehicles.json +6672 -61
  55. package/schema/site/charcreationoptions.json +134 -8
  56. package/schema/site/cultsboons.json +315 -14
  57. package/schema/site/encounterbuilder.json +81 -2
  58. package/schema/site/fluff-charcreationoptions.json +5 -33
  59. package/schema/site/homebrew.json +8 -2
  60. package/schema/site/items-base.json +374 -40
  61. package/schema/site/languages.json +197 -6
  62. package/schema/site/objects.json +361 -9
  63. package/schema/site/psionics.json +314 -7
  64. package/schema/site/rewards.json +165 -8
  65. package/schema/site/senses.json +92 -7
  66. package/schema/site/skills.json +98 -7
  67. package/schema/site/tables.json +600 -87
  68. package/schema/site/trapshazards.json +555 -14
  69. package/schema/site/util-copy.json +143 -1
  70. package/schema/site/util.json +4 -2
  71. package/schema/site/variantrules.json +161 -22
  72. package/schema/site/vehicles.json +6446 -86
  73. package/schema/site-fast/charcreationoptions.json +134 -8
  74. package/schema/site-fast/cultsboons.json +315 -14
  75. package/schema/site-fast/encounterbuilder.json +81 -2
  76. package/schema/site-fast/fluff-charcreationoptions.json +5 -33
  77. package/schema/site-fast/homebrew.json +8 -2
  78. package/schema/site-fast/items-base.json +374 -40
  79. package/schema/site-fast/languages.json +197 -6
  80. package/schema/site-fast/objects.json +361 -9
  81. package/schema/site-fast/psionics.json +314 -7
  82. package/schema/site-fast/rewards.json +165 -8
  83. package/schema/site-fast/senses.json +92 -7
  84. package/schema/site-fast/skills.json +98 -7
  85. package/schema/site-fast/tables.json +600 -87
  86. package/schema/site-fast/trapshazards.json +555 -14
  87. package/schema/site-fast/util-copy.json +143 -1
  88. package/schema/site-fast/util.json +4 -2
  89. package/schema/site-fast/variantrules.json +161 -22
  90. package/schema/site-fast/vehicles.json +6446 -86
  91. package/schema/ua/charcreationoptions.json +110 -8
  92. package/schema/ua/cultsboons.json +315 -14
  93. package/schema/ua/encounterbuilder.json +81 -2
  94. package/schema/ua/fluff-charcreationoptions.json +5 -33
  95. package/schema/ua/homebrew.json +8 -2
  96. package/schema/ua/items-base.json +290 -28
  97. package/schema/ua/languages.json +173 -6
  98. package/schema/ua/objects.json +367 -9
  99. package/schema/ua/psionics.json +314 -7
  100. package/schema/ua/rewards.json +165 -8
  101. package/schema/ua/senses.json +68 -7
  102. package/schema/ua/skills.json +74 -7
  103. package/schema/ua/tables.json +564 -87
  104. package/schema/ua/trapshazards.json +483 -14
  105. package/schema/ua/util-copy.json +143 -1
  106. package/schema/ua/util.json +4 -2
  107. package/schema/ua/variantrules.json +139 -22
  108. package/schema/ua/vehicles.json +6574 -76
  109. package/schema/ua-fast/charcreationoptions.json +110 -8
  110. package/schema/ua-fast/cultsboons.json +315 -14
  111. package/schema/ua-fast/encounterbuilder.json +81 -2
  112. package/schema/ua-fast/fluff-charcreationoptions.json +5 -33
  113. package/schema/ua-fast/homebrew.json +8 -2
  114. package/schema/ua-fast/items-base.json +290 -28
  115. package/schema/ua-fast/languages.json +173 -6
  116. package/schema/ua-fast/objects.json +367 -9
  117. package/schema/ua-fast/psionics.json +314 -7
  118. package/schema/ua-fast/rewards.json +165 -8
  119. package/schema/ua-fast/senses.json +68 -7
  120. package/schema/ua-fast/skills.json +74 -7
  121. package/schema/ua-fast/tables.json +564 -87
  122. package/schema/ua-fast/trapshazards.json +483 -14
  123. package/schema/ua-fast/util-copy.json +143 -1
  124. package/schema/ua-fast/util.json +4 -2
  125. package/schema/ua-fast/variantrules.json +139 -22
  126. package/schema/ua-fast/vehicles.json +6574 -76
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "psionics.json",
4
- "version": "1.2.4",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
- "psionic": {
7
+ "psionicData": {
8
8
  "type": "object",
9
9
  "properties": {
10
10
  "name": {
@@ -149,15 +149,322 @@
149
149
  }
150
150
  }
151
151
  },
152
- "required": [
153
- "name",
154
- "source",
155
- "type"
156
- ],
157
152
  "additionalProperties": false
153
+ },
154
+ "psionic": {
155
+ "anyOf": [
156
+ {
157
+ "type": "object",
158
+ "properties": {
159
+ "name": {
160
+ "type": "string"
161
+ },
162
+ "source": {
163
+ "$ref": "util.json#/$defs/source"
164
+ },
165
+ "page": {
166
+ "$ref": "util.json#/$defs/page"
167
+ },
168
+ "type": {
169
+ "description": "- D: Discipline\n- T: Talent",
170
+ "type": "string",
171
+ "markdownDescription": "- D: Discipline\n- T: Talent",
172
+ "enum": [
173
+ "D",
174
+ "T"
175
+ ]
176
+ },
177
+ "focus": {
178
+ "type": "string"
179
+ },
180
+ "order": {
181
+ "type": "string",
182
+ "enum": [
183
+ "Avatar",
184
+ "Awakened",
185
+ "Immortal",
186
+ "Nomad",
187
+ "Wu Jen"
188
+ ]
189
+ },
190
+ "modes": {
191
+ "type": "array",
192
+ "minItems": 1,
193
+ "uniqueItems": true,
194
+ "items": {
195
+ "type": "object",
196
+ "properties": {
197
+ "cost": {
198
+ "type": "object",
199
+ "properties": {
200
+ "min": {
201
+ "type": "integer"
202
+ },
203
+ "max": {
204
+ "type": "integer"
205
+ }
206
+ },
207
+ "required": [
208
+ "min",
209
+ "max"
210
+ ],
211
+ "additionalProperties": false
212
+ },
213
+ "concentration": {
214
+ "type": "object",
215
+ "properties": {
216
+ "duration": {
217
+ "type": "integer"
218
+ },
219
+ "unit": {
220
+ "type": "string",
221
+ "enum": [
222
+ "hr",
223
+ "min",
224
+ "rnd"
225
+ ]
226
+ }
227
+ },
228
+ "required": [
229
+ "duration",
230
+ "unit"
231
+ ],
232
+ "additionalProperties": false
233
+ },
234
+ "name": {
235
+ "type": "string"
236
+ },
237
+ "entries": {
238
+ "type": "array",
239
+ "items": {
240
+ "$ref": "entry.json"
241
+ }
242
+ },
243
+ "submodes": {
244
+ "type": "array",
245
+ "minItems": 1,
246
+ "uniqueItems": true,
247
+ "items": {
248
+ "type": "object",
249
+ "properties": {
250
+ "cost": {
251
+ "type": "object",
252
+ "properties": {
253
+ "min": {
254
+ "type": "integer"
255
+ },
256
+ "max": {
257
+ "type": "integer"
258
+ }
259
+ },
260
+ "required": [
261
+ "min",
262
+ "max"
263
+ ],
264
+ "additionalProperties": false
265
+ },
266
+ "name": {
267
+ "type": "string"
268
+ },
269
+ "entries": {
270
+ "type": "array",
271
+ "uniqueItems": true,
272
+ "items": {
273
+ "$ref": "entry.json"
274
+ }
275
+ }
276
+ },
277
+ "required": [
278
+ "cost",
279
+ "name",
280
+ "entries"
281
+ ],
282
+ "additionalProperties": false
283
+ }
284
+ }
285
+ },
286
+ "required": [
287
+ "name",
288
+ "entries"
289
+ ],
290
+ "additionalProperties": false
291
+ }
292
+ },
293
+ "entries": {
294
+ "type": "array",
295
+ "uniqueItems": true,
296
+ "items": {
297
+ "$ref": "entry.json"
298
+ }
299
+ }
300
+ },
301
+ "additionalProperties": false,
302
+ "required": [
303
+ "name",
304
+ "source",
305
+ "type"
306
+ ]
307
+ },
308
+ {
309
+ "type": "object",
310
+ "properties": {
311
+ "name": {
312
+ "type": "string"
313
+ },
314
+ "source": {
315
+ "$ref": "util.json#/$defs/source"
316
+ },
317
+ "page": {
318
+ "$ref": "util.json#/$defs/page"
319
+ },
320
+ "type": {
321
+ "description": "- D: Discipline\n- T: Talent",
322
+ "type": "string",
323
+ "markdownDescription": "- D: Discipline\n- T: Talent",
324
+ "enum": [
325
+ "D",
326
+ "T"
327
+ ]
328
+ },
329
+ "focus": {
330
+ "type": "string"
331
+ },
332
+ "order": {
333
+ "type": "string",
334
+ "enum": [
335
+ "Avatar",
336
+ "Awakened",
337
+ "Immortal",
338
+ "Nomad",
339
+ "Wu Jen"
340
+ ]
341
+ },
342
+ "modes": {
343
+ "type": "array",
344
+ "minItems": 1,
345
+ "uniqueItems": true,
346
+ "items": {
347
+ "type": "object",
348
+ "properties": {
349
+ "cost": {
350
+ "type": "object",
351
+ "properties": {
352
+ "min": {
353
+ "type": "integer"
354
+ },
355
+ "max": {
356
+ "type": "integer"
357
+ }
358
+ },
359
+ "required": [
360
+ "min",
361
+ "max"
362
+ ],
363
+ "additionalProperties": false
364
+ },
365
+ "concentration": {
366
+ "type": "object",
367
+ "properties": {
368
+ "duration": {
369
+ "type": "integer"
370
+ },
371
+ "unit": {
372
+ "type": "string",
373
+ "enum": [
374
+ "hr",
375
+ "min",
376
+ "rnd"
377
+ ]
378
+ }
379
+ },
380
+ "required": [
381
+ "duration",
382
+ "unit"
383
+ ],
384
+ "additionalProperties": false
385
+ },
386
+ "name": {
387
+ "type": "string"
388
+ },
389
+ "entries": {
390
+ "type": "array",
391
+ "items": {
392
+ "$ref": "entry.json"
393
+ }
394
+ },
395
+ "submodes": {
396
+ "type": "array",
397
+ "minItems": 1,
398
+ "uniqueItems": true,
399
+ "items": {
400
+ "type": "object",
401
+ "properties": {
402
+ "cost": {
403
+ "type": "object",
404
+ "properties": {
405
+ "min": {
406
+ "type": "integer"
407
+ },
408
+ "max": {
409
+ "type": "integer"
410
+ }
411
+ },
412
+ "required": [
413
+ "min",
414
+ "max"
415
+ ],
416
+ "additionalProperties": false
417
+ },
418
+ "name": {
419
+ "type": "string"
420
+ },
421
+ "entries": {
422
+ "type": "array",
423
+ "uniqueItems": true,
424
+ "items": {
425
+ "$ref": "entry.json"
426
+ }
427
+ }
428
+ },
429
+ "required": [
430
+ "cost",
431
+ "name",
432
+ "entries"
433
+ ],
434
+ "additionalProperties": false
435
+ }
436
+ }
437
+ },
438
+ "required": [
439
+ "name",
440
+ "entries"
441
+ ],
442
+ "additionalProperties": false
443
+ }
444
+ },
445
+ "entries": {
446
+ "type": "array",
447
+ "uniqueItems": true,
448
+ "items": {
449
+ "$ref": "entry.json"
450
+ }
451
+ },
452
+ "_copy": {
453
+ "$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
454
+ }
455
+ },
456
+ "additionalProperties": false,
457
+ "required": [
458
+ "_copy"
459
+ ]
460
+ }
461
+ ]
158
462
  }
159
463
  },
160
464
  "properties": {
465
+ "_meta": {
466
+ "$ref": "util.json#/$defs/metaBlock"
467
+ },
161
468
  "psionic": {
162
469
  "type": "array",
163
470
  "minItems": 1,
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "rewards.json",
4
- "version": "1.2.5",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
- "reward": {
7
+ "rewardData": {
8
8
  "type": "object",
9
9
  "properties": {
10
10
  "name": {
@@ -74,16 +74,173 @@
74
74
  "type": "boolean"
75
75
  }
76
76
  },
77
- "required": [
78
- "name",
79
- "source",
80
- "type",
81
- "entries"
82
- ],
83
77
  "additionalProperties": false
78
+ },
79
+ "reward": {
80
+ "anyOf": [
81
+ {
82
+ "type": "object",
83
+ "properties": {
84
+ "name": {
85
+ "type": "string"
86
+ },
87
+ "source": {
88
+ "$ref": "util.json#/$defs/source"
89
+ },
90
+ "otherSources": {
91
+ "$ref": "util.json#/$defs/otherSources"
92
+ },
93
+ "referenceSources": {
94
+ "$ref": "util.json#/$defs/referenceSources"
95
+ },
96
+ "page": {
97
+ "$ref": "util.json#/$defs/page"
98
+ },
99
+ "legacy": {
100
+ "$ref": "util.json#/$defs/legacy"
101
+ },
102
+ "reprintedAs": {
103
+ "$ref": "util.json#/$defs/reprintedAs"
104
+ },
105
+ "type": {
106
+ "type": "string",
107
+ "enum": [
108
+ "Blessing",
109
+ "Boon",
110
+ "Charm",
111
+ "Curse",
112
+ "Draconic Gift",
113
+ "Inhabitation",
114
+ "Fragment of Suffering",
115
+ "Other",
116
+ "Piety Trait"
117
+ ]
118
+ },
119
+ "ability": {
120
+ "type": "object",
121
+ "properties": {
122
+ "entry": {
123
+ "$ref": "entry.json"
124
+ }
125
+ },
126
+ "required": [
127
+ "entry"
128
+ ],
129
+ "additionalProperties": false
130
+ },
131
+ "rarity": {
132
+ "$ref": "util.json#/$defs/rarity"
133
+ },
134
+ "additionalSpells": {
135
+ "$ref": "util-additionalspells.json#/$defs/additionalSpellsArray"
136
+ },
137
+ "entries": {
138
+ "type": "array",
139
+ "uniqueItems": true,
140
+ "items": {
141
+ "$ref": "entry.json"
142
+ }
143
+ },
144
+ "hasFluff": {
145
+ "type": "boolean"
146
+ },
147
+ "hasFluffImages": {
148
+ "type": "boolean"
149
+ }
150
+ },
151
+ "additionalProperties": false,
152
+ "required": [
153
+ "name",
154
+ "source",
155
+ "type",
156
+ "entries"
157
+ ]
158
+ },
159
+ {
160
+ "type": "object",
161
+ "properties": {
162
+ "name": {
163
+ "type": "string"
164
+ },
165
+ "source": {
166
+ "$ref": "util.json#/$defs/source"
167
+ },
168
+ "otherSources": {
169
+ "$ref": "util.json#/$defs/otherSources"
170
+ },
171
+ "referenceSources": {
172
+ "$ref": "util.json#/$defs/referenceSources"
173
+ },
174
+ "page": {
175
+ "$ref": "util.json#/$defs/page"
176
+ },
177
+ "legacy": {
178
+ "$ref": "util.json#/$defs/legacy"
179
+ },
180
+ "reprintedAs": {
181
+ "$ref": "util.json#/$defs/reprintedAs"
182
+ },
183
+ "type": {
184
+ "type": "string",
185
+ "enum": [
186
+ "Blessing",
187
+ "Boon",
188
+ "Charm",
189
+ "Curse",
190
+ "Draconic Gift",
191
+ "Inhabitation",
192
+ "Fragment of Suffering",
193
+ "Other",
194
+ "Piety Trait"
195
+ ]
196
+ },
197
+ "ability": {
198
+ "type": "object",
199
+ "properties": {
200
+ "entry": {
201
+ "$ref": "entry.json"
202
+ }
203
+ },
204
+ "required": [
205
+ "entry"
206
+ ],
207
+ "additionalProperties": false
208
+ },
209
+ "rarity": {
210
+ "$ref": "util.json#/$defs/rarity"
211
+ },
212
+ "additionalSpells": {
213
+ "$ref": "util-additionalspells.json#/$defs/additionalSpellsArray"
214
+ },
215
+ "entries": {
216
+ "type": "array",
217
+ "uniqueItems": true,
218
+ "items": {
219
+ "$ref": "entry.json"
220
+ }
221
+ },
222
+ "hasFluff": {
223
+ "type": "boolean"
224
+ },
225
+ "hasFluffImages": {
226
+ "type": "boolean"
227
+ },
228
+ "_copy": {
229
+ "$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
230
+ }
231
+ },
232
+ "additionalProperties": false,
233
+ "required": [
234
+ "_copy"
235
+ ]
236
+ }
237
+ ]
84
238
  }
85
239
  },
86
240
  "properties": {
241
+ "_meta": {
242
+ "$ref": "util.json#/$defs/metaBlock"
243
+ },
87
244
  "reward": {
88
245
  "type": "array",
89
246
  "minItems": 1,
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "senses.json",
4
- "version": "1.0.5",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
- "sense": {
7
+ "senseData": {
8
8
  "type": "object",
9
9
  "properties": {
10
10
  "name": {
@@ -26,15 +26,76 @@
26
26
  }
27
27
  }
28
28
  },
29
- "required": [
30
- "name",
31
- "source",
32
- "entries"
33
- ],
34
29
  "additionalProperties": false
30
+ },
31
+ "sense": {
32
+ "anyOf": [
33
+ {
34
+ "type": "object",
35
+ "properties": {
36
+ "name": {
37
+ "type": "string"
38
+ },
39
+ "source": {
40
+ "$ref": "util.json#/$defs/source"
41
+ },
42
+ "page": {
43
+ "$ref": "util.json#/$defs/page"
44
+ },
45
+ "reprintedAs": {
46
+ "$ref": "util.json#/$defs/reprintedAs"
47
+ },
48
+ "entries": {
49
+ "type": "array",
50
+ "items": {
51
+ "$ref": "entry.json"
52
+ }
53
+ }
54
+ },
55
+ "additionalProperties": false,
56
+ "required": [
57
+ "name",
58
+ "source",
59
+ "entries"
60
+ ]
61
+ },
62
+ {
63
+ "type": "object",
64
+ "properties": {
65
+ "name": {
66
+ "type": "string"
67
+ },
68
+ "source": {
69
+ "$ref": "util.json#/$defs/source"
70
+ },
71
+ "page": {
72
+ "$ref": "util.json#/$defs/page"
73
+ },
74
+ "reprintedAs": {
75
+ "$ref": "util.json#/$defs/reprintedAs"
76
+ },
77
+ "entries": {
78
+ "type": "array",
79
+ "items": {
80
+ "$ref": "entry.json"
81
+ }
82
+ },
83
+ "_copy": {
84
+ "$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
85
+ }
86
+ },
87
+ "additionalProperties": false,
88
+ "required": [
89
+ "_copy"
90
+ ]
91
+ }
92
+ ]
35
93
  }
36
94
  },
37
95
  "properties": {
96
+ "_meta": {
97
+ "$ref": "util.json#/$defs/metaBlock"
98
+ },
38
99
  "sense": {
39
100
  "type": "array",
40
101
  "minItems": 1,