5etools-utils 0.9.36 → 0.9.38

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.9.36",
3
+ "version": "0.9.38",
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.21.21",
3
+ "version": "1.21.22",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -867,6 +867,9 @@
867
867
  "tokenUrl": {
868
868
  "type": "string"
869
869
  },
870
+ "tokenCredit": {
871
+ "type": "string"
872
+ },
870
873
  "foundryTokenScale": {
871
874
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
872
875
  },
@@ -885,6 +888,9 @@
885
888
  },
886
889
  "page": {
887
890
  "$ref": "../util.json#/$defs/page"
891
+ },
892
+ "tokenCredit": {
893
+ "type": "string"
888
894
  }
889
895
  },
890
896
  "required": [
@@ -899,6 +905,9 @@
899
905
  "tokenUrl": {
900
906
  "type": "string"
901
907
  },
908
+ "tokenCredit": {
909
+ "type": "string"
910
+ },
902
911
  "foundryTokenScale": {
903
912
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
904
913
  }
@@ -2055,6 +2064,9 @@
2055
2064
  "tokenUrl": {
2056
2065
  "type": "string"
2057
2066
  },
2067
+ "tokenCredit": {
2068
+ "type": "string"
2069
+ },
2058
2070
  "foundryTokenScale": {
2059
2071
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
2060
2072
  },
@@ -2073,6 +2085,9 @@
2073
2085
  },
2074
2086
  "page": {
2075
2087
  "$ref": "../util.json#/$defs/page"
2088
+ },
2089
+ "tokenCredit": {
2090
+ "type": "string"
2076
2091
  }
2077
2092
  },
2078
2093
  "required": [
@@ -2087,6 +2102,9 @@
2087
2102
  "tokenUrl": {
2088
2103
  "type": "string"
2089
2104
  },
2105
+ "tokenCredit": {
2106
+ "type": "string"
2107
+ },
2090
2108
  "foundryTokenScale": {
2091
2109
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
2092
2110
  }
@@ -3257,6 +3275,9 @@
3257
3275
  "tokenUrl": {
3258
3276
  "type": "string"
3259
3277
  },
3278
+ "tokenCredit": {
3279
+ "type": "string"
3280
+ },
3260
3281
  "foundryTokenScale": {
3261
3282
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
3262
3283
  },
@@ -3275,6 +3296,9 @@
3275
3296
  },
3276
3297
  "page": {
3277
3298
  "$ref": "../util.json#/$defs/page"
3299
+ },
3300
+ "tokenCredit": {
3301
+ "type": "string"
3278
3302
  }
3279
3303
  },
