5etools-utils 0.9.14 → 0.9.16

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.
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
- "recipe": {
7
+ "recipeData": {
8
8
  "type": "object",
9
9
  "properties": {
10
10
  "name": {
@@ -19,6 +19,9 @@
19
19
  "time": {
20
20
  "type": "object",
21
21
  "properties": {
22
+ "total": {
23
+ "$ref": "util-time.json#/$defs/timeMinutes"
24
+ },
22
25
  "cooking": {
23
26
  "$ref": "util-time.json#/$defs/timeMinutes"
24
27
  },
@@ -172,16 +175,438 @@
172
175
  "type": "boolean"
173
176
  }
174
177
  },
175
- "required": [
176
- "name",
177
- "source",
178
- "instructions",
179
- "ingredients"
180
- ],
181
178
  "additionalProperties": false
179
+ },
180
+ "recipe": {
181
+ "anyOf": [
182
+ {
183
+ "type": "object",
184
+ "properties": {
185
+ "name": {
186
+ "type": "string"
187
+ },
188
+ "source": {
189
+ "$ref": "util.json#/$defs/source"
190
+ },
191
+ "page": {
192
+ "$ref": "util.json#/$defs/page"
193
+ },
194
+ "time": {
195
+ "type": "object",
196
+ "properties": {
197
+ "total": {
198
+ "$ref": "util-time.json#/$defs/timeMinutes"
199
+ },
200
+ "cooking": {
201
+ "$ref": "util-time.json#/$defs/timeMinutes"
202
+ },
203
+ "preparation": {
204
+ "$ref": "util-time.json#/$defs/timeMinutes"
205
+ }
206
+ },
207
+ "additionalProperties": false,
208
+ "minProperties": 1
209
+ },
210
+ "serves": {
211
+ "oneOf": [
212
+ {
213
+ "type": "object",
214
+ "properties": {
215
+ "min": {
216
+ "type": "integer"
217
+ },
218
+ "max": {
219
+ "type": "integer"
220
+ },
221
+ "note": {
222
+ "$ref": "entry.json"
223
+ }
224
+ },
225
+ "required": [
226
+ "min",
227
+ "max"
228
+ ],
229
+ "additionalProperties": false
230
+ },
231
+ {
232
+ "type": "object",
233
+ "properties": {
234
+ "exact": {
235
+ "type": "integer"
236
+ },
237
+ "note": {
238
+ "$ref": "entry.json"
239
+ }
240
+ },
241
+ "required": [
242
+ "exact"
243
+ ],
244
+ "additionalProperties": false
245
+ }
246
+ ]
247
+ },
248
+ "makes": {
249
+ "$ref": "entry.json"
250
+ },
251
+ "ingredients": {
252
+ "type": "array",
253
+ "items": {
254
+ "$ref": "entry.json"
255
+ }
256
+ },
257
+ "equipment": {
258
+ "type": "array",
259
+ "items": {
260
+ "$ref": "entry.json"
261
+ }
262
+ },
263
+ "instructions": {
264
+ "type": "array",
265
+ "items": {
266
+ "$ref": "entry.json"
267
+ }
268
+ },
269
+ "noteCook": {
270
+ "type": "array",
271
+ "items": {
272
+ "$ref": "entry.json"
273
+ }
274
+ },
275
+ "type": {
276
+ "type": "string",
277
+ "enum": [
278
+ "Dwarven",
279
+ "Elven",
280
+ "Elixir/Ale",
281
+ "Human",
282
+ "Halfling",
283
+ "Uncommon Cuisine"
284
+ ]
285
+ },
286
+ "diet": {
287
+ "type": "string",
288
+ "description": "C: Vegetarian [aka \"cheese\"]\n V: Vegan\n X: Omnivorous",
289
+ "enum": [
290
+ "C",
291
+ "V",
292
+ "X"
293
+ ]
294
+ },
295
+ "miscTags": {
296
+ "type": "array",
297
+ "items": {
298
+ "type": "string",
299
+ "enum": [
300
+ "alcohol"
301
+ ]
302
+ }
303
+ },
304
+ "allergenGroups": {
305
+ "type": "array",
306
+ "description": "One of the 14 major food allergens; see https://erudus.com/food-allergens for more information.",
307
+ "items": {
308
+ "type": "string",
309
+ "enum": [
310
+ "celery",
311
+ "crustaceans",
312
+ "eggs",
313
+ "fish",
314
+ "gluten",
315
+ "lupin",
316
+ "milk",
317
+ "molluscs",
318
+ "mustard",
319
+ "nuts",
320
+ "peanuts",
321
+ "sesame",
322
+ "soya",
323
+ "sulphites"
324
+ ]
325
+ }
326
+ },
327
+ "dishTypes": {
328
+ "type": "array",
329
+ "items": {
330
+ "type": "string",
331
+ "enum": [
332
+ "appetizer",
333
+ "bread",
334
+ "cocktail",
335
+ "dessert",
336
+ "drink",
337
+ "entree",
338
+ "pastry",
339
+ "salad",
340
+ "side",
341
+ "snack",
342
+ "soup"
343
+ ]
344
+ }
345
+ },
346
+ "hasFluff": {
347
+ "type": "boolean"
348
+ },
349
+ "hasFluffImages": {
350
+ "type": "boolean"
351
+ }
352
+ },
353
+ "additionalProperties": false,
354
+ "required": [
355
+ "name",
356
+ "source",
357
+ "instructions",
358
+ "ingredients"
359
+ ]
360
+ },
361
+ {
362
+ "type": "object",
363
+ "properties": {
364
+ "name": {
365
+ "type": "string"
366
+ },
367
+ "source": {
368
+ "$ref": "util.json#/$defs/source"
369
+ },
370
+ "page": {
371
+ "$ref": "util.json#/$defs/page"
372
+ },
373
+ "time": {
374
+ "type": "object",
375
+ "properties": {
376
+ "total": {
377
+ "$ref": "util-time.json#/$defs/timeMinutes"
378
+ },
379
+ "cooking": {
380
+ "$ref": "util-time.json#/$defs/timeMinutes"
381
+ },
382
+ "preparation": {
383
+ "$ref": "util-time.json#/$defs/timeMinutes"
384
+ }
385
+ },
386
+ "additionalProperties": false,
387
+ "minProperties": 1
388
+ },
389
+ "serves": {
390
+ "oneOf": [
391
+ {
392
+ "type": "object",
393
+ "properties": {
394
+ "min": {
395
+ "type": "integer"
396
+ },
397
+ "max": {
398
+ "type": "integer"
399
+ },
400
+ "note": {
401
+ "$ref": "entry.json"
402
+ }
403
+ },
404
+ "required": [
405
+ "min",
406
+ "max"
407
+ ],
408
+ "additionalProperties": false
409
+ },
410
+ {
411
+ "type": "object",
412
+ "properties": {
413
+ "exact": {
414
+ "type": "integer"
415
+ },
416
+ "note": {
417
+ "$ref": "entry.json"
418
+ }
419
+ },
420
+ "required": [
421
+ "exact"
422
+ ],
423
+ "additionalProperties": false
424
+ }
425
+ ]
426
+ },
427
+ "makes": {
428
+ "$ref": "entry.json"
429
+ },
430
+ "ingredients": {
431
+ "type": "array",
432
+ "items": {
433
+ "$ref": "entry.json"
434
+ }
435
+ },
436
+ "equipment": {
437
+ "type": "array",
438
+ "items": {
439
+ "$ref": "entry.json"
440
+ }
441
+ },
442
+ "instructions": {
443
+ "type": "array",
444
+ "items": {
445
+ "$ref": "entry.json"
446
+ }
447
+ },
448
+ "noteCook": {
449
+ "type": "array",
450
+ "items": {
451
+ "$ref": "entry.json"
452
+ }
453
+ },
454
+ "type": {
455
+ "type": "string",
456
+ "enum": [
457
+ "Dwarven",
458
+ "Elven",
459
+ "Elixir/Ale",
460
+ "Human",
461
+ "Halfling",
462
+ "Uncommon Cuisine"
463
+ ]
464
+ },
465
+ "diet": {
466
+ "type": "string",
467
+ "description": "C: Vegetarian [aka \"cheese\"]\n V: Vegan\n X: Omnivorous",
468
+ "enum": [
469
+ "C",
470
+ "V",
471
+ "X"
472
+ ]
473
+ },
474
+ "miscTags": {
475
+ "type": "array",
476
+ "items": {
477
+ "type": "string",
478
+ "enum": [
479
+ "alcohol"
480
+ ]
481
+ }
482
+ },
483
+ "allergenGroups": {
484
+ "type": "array",
485
+ "description": "One of the 14 major food allergens; see https://erudus.com/food-allergens for more information.",
486
+ "items": {
487
+ "type": "string",
488
+ "enum": [
489
+ "celery",
490
+ "crustaceans",
491
+ "eggs",
492
+ "fish",
493
+ "gluten",
494
+ "lupin",
495
+ "milk",
496
+ "molluscs",
497
+ "mustard",
498
+ "nuts",
499
+ "peanuts",
500
+ "sesame",
501
+ "soya",
502
+ "sulphites"
503
+ ]
504
+ }
505
+ },
506
+ "dishTypes": {
507
+ "type": "array",
508
+ "items": {
509
+ "type": "string",
510
+ "enum": [
511
+ "appetizer",
512
+ "bread",
513
+ "cocktail",
514
+ "dessert",
515
+ "drink",
516
+ "entree",
517
+ "pastry",
518
+ "salad",
519
+ "side",
520
+ "snack",
521
+ "soup"
522
+ ]
523
+ }
524
+ },
525
+ "hasFluff": {
526
+ "type": "boolean"
527
+ },
528
+ "hasFluffImages": {
529
+ "type": "boolean"
530
+ },
531
+ "_copy": {
532
+ "type": "object",
533
+ "properties": {
534
+ "name": {
535
+ "type": "string"
536
+ },
537
+ "source": {
538
+ "$ref": "util.json#/$defs/source"
539
+ },
540
+ "pantheon": {
541
+ "description": "Used in deity data",
542
+ "type": "string"
543
+ },
544
+ "shortName": {
545
+ "description": "Used in subclass data",
546
+ "type": "string"
547
+ },
548
+ "className": {
549
+ "description": "Used in subclass data",
550
+ "type": "string"
551
+ },
552
+ "classSource": {
553
+ "description": "Used in subclass data",
554
+ "$ref": "util.json#/$defs/source"
555
+ },
556
+ "raceName": {
557
+ "description": "Used in race feature data",
558
+ "type": "string"
559
+ },
560
+ "raceSource": {
561
+ "description": "Used in race feature data",
562
+ "$ref": "util.json#/$defs/source"
563
+ },
564
+ "_mod": {
565
+ "$ref": "util.json#/$defs/_modObject"
566
+ },
567
+ "_trait": {
568
+ "type": "object",
569
+ "properties": {
570
+ "name": {
571
+ "type": "string"
572
+ },
573
+ "source": {
574
+ "$ref": "util.json#/$defs/source"
575
+ }
576
+ },
577
+ "required": [
578
+ "name",
579
+ "source"
580
+ ]
581
+ },
582
+ "_preserve": {
583
+ "type": "object",
584
+ "patternProperties": {
585
+ ".*": {
586
+ "const": true
587
+ }
588
+ }
589
+ }
590
+ },
591
+ "required": [
592
+ "name",
593
+ "source"
594
+ ],
595
+ "additionalProperties": false
596
+ }
597
+ },
598
+ "additionalProperties": false,
599
+ "required": [
600
+ "_copy"
601
+ ]
602
+ }
603
+ ]
182
604
  }
183
605
  },
184
606
  "properties": {
607
+ "_meta": {
608
+ "$ref": "util.json#/$defs/metaBlock"
609
+ },
185
610
  "recipe": {
186
611
  "type": "array",
187
612
  "uniqueItems": true,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "spells.json",
4
- "version": "1.9.7",
4
+ "version": "1.9.8",
5
5
  "title": "Spells",
6
6
  "type": "object",
7
7
  "$defs": {
@@ -260,13 +260,14 @@
260
260
  },
261
261
  "miscTags": {
262
262
  "type": "array",
263
- "description": "AAD: Additional Attack Damage\n DFT: Difficult Terrain\n FMV: Forced Movement\n HL: Healing\n LGT: Creates Light\n LGTS: Creates Sunlight\n MAC: Modifies AC\n OBJ: Affects Objects\n OBS: Obscures Vision\n PRM: Permanent Effects\n PS: Plane Shifting\nRO: Rollable Effects\n SCL: Scaling Effects\n SMN: Summons Creature\n SGT: Requires Sight\n THP: Grants Temporary Hit Points\n TP: Teleportation\n UBA: Uses Bonus Action",
263
+ "description": "AAD: Additional Attack Damage\n ADV: Grants Advantage\n DFT: Difficult Terrain\n FMV: Forced Movement\n HL: Healing\n LGT: Creates Light\n LGTS: Creates Sunlight\n MAC: Modifies AC\n OBJ: Affects Objects\n OBS: Obscures Vision\n PRM: Permanent Effects\n PS: Plane Shifting\nRO: Rollable Effects\n SCL: Scaling Effects\n SMN: Summons Creature\n SGT: Requires Sight\n THP: Grants Temporary Hit Points\n TP: Teleportation\n UBA: Uses Bonus Action",
264
264
  "minItems": 1,
265
265
  "uniqueItems": true,
266
266
  "items": {
267
267
  "type": "string",
268
268
  "enum": [
269
269
  "AAD",
270
+ "ADV",
270
271
  "DFT",
271
272
  "FMV",
272
273
  "HL",
@@ -603,13 +604,14 @@
603
604
  },
604
605
  "miscTags": {
605
606
  "type": "array",
606
- "description": "AAD: Additional Attack Damage\n DFT: Difficult Terrain\n FMV: Forced Movement\n HL: Healing\n LGT: Creates Light\n LGTS: Creates Sunlight\n MAC: Modifies AC\n OBJ: Affects Objects\n OBS: Obscures Vision\n PRM: Permanent Effects\n PS: Plane Shifting\nRO: Rollable Effects\n SCL: Scaling Effects\n SMN: Summons Creature\n SGT: Requires Sight\n THP: Grants Temporary Hit Points\n TP: Teleportation\n UBA: Uses Bonus Action",
607
+ "description": "AAD: Additional Attack Damage\n ADV: Grants Advantage\n DFT: Difficult Terrain\n FMV: Forced Movement\n HL: Healing\n LGT: Creates Light\n LGTS: Creates Sunlight\n MAC: Modifies AC\n OBJ: Affects Objects\n OBS: Obscures Vision\n PRM: Permanent Effects\n PS: Plane Shifting\nRO: Rollable Effects\n SCL: Scaling Effects\n SMN: Summons Creature\n SGT: Requires Sight\n THP: Grants Temporary Hit Points\n TP: Teleportation\n UBA: Uses Bonus Action",
607
608
  "minItems": 1,
608
609
  "uniqueItems": true,
609
610
  "items": {
610
611
  "type": "string",
611
612
  "enum": [
612
613
  "AAD",
614
+ "ADV",
613
615
  "DFT",
614
616
  "FMV",
615
617
  "HL",
@@ -954,13 +956,14 @@
954
956
  },
955
957
  "miscTags": {
956
958
  "type": "array",
957
- "description": "AAD: Additional Attack Damage\n DFT: Difficult Terrain\n FMV: Forced Movement\n HL: Healing\n LGT: Creates Light\n LGTS: Creates Sunlight\n MAC: Modifies AC\n OBJ: Affects Objects\n OBS: Obscures Vision\n PRM: Permanent Effects\n PS: Plane Shifting\nRO: Rollable Effects\n SCL: Scaling Effects\n SMN: Summons Creature\n SGT: Requires Sight\n THP: Grants Temporary Hit Points\n TP: Teleportation\n UBA: Uses Bonus Action",
959
+ "description": "AAD: Additional Attack Damage\n ADV: Grants Advantage\n DFT: Difficult Terrain\n FMV: Forced Movement\n HL: Healing\n LGT: Creates Light\n LGTS: Creates Sunlight\n MAC: Modifies AC\n OBJ: Affects Objects\n OBS: Obscures Vision\n PRM: Permanent Effects\n PS: Plane Shifting\nRO: Rollable Effects\n SCL: Scaling Effects\n SMN: Summons Creature\n SGT: Requires Sight\n THP: Grants Temporary Hit Points\n TP: Teleportation\n UBA: Uses Bonus Action",
958
960
  "minItems": 1,
959
961
  "uniqueItems": true,
960
962
  "items": {
961
963
  "type": "string",
962
964
  "enum": [
963
965
  "AAD",
966
+ "ADV",
964
967
  "DFT",
965
968
  "FMV",
966
969
  "HL",