5etools-utils 0.13.9 → 0.13.11

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 (43) hide show
  1. package/package.json +1 -1
  2. package/schema/brew/homebrew.json +15 -6
  3. package/schema/brew/items-shared.json +74 -1
  4. package/schema/brew/items.json +7 -37
  5. package/schema/brew/magicvariants.json +13 -49
  6. package/schema/brew/tables.json +17 -1
  7. package/schema/brew/util-foundry.json +384 -2
  8. package/schema/brew/util-token.json +24 -1
  9. package/schema/brew-fast/homebrew.json +15 -6
  10. package/schema/brew-fast/items-shared.json +74 -1
  11. package/schema/brew-fast/items.json +7 -37
  12. package/schema/brew-fast/magicvariants.json +13 -49
  13. package/schema/brew-fast/tables.json +17 -1
  14. package/schema/brew-fast/util-foundry.json +384 -2
  15. package/schema/brew-fast/util-token.json +24 -1
  16. package/schema/site/homebrew.json +15 -6
  17. package/schema/site/items-shared.json +74 -1
  18. package/schema/site/items.json +7 -37
  19. package/schema/site/magicvariants.json +13 -49
  20. package/schema/site/tables.json +1 -1
  21. package/schema/site/util-foundry.json +384 -2
  22. package/schema/site/util-token.json +24 -1
  23. package/schema/site-fast/homebrew.json +15 -6
  24. package/schema/site-fast/items-shared.json +74 -1
  25. package/schema/site-fast/items.json +7 -37
  26. package/schema/site-fast/magicvariants.json +13 -49
  27. package/schema/site-fast/tables.json +1 -1
  28. package/schema/site-fast/util-foundry.json +384 -2
  29. package/schema/site-fast/util-token.json +24 -1
  30. package/schema/ua/homebrew.json +15 -6
  31. package/schema/ua/items-shared.json +74 -1
  32. package/schema/ua/items.json +7 -37
  33. package/schema/ua/magicvariants.json +13 -49
  34. package/schema/ua/tables.json +1 -1
  35. package/schema/ua/util-foundry.json +384 -2
  36. package/schema/ua/util-token.json +24 -1
  37. package/schema/ua-fast/homebrew.json +15 -6
  38. package/schema/ua-fast/items-shared.json +74 -1
  39. package/schema/ua-fast/items.json +7 -37
  40. package/schema/ua-fast/magicvariants.json +13 -49
  41. package/schema/ua-fast/tables.json +1 -1
  42. package/schema/ua-fast/util-foundry.json +384 -2
  43. package/schema/ua-fast/util-token.json +24 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.13.9",
3
+ "version": "0.13.11",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.31",
3
+ "version": "1.11.0",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -542,6 +542,9 @@
542
542
  "action": {
543
543
  "$ref": "actions.json#/properties/action"
544
544
  },
545
+ "foundryAction": {
546
+ "$ref": "foundry-actions.json#/properties/action"
547
+ },
545
548
  "item": {
546
549
  "$ref": "items.json#/properties/item"
547
550
  },
@@ -584,12 +587,12 @@
584
587
  "background": {
585
588
  "$ref": "backgrounds.json#/properties/background"
586
589
  },
587
- "backgroundFeature": {
588
- "$ref": "foundry-backgrounds.json#/properties/backgroundFeature"
589
- },
590
590
  "backgroundFluff": {
591
591
  "$ref": "fluff-backgrounds.json#/properties/backgroundFluff"
592
592
  },
593
+ "foundryBackgroundFeature": {
594
+ "$ref": "foundry-backgrounds.json#/properties/backgroundFeature"
595
+ },
593
596
  "charoption": {
594
597
  "$ref": "charcreationoptions.json#/properties/charoption"
595
598
  },
@@ -671,13 +674,16 @@
671
674
  "optionalfeatureFluff": {
672
675
  "$ref": "fluff-optionalfeatures.json#/properties/optionalfeatureFluff"
673
676
  },
