5etools-utils 0.4.7 → 0.4.9

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.
@@ -29,89 +29,7 @@
29
29
  }
30
30
  },
31
31
  "ability": {
32
- "type": "array",
33
- "minItems": 1,
34
- "items": {
35
- "type": "object",
36
- "properties": {
37
- "str": {
38
- "type": "integer"
39
- },
40
- "dex": {
41
- "type": "integer"
42
- },
43
- "con": {
44
- "type": "integer"
45
- },
46
- "int": {
47
- "type": "integer"
48
- },
49
- "wis": {
50
- "type": "integer"
51
- },
52
- "cha": {
53
- "type": "integer"
54
- },
55
- "choose": {
56
- "type": "object",
57
- "properties": {
58
- "from": {
59
- "type": "array",
60
- "items": {
61
- "enum": [
62
- "str",
63
- "dex",
64
- "con",
65
- "int",
66
- "wis",
67
- "cha"
68
- ]
69
- },
70
- "uniqueItems": true
71
- },
72
- "count": {
73
- "type": "integer"
74
- },
75
- "amount": {
76
- "type": "integer"
77
- },
78
- "weighted": {
79
- "type": "object",
80
- "properties": {
81
- "from": {
82
- "type": "array",
83
- "items": {
84
- "enum": [
85
- "str",
86
- "dex",
87
- "con",
88
- "int",
89
- "wis",
90
- "cha"
91
- ]
92
- },
93
- "uniqueItems": true
94
- },
95
- "weights": {
96
- "type": "array",
97
- "items": {
98
- "type": "integer"
99
- }
100
- }
101
- }
102
- },
103
- "entry": {
104
- "$ref": "entry.json"
105
- }
106
- },
107
- "additionalProperties": false
108
- },
109
- "hidden": {
110
- "type": "boolean"
111
- }
112
- },
113
- "additionalProperties": false
114
- }
32
+ "$ref": "util.json#/$defs/abilityScores"
115
33
  },
116
34
  "srd": {
117
35
  "$ref": "util.json#/$defs/srd"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.5",
3
+ "version": "1.10.6",
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": {
@@ -26,9 +26,7 @@
26
26
  },
27
27
  "minItems": 1,
28
28
  "uniqueItems": true
29
- }
30
- },
31
- "properties": {
29
+ },
32
30
  "_meta": {
33
31
  "description": "Metadata for the included data arrays",
34
32
  "type": "object",
@@ -289,6 +287,51 @@
289
287
  ],
290
288
  "additionalProperties": false
291
289
  },
290
+ "spellList": {
291
+ "type": "array",
292
+ "items": {
293
+ "$ref": "#/$defs/_spellListItem"
294
+ },
295
+ "minItems": 1,
296
+ "uniqueItems": true
297
+ },
298
+ "_spellListItem": {
299
+ "type": "object",
300
+ "properties": {
301
+ "name": {
302
+ "type": "string"
303
+ },
304
+ "source": {
305
+ "type": "string"
306
+ },
307
+ "spellListType": {
308
+ "type": "string",
309
+ "enum": [
310
+ "groups"
311
+ ]
312
+ },
313
+ "spells": {
314
+ "type": "array",
315
+ "items": {
316
+ "$ref": "util.json#/$defs/spellListSpellRef"
317
+ },
318
+ "minItems": 1,
319
+ "uniqueItems": true
320
+ }
321
+ },
322
+ "required": [
323
+ "name",
324
+ "source",
325
+ "spellListType",
326
+ "spells"
327
+ ],
328
+ "additionalProperties": false
329
+ }
330
+ },
331
+ "properties": {
332
+ "_meta": {
333
+ "$ref": "#/$defs/_meta"
334
+ },
292
335
  "$schema": {
293
336
  "description": "An optional key that allows you specify the schema you want to verify against in compatible IDEs.\nIt is advised that you leave this key out when submitting to the repo.",
294
337
  "type": "string",
@@ -553,6 +596,9 @@
553
596
  },
554
597
  "sense": {
555
598
  "$ref": "senses.json#/properties/sense"
599
+ },
600
+ "spellList": {
601
+ "$ref": "#/$defs/spellList"
556
602
  }
557
603
  },
558
604
  "additionalProperties": false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "races.json",
4
- "version": "1.12.1",
4
+ "version": "1.12.2",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "sharedData": {
@@ -29,7 +29,7 @@
29
29
  "$ref": "util.json#/$defs/reprintedAs"
30
30
  },
31
31
  "ability": {
32
- "$ref": "#/$defs/abilityScores"
32
+ "$ref": "util.json#/$defs/abilityScores"
33
33
  },