3280
3304
  "required": [
@@ -3289,6 +3313,9 @@
3289
3313
  "tokenUrl": {
3290
3314
  "type": "string"
3291
3315
  },
3316
+ "tokenCredit": {
3317
+ "type": "string"
3318
+ },
3292
3319
  "foundryTokenScale": {
3293
3320
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
3294
3321
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "items-base.json",
4
- "version": "1.5.14",
4
+ "version": "1.5.15",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "itemLookupBase": {
@@ -210,6 +210,10 @@
210
210
  "description": "Flag used when merging generic variants",
211
211
  "type": "boolean"
212
212
  },
213
+ "polearm": {
214
+ "description": "Flag used when merging generic variants",
215
+ "type": "boolean"
216
+ },
213
217
  "weapon": {
214
218
  "description": "Flag used when merging generic variants",
215
219
  "type": "boolean"
@@ -496,6 +500,10 @@
496
500
  "description": "Flag used when merging generic variants",
497
501
  "type": "boolean"
498
502
  },
503
+ "polearm": {
504
+ "description": "Flag used when merging generic variants",
505
+ "type": "boolean"
506
+ },
499
507
  "weapon": {
500
508
  "description": "Flag used when merging generic variants",
501
509
  "type": "boolean"
@@ -786,6 +794,10 @@
786
794
  "description": "Flag used when merging generic variants",
787
795
  "type": "boolean"
788
796
  },
797
+ "polearm": {
798
+ "description": "Flag used when merging generic variants",
799
+ "type": "boolean"
800
+ },
789
801
  "weapon": {
790
802
  "description": "Flag used when merging generic variants",
791
803
  "type": "boolean"
@@ -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.8.9",
4
+ "version": "1.8.11",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -28,6 +28,12 @@
28
28
  "items": {
29
29
  "type": "object",
30
30
  "properties": {
31
+ "name": {
32
+ "type": "string"
33
+ },
34
+ "property": {
35
+ "type": "string"
36
+ },
31
37
  "armor": {
32
38
  "type": "boolean"
33
39
  },
@@ -67,9 +73,6 @@
67
73
  "dmgType": {
68
74
  "$ref": "util.json#/$defs/dataDamageTags"
69
75
  },
70
- "name": {
71
- "type": "string"
72
- },
73
76
  "source": {
74
77
  "$ref": "util.json#/$defs/source"
75
78
  },
@@ -82,12 +85,12 @@
82
85
  "net": {
83
86
  "type": "boolean"
84
87
  },
88
+ "polearm": {
89
+ "type": "boolean"
90
+ },
85
91
  "weaponCategory": {
86
92
  "$ref": "items-shared.json#/$defs/itemWeaponCategory"
87
93
  },
88
- "property": {
89
- "type": "string"
90
- },
91
94
  "customProperties": {
92
95
  "description": "A more restrictive area for custom boolean-only properties to be stored.",
93
96
  "type": "object",
@@ -108,6 +111,9 @@
108
111
  "description": "Generally this should be omitted, as the type of the base item will be used.",
109
112
  "$ref": "items-shared.json#/$defs/itemType"
110
113
  },
114
+ "typeAlt": {
115
+ "$ref": "items-shared.json#/$defs/itemType"
116
+ },
111
117
  "property": {
112
118
  "description": "Generally this should be omitted, as the properties of the base item will be used.",
113
119
  "$ref": "items-shared.json#/$defs/itemProperty"
@@ -120,6 +126,9 @@
120
126
  "description": "Properties to remove from the specific variant, if present on the base item.",
121
127
  "$ref": "items-shared.json#/$defs/itemProperty"
122
128
  },
129
+ "range": {
130
+ "type": "string"
131
+ },
123
132
  "ac": {
124
133
  "type": "integer"
125
134
  },
@@ -370,9 +379,6 @@
370
379
  }
371
380
  ]
372
381
  },
373
- "net": {
374
- "type": "boolean"
375
- },
376
382
  "armor": {
377
383
  "type": "boolean"
378
384
  },
@@ -409,6 +415,27 @@
409
415
  "dagger": {
410
416
  "type": "boolean"
411
417
  },
418
+ "dmgType": {
419
+ "$ref": "util.json#/$defs/dataDamageTags"
420
+ },
421
+ "source": {
422
+ "$ref": "util.json#/$defs/source"
423
+ },
424
+ "type": {
425
+ "$ref": "items-shared.json#/$defs/itemType"
426
+ },
427
+ "scfType": {
428
+ "$ref": "items-shared.json#/$defs/itemScfType"
429
+ },
430
+ "net": {
431
+ "type": "boolean"
432
+ },
433
+ "polearm": {
434
+ "type": "boolean"
435
+ },
436
+ "weaponCategory": {
437
+ "$ref": "items-shared.json#/$defs/itemWeaponCategory"
438
+ },
412
439
  "customProperties": {
413
440
  "$ref": "items-shared.json#/$defs/customProperties"
414
441
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "objects.json",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "object": {
@@ -128,6 +128,9 @@
128
128
  "tokenUrl": {
129
129
  "type": "string"
130
130
  },
131
+ "tokenCredit": {
132
+ "type": "string"
133
+ },
131
134
  "foundryTokenScale": {
132
135
  "$ref": "foundry-shared.json#/$defs/foundryTokenScale"
133
136
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "vehicles.json",
4
- "version": "1.7.3",
4
+ "version": "1.7.4",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "vehicleTerrain": {
@@ -438,6 +438,9 @@
438
438
  }
439
439
  ]
440
440
  },
441
+ "tokenCredit": {
442
+ "type": "string"
443
+ },
441
444
  "hasToken": {
442
445
  "type": "boolean"
443
446
  },
@@ -617,6 +620,9 @@
617
620
  "additionalProperties": false
618
621
  }
619
622
  },
623
+ "tokenCredit": {
624
+ "type": "string"
625
+ },
620
626
  "hasToken": {
621
627
  "type": "boolean"
622
628
  },
@@ -796,6 +802,9 @@
796
802
  }