677
+ "foundryOptionalfeature": {
678
+ "$ref": "foundry-optionalfeatures.json#/properties/optionalfeature"
679
+ },
674
680
  "psionic": {
675
681
  "$ref": "psionics.json#/properties/psionic"
676
682
  },
677
- "psionicDisciplineFocus": {
683
+ "foundryPsionicDisciplineFocus": {
678
684
  "$ref": "foundry-psionics.json#/properties/psionicDisciplineFocus"
679
685
  },
680
- "psionicDisciplineActive": {
686
+ "foundryPsionicDisciplineActive": {
681
687
  "$ref": "foundry-psionics.json#/properties/psionicDisciplineActive"
682
688
  },
683
689
  "race": {
@@ -737,6 +743,9 @@
737
743
  "vehicleUpgrade": {
738
744
  "$ref": "vehicles.json#/properties/vehicleUpgrade"
739
745
  },
746
+ "foundryVehicleUpgrade": {
747
+ "$ref": "foundry-vehicles.json#/properties/vehicleUpgrade"
748
+ },
740
749
  "vehicleFluff": {
741
750
  "$ref": "fluff-vehicles.json#/properties/vehicleFluff"
742
751
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "items-shared.json",
4
4
  "title": "Shared Item Schema",
5
5
  "description": "Shared item definitions to be used in item schemas.",
6
- "version": "1.1.7",
6
+ "version": "1.1.8",
7
7
  "$defs": {
8
8
  "_itemModifySpeedEqual": {
9
9
  "type": "string",
@@ -550,6 +550,79 @@
550
550
  "minItems": 1,
551
551
  "uniqueItems": true
552
552
  },
553
+ "_itemAttachedSpells_arrayOfSpell": {
554
+ "type": "array",
555
+ "items": {
556
+ "type": "string"
557
+ },
558
+ "uniqueItems": true,
559
+ "minItems": 1
560
+ },
561
+ "_itemAttachedSpells_frequency": {
562
+ "type": "object",
563
+ "patternProperties": {
564
+ "^\\d+e$": {
565
+ "$ref": "#/$defs/_itemAttachedSpells_arrayOfSpell"
566
+ },
567
+ "^\\d+$": {
568
+ "$ref": "#/$defs/_itemAttachedSpells_arrayOfSpell"
569
+ }
570
+ },
571
+ "additionalProperties": false,
572
+ "minProperties": 1
573
+ },
574
+ "_itemAttachedSpells_charges": {
575
+ "type": "object",
576
+ "patternProperties": {
577
+ "^\\d+$": {
578
+ "$ref": "#/$defs/_itemAttachedSpells_arrayOfSpell"
579
+ }
580
+ },
581
+ "additionalProperties": false,
582
+ "minProperties": 1
583
+ },
584
+ "itemAttachedSpells": {
585
+ "oneOf": [
586
+ {
587
+ "description": "A generic array of attached spells, implicitly \"other\" usage type (see below).",
588
+ "type": "array",
589
+ "minItems": 1,
590
+ "uniqueItems": true,
591
+ "items": {
592
+ "type": "string"
593
+ }
594
+ },
595
+ {
596
+ "description": "Attached spells broken down by usage type.",
597
+ "type": "object",
598
+ "properties": {
599
+ "rest": {
600
+ "$ref": "#/$defs/_itemAttachedSpells_frequency"
601
+ },
602
+ "daily": {
603
+ "$ref": "#/$defs/_itemAttachedSpells_frequency"
604
+ },
605
+ "limited": {
606
+ "$ref": "#/$defs/_itemAttachedSpells_frequency"
607
+ },
608
+ "charges": {
609
+ "$ref": "#/$defs/_itemAttachedSpells_charges"
610
+ },
611
+ "will": {
612
+ "$ref": "#/$defs/_itemAttachedSpells_arrayOfSpell"
613
+ },
614
+ "ritual": {
615
+ "$ref": "#/$defs/_itemAttachedSpells_arrayOfSpell"
616
+ },
617
+ "other": {
618
+ "$ref": "#/$defs/_itemAttachedSpells_arrayOfSpell"
619
+ }
620
+ },
621
+ "additionalProperties": false,
622
+ "minProperties": 1
623
+ }
624
+ ]
625
+ },
553
626
  "customProperties": {
554
627
  "description": "An unrestricted area for custom properties to be stored.",
555
628
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "items.json",
4
- "version": "1.14.19",
4
+ "version": "1.14.20",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "itemData": {
@@ -249,12 +249,7 @@
249
249
  }
250
250
  },
251
251
  "attachedSpells": {
252
- "type": "array",
253
- "minItems": 1,
254
- "uniqueItems": true,
255
- "items": {
256
- "type": "string"
257
- }
252
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
258
253
  },
259
254
  "ability": {
260
255
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -769,12 +764,7 @@
769
764
  }
770
765
  },
771
766
  "attachedSpells": {
772
- "type": "array",
773
- "minItems": 1,
774
- "uniqueItems": true,
775
- "items": {
776
- "type": "string"
777
- }
767
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
778
768
  },
779
769
  "ability": {
780
770
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -1291,12 +1281,7 @@
1291
1281
  }
1292
1282
  },
1293
1283
  "attachedSpells": {
1294
- "type": "array",
1295
- "minItems": 1,
1296
- "uniqueItems": true,
1297
- "items": {
1298
- "type": "string"
1299
- }
1284
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
1300
1285
  },
1301
1286
  "ability": {
1302
1287
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -1811,12 +1796,7 @@
1811
1796
  }
1812
1797
  },
1813
1798
  "attachedSpells": {
1814
- "type": "array",
1815
- "minItems": 1,
1816
- "uniqueItems": true,
1817
- "items": {
1818
- "type": "string"
1819
- }
1799
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
1820
1800
  },
1821
1801
  "ability": {
1822
1802
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -2338,12 +2318,7 @@
2338
2318
  }
2339
2319
  },
2340
2320
  "attachedSpells": {
2341
- "type": "array",
2342
- "minItems": 1,
2343
- "uniqueItems": true,
2344
- "items": {
2345
- "type": "string"
2346
- }
2321
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
2347
2322
  },
2348
2323
  "ability": {
2349
2324
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -2862,12 +2837,7 @@
2862
2837
  }
2863
2838
  },
