5etools-utils 0.4.7 → 0.4.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "backgrounds.json",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "backgroundData": {
@@ -55,6 +55,9 @@
55
55
  "additionalSpells": {
56
56
  "$ref": "util.json#/$defs/additionalSpellsArray"
57
57
  },
58
+ "ability": {
59
+ "$ref": "util.json#/$defs/abilityScores"
60
+ },
58
61
  "fromFeature": {
59
62
  "description": "A lookup of other properties which should be tied to the \"Feature: ...\" entry. This is used when e.g. customizing a background during import to a VTT.",
60
63
  "type": "object",
@@ -167,6 +170,9 @@
167
170
  "additionalSpells": {
168
171
  "$ref": "util.json#/$defs/additionalSpellsArray"
169
172
  },
173
+ "ability": {
174
+ "$ref": "util.json#/$defs/abilityScores"
175
+ },
170
176
  "fromFeature": {
171
177
  "description": "A lookup of other properties which should be tied to the \"Feature: ...\" entry. This is used when e.g. customizing a background during import to a VTT.",
172
178
  "type": "object",
@@ -282,6 +288,9 @@
282
288
  "additionalSpells": {
283
289
  "$ref": "util.json#/$defs/additionalSpellsArray"
284
290
  },
291
+ "ability": {
292
+ "$ref": "util.json#/$defs/abilityScores"
293
+ },
285
294
  "fromFeature": {
286
295
  "description": "A lookup of other properties which should be tied to the \"Feature: ...\" entry. This is used when e.g. customizing a background during import to a VTT.",
287
296
  "type": "object",
@@ -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,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",
@@ -263,7 +263,7 @@
263
263
  "$ref": "util.json#/$defs/reprintedAs"
264
264
  },
265
265
  "ability": {
266
- "$ref": "#/$defs/abilityScores"
266
+ "$ref": "util.json#/$defs/abilityScores"
267
267
  },
268
268
  "size": {
269
269
  "type": "array",
@@ -510,82 +510,6 @@
510
510
  }
511
511
  ]
512
512
  },
513
- "abilityScores": {
514
- "type": "array",
515
- "items": {
516
- "type": "object",
517
- "properties": {
518
- "str": {
519
- "type": "integer"
520
- },
521
- "dex": {
522
- "type": "integer"
523
- },
524
- "con": {
525
- "type": "integer"
526
- },
527
- "int": {
528
- "type": "integer"
529
- },
530
- "wis": {
531
- "type": "integer"
532
- },
533
- "cha": {
534
- "type": "integer"
535
- },
536
- "choose": {
537
- "type": "object",
538
- "properties": {
539
- "from": {
540
- "type": "array",
541
- "items": {
542
- "enum": [
543
- "str",
544
- "dex",
545
- "con",
546
- "int",
547
- "wis",
548
- "cha"
549
- ]
550
- },
551
- "uniqueItems": true
552
- },
553
- "count": {
554
- "type": "integer"
555
- },
556
- "amount": {
557
- "type": "integer"
558
- },
559
- "weighted": {
560
- "type": "object",
561
- "properties": {
562
- "from": {
563
- "type": "array",
564
- "items": {
565
- "enum": [
566
- "str",
567
- "dex",
568
- "con",
569
- "int",
570
- "wis",
571
- "cha"
572
- ]
573
- },
574
- "uniqueItems": true
575
- },
576
- "weights": {
577
- "type": "array",
578
- "items": {
579
- "type": "integer"
580
- }
581
- }
582
- }
583
- }
584
- }
585
- }
586
- }
587
- }
588
- },
589
513
  "heightAndWeight": {
590
514
  "type": "object",
591
515
  "properties": {
@@ -664,7 +588,7 @@
664
588
  "$ref": "util.json#/$defs/reprintedAs"
665
589
  },
666
590
  "ability": {
667
- "$ref": "#/$defs/abilityScores"
591
+ "$ref": "util.json#/$defs/abilityScores"
668
592
  },
669
593
  "size": {
670
594
  "type": "array",
@@ -902,7 +826,7 @@
902
826
  "$ref": "util.json#/$defs/reprintedAs"
903
827
  },
904
828
  "ability": {
905
- "$ref": "#/$defs/abilityScores"
829
+ "$ref": "util.json#/$defs/abilityScores"
906
830
  },
907
831
  "size": {
908
832
  "type": "array",
@@ -1201,7 +1125,7 @@
1201
1125
  "$ref": "util.json#/$defs/reprintedAs"
1202
1126
  },
1203
1127
  "ability": {
1204
- "$ref": "#/$defs/abilityScores"
1128
+ "$ref": "util.json#/$defs/abilityScores"
1205
1129
  },
1206
1130
  "size": {
1207
1131
  "type": "array",
@@ -1451,7 +1375,7 @@
1451
1375
  "$ref": "util.json#/$defs/reprintedAs"
1452
1376
  },
1453
1377
  "ability": {
1454
- "$ref": "#/$defs/abilityScores"
1378
+ "$ref": "util.json#/$defs/abilityScores"
1455
1379
  },
1456
1380
  "size": {
1457
1381
  "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.5",
7
7
  "$defs": {
8
8
  "metaBlock": {
9
9
  "type": "object",
@@ -1201,6 +1201,91 @@
1201
1201
  "uniqueItems": true,
1202
1202
  "minItems": 1
1203
1203
  },
1204
+ "abilityScores": {
1205
+ "type": "array",
1206
+ "minItems": 1,
1207
+ "items": {
1208
+ "type": "object",
1209
+ "properties": {
1210
+ "str": {
1211
+ "type": "integer"
1212
+ },
1213
+ "dex": {
1214
+ "type": "integer"
1215
+ },
1216
+ "con": {
1217
+ "type": "integer"
1218
+ },
1219
+ "int": {
1220
+ "type": "integer"
1221
+ },
1222
+ "wis": {
1223
+ "type": "integer"
1224
+ },
1225
+ "cha": {
1226
+ "type": "integer"
1227
+ },
1228
+ "choose": {
1229
+ "type": "object",
1230
+ "properties": {
1231
+ "from": {
1232
+ "type": "array",
1233
+ "items": {
1234
+ "enum": [
1235
+ "str",
1236
+ "dex",
1237
+ "con",
1238
+ "int",
1239
+ "wis",
1240
+ "cha"
1241
+ ]
1242
+ },
1243
+ "uniqueItems": true
1244
+ },
1245
+ "count": {
1246
+ "type": "integer"
1247
+ },
1248
+ "amount": {
1249
+ "type": "integer"
1250
+ },
1251
+ "weighted": {
1252
+ "type": "object",
1253
+ "properties": {
1254
+ "from": {
1255
+ "type": "array",
1256
+ "items": {
1257
+ "enum": [
1258
+ "str",
1259
+ "dex",
1260
+ "con",
1261
+ "int",
1262
+ "wis",
1263
+ "cha"
1264
+ ]
1265
+ },
1266
+ "uniqueItems": true
1267
+ },
1268
+ "weights": {
1269
+ "type": "array",
1270
+ "items": {
1271
+ "type": "integer"
1272
+ }
1273
+ }
1274
+ }
1275
+ },
1276
+ "entry": {
1277
+ "$ref": "entry.json"
1278
+ }
1279
+ },
1280
+ "additionalProperties": false
1281
+ },
1282
+ "hidden": {
1283
+ "type": "boolean"
1284
+ }
1285
+ },
1286
+ "additionalProperties": false
1287
+ }
1288
+ },
1204
1289
  "additionalFeatsArray": {
1205
1290
  "type": "array",
1206
1291
  "items": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "backgrounds.json",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "backgroundData": {
@@ -55,6 +55,9 @@
55
55
  "additionalSpells": {
56
56
  "$ref": "util.json#/$defs/additionalSpellsArray"
57
57
  },
58
+ "ability": {
59
+ "$ref": "util.json#/$defs/abilityScores"
60
+ },
58
61
  "fromFeature": {
59
62
  "description": "A lookup of other properties which should be tied to the \"Feature: ...\" entry. This is used when e.g. customizing a background during import to a VTT.",
60
63
  "type": "object",
@@ -167,6 +170,9 @@
167
170
  "additionalSpells": {
168
171
  "$ref": "util.json#/$defs/additionalSpellsArray"
169
172
  },
173
+ "ability": {
174
+ "$ref": "util.json#/$defs/abilityScores"
175
+ },
170
176
  "fromFeature": {
171
177
  "description": "A lookup of other properties which should be tied to the \"Feature: ...\" entry. This is used when e.g. customizing a background during import to a VTT.",
172
178
  "type": "object",
@@ -282,6 +288,9 @@
282
288
  "additionalSpells": {
283
289
  "$ref": "util.json#/$defs/additionalSpellsArray"
284
290
  },
291
+ "ability": {
292
+ "$ref": "util.json#/$defs/abilityScores"
293
+ },
285
294
  "fromFeature": {
286
295
  "description": "A lookup of other properties which should be tied to the \"Feature: ...\" entry. This is used when e.g. customizing a background during import to a VTT.",
287
296
  "type": "object",
@@ -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,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",
@@ -263,7 +263,7 @@
263
263
  "$ref": "util.json#/$defs/reprintedAs"
264
264
  },
265
265
  "ability": {
266
- "$ref": "#/$defs/abilityScores"
266
+ "$ref": "util.json#/$defs/abilityScores"
267
267
  },
268
268
  "size": {
269
269
  "type": "array",
@@ -510,82 +510,6 @@
510
510
  }
511
511
  ]
512
512
  },
513
- "abilityScores": {
514
- "type": "array",
515
- "items": {
516
- "type": "object",
517
- "properties": {
518
- "str": {
519
- "type": "integer"
520
- },
521
- "dex": {
522
- "type": "integer"
523
- },
524
- "con": {
525
- "type": "integer"
526
- },
527
- "int": {
528
- "type": "integer"
529
- },
530
- "wis": {
531
- "type": "integer"
532
- },
533
- "cha": {
534
- "type": "integer"
535
- },
536
- "choose": {
537
- "type": "object",
538
- "properties": {
539
- "from": {
540
- "type": "array",
541
- "items": {
542
- "enum": [
543
- "str",
544
- "dex",
545
- "con",
546
- "int",
547
- "wis",
548
- "cha"
549
- ]
550
- },
551
- "uniqueItems": true
552
- },
553
- "count": {
554
- "type": "integer"
555
- },
556
- "amount": {
557
- "type": "integer"
558
- },
559
- "weighted": {
560
- "type": "object",
561
- "properties": {
562
- "from": {
563
- "type": "array",
564
- "items": {
565
- "enum": [
566
- "str",
567
- "dex",
568
- "con",
569
- "int",
570
- "wis",
571
- "cha"
572
- ]
573
- },
574
- "uniqueItems": true
575
- },
576
- "weights": {
577
- "type": "array",
578
- "items": {
579
- "type": "integer"
580
- }
581
- }
582
- }
583
- }
584
- }
585
- }
586
- }
587
- }
588
- },
589
513
  "heightAndWeight": {
590
514
  "type": "object",
591
515
  "properties": {
@@ -664,7 +588,7 @@
664
588
  "$ref": "util.json#/$defs/reprintedAs"
665
589
  },
666
590
  "ability": {
667
- "$ref": "#/$defs/abilityScores"
591
+ "$ref": "util.json#/$defs/abilityScores"
668
592
  },
669
593
  "size": {
670
594
  "type": "array",
@@ -902,7 +826,7 @@
902
826
  "$ref": "util.json#/$defs/reprintedAs"
903
827
  },
904
828
  "ability": {
905
- "$ref": "#/$defs/abilityScores"
829
+ "$ref": "util.json#/$defs/abilityScores"
906
830
  },
907
831
  "size": {
908
832
  "type": "array",
@@ -1201,7 +1125,7 @@
1201
1125
  "$ref": "util.json#/$defs/reprintedAs"
1202
1126
  },
1203
1127
  "ability": {
1204
- "$ref": "#/$defs/abilityScores"
1128
+ "$ref": "util.json#/$defs/abilityScores"
1205
1129
  },
1206
1130
  "size": {
1207
1131
  "type": "array",
@@ -1451,7 +1375,7 @@
1451
1375
  "$ref": "util.json#/$defs/reprintedAs"
1452
1376
  },
1453
1377
  "ability": {
1454
- "$ref": "#/$defs/abilityScores"
1378
+ "$ref": "util.json#/$defs/abilityScores"
1455
1379
  },
1456
1380
  "size": {
1457
1381
  "type": "array",