797
803
  }
798
804
  },
805
+ "tokenCredit": {
806
+ "type": "string"
807
+ },
799
808
  "hasToken": {
800
809
  "type": "boolean"
801
810
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.21",
3
+ "version": "1.21.22",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -867,6 +867,9 @@
867
867
  "tokenUrl": {
868
868
  "type": "string"
869
869
  },
870
+ "tokenCredit": {
871
+ "type": "string"
872
+ },
870
873
  "foundryTokenScale": {
871
874
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
872
875
  },
@@ -885,6 +888,9 @@
885
888
  },
886
889
  "page": {
887
890
  "$ref": "../util.json#/$defs/page"
891
+ },
892
+ "tokenCredit": {
893
+ "type": "string"
888
894
  }
889
895
  },
890
896
  "required": [
@@ -899,6 +905,9 @@
899
905
  "tokenUrl": {
900
906
  "type": "string"
901
907
  },
908
+ "tokenCredit": {
909
+ "type": "string"
910
+ },
902
911
  "foundryTokenScale": {
903
912
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
904
913
  }
@@ -2055,6 +2064,9 @@
2055
2064
  "tokenUrl": {
2056
2065
  "type": "string"
2057
2066
  },
2067
+ "tokenCredit": {
2068
+ "type": "string"
2069
+ },
2058
2070
  "foundryTokenScale": {
2059
2071
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
2060
2072
  },
@@ -2073,6 +2085,9 @@
2073
2085
  },
2074
2086
  "page": {
2075
2087
  "$ref": "../util.json#/$defs/page"
2088
+ },
2089
+ "tokenCredit": {
2090
+ "type": "string"
2076
2091
  }
2077
2092
  },
2078
2093
  "required": [
@@ -2087,6 +2102,9 @@
2087
2102
  "tokenUrl": {
2088
2103
  "type": "string"
2089
2104
  },
2105
+ "tokenCredit": {
2106
+ "type": "string"
2107
+ },
2090
2108
  "foundryTokenScale": {
2091
2109
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
2092
2110
  }
@@ -3257,6 +3275,9 @@
3257
3275
  "tokenUrl": {
3258
3276
  "type": "string"
3259
3277
  },
3278
+ "tokenCredit": {
3279
+ "type": "string"
3280
+ },
3260
3281
  "foundryTokenScale": {
3261
3282
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
3262
3283
  },
@@ -3275,6 +3296,9 @@
3275
3296
  },
3276
3297
  "page": {
3277
3298
  "$ref": "../util.json#/$defs/page"
3299
+ },
3300
+ "tokenCredit": {
3301
+ "type": "string"
3278
3302
  }
3279
3303
  },