2864
2839
  "attachedSpells": {
2865
- "type": "array",
2866
- "minItems": 1,
2867
- "uniqueItems": true,
2868
- "items": {
2869
- "type": "string"
2870
- }
2840
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
2871
2841
  },
2872
2842
  "ability": {
2873
2843
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.9.10",
4
+ "version": "1.9.11",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_magicvariantDataBase": {
@@ -314,10 +314,7 @@
314
314
  "$ref": "items-shared.json#/$defs/itemRechargeAmount"
315
315
  },
316
316
  "attachedSpells": {
317
- "type": "array",
318
- "items": {
319
- "type": "string"
320
- }
317
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
321
318
  },
322
319
  "ability": {
323
320
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -571,10 +568,7 @@
571
568
  ]
572
569
  },
573
570
  "attachedSpells": {
574
- "type": "array",
575
- "items": {
576
- "type": "string"
577
- }
571
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
578
572
  },
579
573
  "ammo": {
580
574
  "description": "Adds ammunition text to the header of the generic variant.",
@@ -929,10 +923,7 @@
929
923
  "$ref": "items-shared.json#/$defs/itemRechargeAmount"
930
924
  },
931
925
  "attachedSpells": {
932
- "type": "array",
933
- "items": {
934
- "type": "string"
935
- }
926
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
936
927
  },
937
928
  "ability": {
938
929
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -1186,10 +1177,7 @@
1186
1177
  ]
1187
1178
  },
1188
1179
  "attachedSpells": {
1189
- "type": "array",
1190
- "items": {
1191
- "type": "string"
1192
- }
1180
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
1193
1181
  },