34
34
  "size": {
35
35
  "type": "array",
@@ -248,7 +248,7 @@
248
248
  "$ref": "util.json#/$defs/reprintedAs"
249
249
  },
250
250
  "ability": {
251
- "$ref": "#/$defs/abilityScores"
251
+ "$ref": "util.json#/$defs/abilityScores"
252
252
  },
253
253
  "size": {
254
254
  "type": "array",
@@ -480,82 +480,6 @@
480
480
  }
481
481
  ]
482
482
  },
483
- "abilityScores": {
484
- "type": "array",
485
- "items": {
486
- "type": "object",
487
- "properties": {
488
- "str": {
489
- "type": "integer"
490
- },
491
- "dex": {
492
- "type": "integer"
493
- },
494
- "con": {
495
- "type": "integer"
496
- },
497
- "int": {
498
- "type": "integer"
499
- },
500
- "wis": {
501
- "type": "integer"
502
- },
503
- "cha": {
504
- "type": "integer"
505
- },
506
- "choose": {
507
- "type": "object",
508
- "properties": {
509
- "from": {
510
- "type": "array",
511
- "items": {
512
- "enum": [
513
- "str",
514
- "dex",
515
- "con",
516
- "int",
517
- "wis",
518
- "cha"
519
- ]
520
- },
521
- "uniqueItems": true
522
- },
523
- "count": {
524
- "type": "integer"
525
- },
526
- "amount": {
527
- "type": "integer"
528
- },
529
- "weighted": {
530
- "type": "object",
531
- "properties": {
532
- "from": {
533
- "type": "array",
534
- "items": {
535
- "enum": [
536
- "str",
537
- "dex",
538
- "con",
539
- "int",
540
- "wis",
541
- "cha"
542
- ]
543
- },
544
- "uniqueItems": true
545
- },
546
- "weights": {
547
- "type": "array",
548
- "items": {
549
- "type": "integer"
550
- }
551
- }
552
- }
553
- }
554
- }
555
- }
556
- }
557
- }
558
- },
559
483
  "heightAndWeight": {
560
484
  "type": "object",
561
485
  "properties": {
@@ -634,7 +558,7 @@
634
558
  "$ref": "util.json#/$defs/reprintedAs"
635
559
  },
636
560
  "ability": {
637
- "$ref": "#/$defs/abilityScores"
561
+ "$ref": "util.json#/$defs/abilityScores"
638
562
  },
639
563
  "size": {
640
564
  "type": "array",
@@ -857,7 +781,7 @@
857
781
  "$ref": "util.json#/$defs/reprintedAs"
858
782
  },
859
783
  "ability": {
860
- "$ref": "#/$defs/abilityScores"
784
+ "$ref": "util.json#/$defs/abilityScores"
861
785
  },
862
786
  "size": {
863
787
  "type": "array",
@@ -1141,7 +1065,7 @@
1141
1065
  "$ref": "util.json#/$defs/reprintedAs"
1142
1066
  },
1143
1067
  "ability": {
1144
- "$ref": "#/$defs/abilityScores"
1068
+ "$ref": "util.json#/$defs/abilityScores"
1145
1069
  },
1146
1070
  "size": {
1147
1071
  "type": "array",
@@ -1375,7 +1299,7 @@
1375
1299
  "$ref": "util.json#/$defs/reprintedAs"
1376
1300
  },
1377
1301
  "ability": {
1378
- "$ref": "#/$defs/abilityScores"
1302
+ "$ref": "util.json#/$defs/abilityScores"
1379
1303
  },
1380
1304
  "size": {
1381
1305
  "type": "array",
@@ -3,7 +3,7 @@
3
3
  "$id": "util.json",
4
4
  "title": "Util",
5
5
  "description": "Utility definitions to be used in other schemas.",
6
- "version": "1.13.4",
6
+ "version": "1.13.6",
7
7
  "$defs": {
8
8
  "metaBlock": {
9
9
  "type": "object",
@@ -1191,6 +1191,91 @@
1191
1191
  "uniqueItems": true,
1192
1192
  "minItems": 1
1193
1193
  },
1194
+ "abilityScores": {
1195
+ "type": "array",
1196
+ "minItems": 1,
1197
+ "items": {
1198
+ "type": "object",
1199
+ "properties": {
1200
+ "str": {
1201
+ "type": "integer"
1202
+ },
1203
+ "dex": {
1204
+ "type": "integer"
1205
+ },
1206
+ "con": {
1207
+ "type": "integer"
1208
+ },
1209
+ "int": {
1210
+ "type": "integer"
1211
+ },
1212
+ "wis": {
1213
+ "type": "integer"
1214
+ },
1215
+ "cha": {
1216
+ "type": "integer"
1217
+ },
1218
+ "choose": {
1219
+ "type": "object",
1220
+ "properties": {
1221
+ "from": {
1222
+ "type": "array",
1223
+ "items": {
1224
+ "enum": [
1225
+ "str",
1226
+ "dex",
1227
+ "con",
1228
+ "int",
1229
+ "wis",
1230
+ "cha"
1231
+ ]
1232
+ },
1233
+ "uniqueItems": true
1234
+ },
1235
+ "count": {
1236
+ "type": "integer"
1237
+ },
1238
+ "amount": {
1239
+ "type": "integer"
1240
+ },
1241
+ "weighted": {
1242
+ "type": "object",
1243
+ "properties": {
1244
+ "from": {
1245
+ "type": "array",
1246
+ "items": {
1247
+ "enum": [
1248
+ "str",
1249
+ "dex",
1250
+ "con",
1251
+ "int",
1252
+ "wis",
1253
+ "cha"
1254
+ ]
1255
+ },
1256
+ "uniqueItems": true
1257
+ },
1258
+ "weights": {
1259
+ "type": "array",
1260
+ "items": {
1261
+ "type": "integer"
1262
+ }
1263
+ }
1264
+ }
1265
+ },
1266
+ "entry": {
1267
+ "$ref": "entry.json"
1268
+ }
1269
+ },
1270
+ "additionalProperties": false
1271
+ },
1272
+ "hidden": {
1273
+ "type": "boolean"
1274
+ }
1275
+ },
1276
+ "additionalProperties": false
1277
+ }
1278
+ },
1194
1279
  "additionalFeatsArray": {
1195
1280
  "type": "array",
1196
1281
  "items": {
@@ -3695,6 +3780,90 @@
3695
3780
  ]
3696
3781
  }
3697
3782
  },
3783
+ "spellListSpellRef": {
3784
+ "description": "A reference to a spell or an existing spell list, linked by name and source. Assumes PHB as the source, if none is provided.",
3785
+ "oneOf": [
3786
+ {
3787
+ "description": "Another class's spell list",
3788
+ "type": "object",
3789
+ "properties": {
3790
+ "className": {
3791
+ "type": "string"
3792
+ },
3793
+ "classSource": {
3794
+ "type": "string"
3795
+ }
3796
+ },
3797
+ "required": [
3798
+ "className",
3799
+ "classSource"
3800
+ ],
3801
+ "additionalProperties": false
3802
+ },
3803
+ {
3804
+ "description": "Another subclass's spell list",
3805
+ "type": "object",
3806
+ "properties": {
3807
+ "className": {
3808
+ "type": "string"
3809
+ },
3810
+ "classSource": {
3811
+ "type": "string"
3812
+ },
3813
+ "subclassName": {
3814
+ "type": "string"
3815
+ },
3816
+ "subclassSource": {
3817
+ "type": "string"
3818
+ }
3819
+ },
3820
+ "required": [
3821
+ "className",
3822
+ "classSource",
3823
+ "subclassName",
3824
+ "subclassSource"
3825
+ ],
3826
+ "additionalProperties": false
3827
+ },
3828
+ {
3829
+ "description": "Another sub-subclass's spell list",
3830
+ "type": "object",
3831
+ "properties": {
3832
+ "className": {
3833
+ "type": "string"
3834
+ },
3835
+ "classSource": {
3836
+ "type": "string"
3837
+ },
3838
+ "subclassName": {
3839
+ "type": "string"
3840
+ },
3841
+ "subclassSource": {
3842
+ "type": "string"
3843
+ },
3844
+ "subSubclassName": {
3845
+ "type": "string"
3846
+ },
3847
+ "subSubclassSource": {
3848
+ "type": "string"
3849
+ }
3850
+ },
3851
+ "required": [
3852
+ "className",
3853
+ "classSource",
3854
+ "subclassName",
3855
+ "subclassSource",
3856
+ "subSubclassName",
3857
+ "subSubclassSource"
3858
+ ],
3859
+ "additionalProperties": false
3860
+ },
3861
+ {
3862
+ "description": "A spell UID of the form \"fireball\" (PHB source assumed by default) or \"shape water|xge\"",
3863
+ "type": "string"
3864
+ }
3865
+ ]
3866
+ },
3698
3867
  "foundrySystemObject": {
3699
3868
  "type": "object"
3700
3869
  },