3280
3304
  "required": [
@@ -3289,6 +3313,9 @@
3289
3313
  "tokenUrl": {
3290
3314
  "type": "string"
3291
3315
  },
3316
+ "tokenCredit": {
3317
+ "type": "string"
3318
+ },
3292
3319
  "foundryTokenScale": {
3293
3320
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
3294
3321
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "items-base.json",
4
- "version": "1.5.14",
4
+ "version": "1.5.15",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "itemLookupBase": {
@@ -210,6 +210,10 @@
210
210
  "description": "Flag used when merging generic variants",
211
211
  "type": "boolean"
212
212
  },
213
+ "polearm": {
214
+ "description": "Flag used when merging generic variants",
215
+ "type": "boolean"
216
+ },
213
217
  "weapon": {
214
218
  "description": "Flag used when merging generic variants",
215
219
  "type": "boolean"
@@ -496,6 +500,10 @@
496
500
  "description": "Flag used when merging generic variants",
497
501
  "type": "boolean"
498
502
  },
503
+ "polearm": {
504
+ "description": "Flag used when merging generic variants",
505
+ "type": "boolean"
506
+ },
499
507
  "weapon": {
500
508
  "description": "Flag used when merging generic variants",
501
509
  "type": "boolean"
@@ -786,6 +794,10 @@
786
794
  "description": "Flag used when merging generic variants",
787
795
  "type": "boolean"
788
796
  },
797
+ "polearm": {
798
+ "description": "Flag used when merging generic variants",
799
+ "type": "boolean"
800
+ },
789
801
  "weapon": {
790
802
  "description": "Flag used when merging generic variants",
791
803
  "type": "boolean"
@@ -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.8.9",
4
+ "version": "1.8.11",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -28,6 +28,12 @@
28
28
  "items": {
29
29
  "type": "object",
30
30
  "properties": {
31
+ "name": {
32
+ "type": "string"
33
+ },
34
+ "property": {
35
+ "type": "string"
36
+ },
31
37
  "armor": {
32
38
  "type": "boolean"
33
39
  },
@@ -67,9 +73,6 @@
67
73
  "dmgType": {
68
74
  "$ref": "util.json#/$defs/dataDamageTags"
69
75
  },
70
- "name": {
71
- "type": "string"
72
- },
73
76
  "source": {
74
77
  "$ref": "util.json#/$defs/source"
75
78
  },
@@ -82,12 +85,12 @@
82
85
  "net": {
83
86
  "type": "boolean"
84
87
  },
88
+ "polearm": {
89
+ "type": "boolean"
90
+ },
85
91
  "weaponCategory": {
86
92
  "$ref": "items-shared.json#/$defs/itemWeaponCategory"
87
93
  },
88
- "property": {
89
- "type": "string"
90
- },
91
94
  "customProperties": {
92
95
  "description": "A more restrictive area for custom boolean-only properties to be stored.",
93
96
  "type": "object",
@@ -108,6 +111,9 @@
108
111
  "description": "Generally this should be omitted, as the type of the base item will be used.",
109
112
  "$ref": "items-shared.json#/$defs/itemType"
110
113
  },
114
+ "typeAlt": {
115
+ "$ref": "items-shared.json#/$defs/itemType"
116
+ },
111
117
  "property": {
112
118
  "description": "Generally this should be omitted, as the properties of the base item will be used.",
113
119
  "$ref": "items-shared.json#/$defs/itemProperty"
@@ -120,6 +126,9 @@
120
126
  "description": "Properties to remove from the specific variant, if present on the base item.",
121
127
  "$ref": "items-shared.json#/$defs/itemProperty"
122
128
  },
129
+ "range": {
130
+ "type": "string"
131
+ },
123
132
  "ac": {
124
133
  "type": "integer"
125
134
  },
@@ -370,9 +379,6 @@
370
379
  }
371
380
  ]
372
381
  },
373
- "net": {
374
- "type": "boolean"
375
- },
376
382
  "armor": {
377
383
  "type": "boolean"
378
384
  },
@@ -409,6 +415,27 @@
409
415
  "dagger": {
410
416
  "type": "boolean"
411
417
  },
418
+ "dmgType": {
419
+ "$ref": "util.json#/$defs/dataDamageTags"
420
+ },
421
+ "source": {
422
+ "$ref": "util.json#/$defs/source"
423
+ },
424
+ "type": {
425
+ "$ref": "items-shared.json#/$defs/itemType"
426
+ },
427
+ "scfType": {
428
+ "$ref": "items-shared.json#/$defs/itemScfType"
429
+ },
430
+ "net": {
431
+ "type": "boolean"
432
+ },
433
+ "polearm": {
434
+ "type": "boolean"
435
+ },
436
+ "weaponCategory": {
437
+ "$ref": "items-shared.json#/$defs/itemWeaponCategory"
438
+ },
412
439
  "customProperties": {
413
440
  "$ref": "items-shared.json#/$defs/customProperties"
414
441
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "objects.json",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "object": {
@@ -128,6 +128,9 @@
128
128
  "tokenUrl": {
129
129
  "type": "string"
130
130
  },
131
+ "tokenCredit": {
132
+ "type": "string"
133
+ },
131
134
  "foundryTokenScale": {
132
135
  "$ref": "foundry-shared.json#/$defs/foundryTokenScale"
133
136
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "vehicles.json",
4
- "version": "1.7.3",
4
+ "version": "1.7.4",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "vehicleTerrain": {
@@ -438,6 +438,9 @@
438
438
  }
439
439
  ]
440
440
  },
441
+ "tokenCredit": {
442
+ "type": "string"
443
+ },
441
444
  "hasToken": {
442
445
  "type": "boolean"
443
446
  },
@@ -617,6 +620,9 @@
617
620
  "additionalProperties": false
618
621
  }
619
622
  },
623
+ "tokenCredit": {
624
+ "type": "string"
625
+ },
620
626
  "hasToken": {
621
627
  "type": "boolean"
622
628
  },
@@ -796,6 +802,9 @@
796
802
  }