1194
1182
  "ammo": {
1195
1183
  "description": "Adds ammunition text to the header of the generic variant.",
@@ -1544,10 +1532,7 @@
1544
1532
  "$ref": "items-shared.json#/$defs/itemRechargeAmount"
1545
1533
  },
1546
1534
  "attachedSpells": {
1547
- "type": "array",
1548
- "items": {
1549
- "type": "string"
1550
- }
1535
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
1551
1536
  },
1552
1537
  "ability": {
1553
1538
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -1805,10 +1790,7 @@
1805
1790
  ]
1806
1791
  },
1807
1792
  "attachedSpells": {
1808
- "type": "array",
1809
- "items": {
1810
- "type": "string"
1811
- }
1793
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
1812
1794
  },
1813
1795
  "ammo": {
1814
1796
  "description": "Adds ammunition text to the header of the generic variant.",
@@ -2165,10 +2147,7 @@
2165
2147
  "$ref": "items-shared.json#/$defs/itemRechargeAmount"
2166
2148
  },
2167
2149
  "attachedSpells": {
2168
- "type": "array",
2169
- "items": {
2170
- "type": "string"
2171
- }
2150
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
2172
2151
  },
2173
2152
  "ability": {
2174
2153
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -2425,10 +2404,7 @@
2425
2404
  ]
2426
2405
  },
2427
2406
  "attachedSpells": {
2428
- "type": "array",
2429
- "items": {
2430
- "type": "string"
2431
- }
2407
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
2432
2408
  },
2433
2409
  "ammo": {
2434
2410
  "description": "Adds ammunition text to the header of the generic variant.",
@@ -2789,10 +2765,7 @@
2789
2765
  "$ref": "items-shared.json#/$defs/itemRechargeAmount"
2790
2766
  },
2791
2767
  "attachedSpells": {
2792
- "type": "array",
2793
- "items": {
2794
- "type": "string"
2795
- }
2768
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
2796
2769
  },
2797
2770
  "ability": {
2798
2771
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -3046,10 +3019,7 @@
3046
3019
  ]
3047
3020
  },
3048
3021
  "attachedSpells": {
3049
- "type": "array",
3050
- "items": {
3051
- "type": "string"
3052
- }
3022
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
3053
3023
  },
3054
3024
  "ammo": {
3055
3025
  "description": "Adds ammunition text to the header of the generic variant.",
@@ -3411,10 +3381,7 @@
3411
3381
  "$ref": "items-shared.json#/$defs/itemRechargeAmount"
3412
3382
  },
3413
3383
  "attachedSpells": {
3414
- "type": "array",
3415
- "items": {
3416
- "type": "string"
3417
- }
3384
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
3418
3385
  },
3419
3386
  "ability": {
3420
3387
  "$ref": "items-shared.json#/$defs/itemAbility"
@@ -3668,10 +3635,7 @@
3668
3635
  ]
3669
3636
  },
3670
3637
  "attachedSpells": {
3671
- "type": "array",
3672
- "items": {
3673
- "type": "string"
3674
- }
3638
+ "$ref": "items-shared.json#/$defs/itemAttachedSpells"
3675
3639
  },
3676
3640
  "ammo": {
3677
3641
  "description": "Adds ammunition text to the header of the generic variant.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "tables.json",
4
- "version": "1.1.7",
4
+ "version": "1.1.8",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "tableData": {
@@ -171,6 +171,22 @@
171
171
  }
172
172
  }
173
173
  },
174
+ "parentEntity": {
175
+ "type": "object",
176
+ "properties": {
177
+ "prop": {
178
+ "type": "string"
179
+ },
180
+ "uid": {
181
+ "type": "string"
182
+ }
183
+ },
184
+ "additionalProperties": false,
185
+ "required": [
186
+ "prop",
187
+ "uid"
188
+ ]
189
+ },
174
190
  "foundryImg": {
175
191
  "$ref": "util-foundry.json#/$defs/foundryImg"
176
192
  }