797
803
  }
798
804
  },
805
+ "tokenCredit": {
806
+ "type": "string"
807
+ },
799
808
  "hasToken": {
800
809
  "type": "boolean"
801
810
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.21",
3
+ "version": "1.21.22",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -859,6 +859,9 @@
859
859
  "tokenUrl": {
860
860
  "type": "string"
861
861
  },
862
+ "tokenCredit": {
863
+ "type": "string"
864
+ },
862
865
  "foundryTokenScale": {
863
866
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
864
867
  },
@@ -877,6 +880,9 @@
877
880
  },
878
881
  "page": {
879
882
  "$ref": "../util.json#/$defs/page"
883
+ },
884
+ "tokenCredit": {
885
+ "type": "string"
880
886
  }
881
887
  },
882
888
  "required": [
@@ -1945,6 +1951,9 @@
1945
1951
  "tokenUrl": {
1946
1952
  "type": "string"
1947
1953
  },
1954
+ "tokenCredit": {
1955
+ "type": "string"
1956
+ },
1948
1957
  "foundryTokenScale": {
1949
1958
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
1950
1959
  },
@@ -1963,6 +1972,9 @@
1963
1972
  },
1964
1973
  "page": {
1965
1974
  "$ref": "../util.json#/$defs/page"
1975
+ },
1976
+ "tokenCredit": {
1977
+ "type": "string"
1966
1978
  }
1967
1979
  },
1968
1980
  "required": [
@@ -3045,6 +3057,9 @@
3045
3057
  "tokenUrl": {
3046
3058
  "type": "string"
3047
3059
  },
3060
+ "tokenCredit": {
3061
+ "type": "string"
3062
+ },
3048
3063
  "foundryTokenScale": {
3049
3064
  "$ref": "../foundry-shared.json#/$defs/foundryTokenScale"
3050
3065
  },
@@ -3063,6 +3078,9 @@
3063
3078
  },
3064
3079
  "page": {
3065
3080
  "$ref": "../util.json#/$defs/page"
3081
+ },
3082
+ "tokenCredit": {
3083
+ "type": "string"
3066
3084
  }
3067
3085
  },
3068
3086
  "required": [