5etools-utils 0.9.60 → 0.9.62

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/bestiary/bestiary.json +31 -175
  3. package/schema/brew/items-base.json +91 -1
  4. package/schema/brew/magicvariants.json +6 -0
  5. package/schema/brew/objects.json +10 -4
  6. package/schema/brew/util-token.json +161 -0
  7. package/schema/brew/util.json +18 -4
  8. package/schema/brew/vehicles.json +28 -10
  9. package/schema/brew-fast/bestiary/bestiary.json +31 -175
  10. package/schema/brew-fast/items-base.json +91 -1
  11. package/schema/brew-fast/magicvariants.json +6 -0
  12. package/schema/brew-fast/objects.json +10 -4
  13. package/schema/brew-fast/util-token.json +161 -0
  14. package/schema/brew-fast/util.json +18 -4
  15. package/schema/brew-fast/vehicles.json +28 -10
  16. package/schema/site/bestiary/bestiary.json +4 -91
  17. package/schema/site/items-base.json +91 -1
  18. package/schema/site/magicvariants.json +6 -0
  19. package/schema/site/objects.json +1 -4
  20. package/schema/site/util-token.json +152 -0
  21. package/schema/site/util.json +18 -4
  22. package/schema/site/vehicles.json +1 -1
  23. package/schema/site-fast/bestiary/bestiary.json +4 -91
  24. package/schema/site-fast/items-base.json +91 -1
  25. package/schema/site-fast/magicvariants.json +6 -0
  26. package/schema/site-fast/objects.json +1 -4
  27. package/schema/site-fast/util-token.json +152 -0
  28. package/schema/site-fast/util.json +18 -4
  29. package/schema/site-fast/vehicles.json +1 -1
  30. package/schema/ua/bestiary/bestiary.json +31 -91
  31. package/schema/ua/items-base.json +91 -1
  32. package/schema/ua/magicvariants.json +6 -0
  33. package/schema/ua/objects.json +10 -4
  34. package/schema/ua/util-token.json +152 -0
  35. package/schema/ua/util.json +18 -4
  36. package/schema/ua/vehicles.json +28 -1
  37. package/schema/ua-fast/bestiary/bestiary.json +31 -91
  38. package/schema/ua-fast/items-base.json +91 -1
  39. package/schema/ua-fast/magicvariants.json +6 -0
  40. package/schema/ua-fast/objects.json +10 -4
  41. package/schema/ua-fast/util-token.json +152 -0
  42. package/schema/ua-fast/util.json +18 -4
  43. package/schema/ua-fast/vehicles.json +28 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.9.60",
3
+ "version": "0.9.62",
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.23",
3
+ "version": "1.21.24",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -864,9 +864,6 @@
864
864
  "hasToken": {
865
865
  "type": "boolean"
866
866
  },
867
- "tokenUrl": {
868
- "type": "string"
869
- },
870
867
  "tokenCredit": {
871
868
  "type": "string"
872
869
  },
@@ -874,61 +871,7 @@
874
871
  "$ref": "../util-foundry.json#/$defs/foundryTokenScale"
875
872
  },
876
873
  "altArt": {
877
- "type": "array",
878
- "items": {
879
- "anyOf": [
880
- {
881
- "type": "object",
882
- "properties": {
883
- "name": {
884
- "type": "string"
885
- },
886
- "source": {
887
- "$ref": "../util.json#/$defs/source"
888
- },
889
- "page": {
890
- "$ref": "../util.json#/$defs/page"
891
- },
892
- "tokenCredit": {
893
- "type": "string"
894
- }
895
- },
896
- "required": [
897
- "name",
898
- "source"
899
- ],
900
- "additionalProperties": false
901
- },
902
- {
903
- "type": "object",
904
- "description": "An URL pointing to an alternative token for the creature.",
905
- "properties": {
906
- "tokenUrl": {
907
- "type": "string"
908
- },
909
- "name": {
910
- "type": "string"
911
- },
912
- "source": {
913
- "$ref": "../util.json#/$defs/source"
914
- },
915
- "page": {
916
- "$ref": "../util.json#/$defs/page"
917
- },
918
- "tokenCredit": {
919
- "type": "string"
920
- },
921
- "foundryTokenScale": {
922
- "$ref": "../util-foundry.json#/$defs/foundryTokenScale"
923
- }
924
- },
925
- "required": [
926
- "tokenUrl"
927
- ],
928
- "additionalProperties": false
929
- }
930
- ]
931
- }
874
+ "$ref": "../util-token.json#/$defs/altArt"
932
875
  },
933
876
  "isNamedCreature": {
934
877
  "type": "boolean"
@@ -1312,6 +1255,15 @@
1312
1255
  },
1313
1256
  "foundryImg": {
1314
1257
  "$ref": "../util-foundry.json#/$defs/foundryImg"
1258
+ },
1259
+ "tokenUrl": {
1260
+ "$ref": "../util-token.json#/$defs/tokenUrl"
1261
+ },
1262
+ "token": {
1263
+ "$ref": "../util-token.json#/$defs/token"
1264
+ },
1265
+ "tokenHref": {
1266
+ "$ref": "../util-token.json#/$defs/tokenHref"
1315
1267
  }
1316
1268
  },
1317
1269
  "additionalProperties": false
@@ -2072,9 +2024,6 @@
2072
2024
  "hasToken": {
2073
2025
  "type": "boolean"
2074
2026
  },
2075
- "tokenUrl": {
2076
- "type": "string"
2077
- },
2078
2027
  "tokenCredit": {
2079
2028
  "type": "string"
2080
2029
  },
@@ -2082,61 +2031,7 @@
2082
2031
  "$ref": "../util-foundry.json#/$defs/foundryTokenScale"
2083
2032
  },
2084
2033
  "altArt": {
2085
- "type": "array",
2086
- "items": {
2087
- "anyOf": [
2088
- {
2089
- "type": "object",
2090
- "properties": {
2091
- "name": {
2092
- "type": "string"
2093
- },
2094
- "source": {
2095
- "$ref": "../util.json#/$defs/source"
2096
- },
2097
- "page": {
2098
- "$ref": "../util.json#/$defs/page"
2099
- },
2100
- "tokenCredit": {
2101
- "type": "string"
2102
- }
2103
- },
2104
- "required": [
2105
- "name",
2106
- "source"
2107
- ],
2108
- "additionalProperties": false
2109
- },
2110
- {
2111
- "type": "object",
2112
- "description": "An URL pointing to an alternative token for the creature.",
2113
- "properties": {
2114
- "tokenUrl": {
2115
- "type": "string"
2116
- },
2117
- "name": {
2118
- "type": "string"
2119
- },
2120
- "source": {
2121
- "$ref": "../util.json#/$defs/source"
2122
- },
2123
- "page": {
2124
- "$ref": "../util.json#/$defs/page"
2125
- },
2126
- "tokenCredit": {
2127
- "type": "string"
2128
- },
2129
- "foundryTokenScale": {
2130
- "$ref": "../util-foundry.json#/$defs/foundryTokenScale"
2131
- }
2132
- },
2133
- "required": [
2134
- "tokenUrl"
2135
- ],
2136
- "additionalProperties": false
2137
- }
2138
- ]
2139
- }
2034
+ "$ref": "../util-token.json#/$defs/altArt"
2140
2035
  },
2141
2036
  "isNamedCreature": {
2142
2037
  "type": "boolean"
@@ -2520,6 +2415,15 @@
2520
2415
  },
2521
2416
  "foundryImg": {
2522
2417
  "$ref": "../util-foundry.json#/$defs/foundryImg"
2418
+ },
2419
+ "tokenUrl": {
2420
+ "$ref": "../util-token.json#/$defs/tokenUrl"
2421
+ },
2422
+ "token": {
2423
+ "$ref": "../util-token.json#/$defs/token"
2424
+ },
2425
+ "tokenHref": {
2426
+ "$ref": "../util-token.json#/$defs/tokenHref"
2523
2427
  }
2524
2428
  },
2525
2429
  "additionalProperties": false,
@@ -3285,9 +3189,6 @@
3285
3189
  "hasToken": {
3286
3190
  "type": "boolean"
3287
3191
  },
3288
- "tokenUrl": {
3289
- "type": "string"
3290
- },
3291
3192
  "tokenCredit": {
3292
3193
  "type": "string"
3293
3194
  },
@@ -3295,61 +3196,7 @@
3295
3196
  "$ref": "../util-foundry.json#/$defs/foundryTokenScale"
3296
3197
  },
3297
3198
  "altArt": {
3298
- "type": "array",
3299
- "items": {
3300
- "anyOf": [
3301
- {
3302
- "type": "object",
3303
- "properties": {
3304
- "name": {
3305
- "type": "string"
3306
- },
3307
- "source": {
3308
- "$ref": "../util.json#/$defs/source"
3309
- },
3310
- "page": {
3311
- "$ref": "../util.json#/$defs/page"
3312
- },
3313
- "tokenCredit": {
3314
- "type": "string"
3315
- }
3316
- },
3317
- "required": [
3318
- "name",
3319
- "source"
3320
- ],
3321
- "additionalProperties": false
3322
- },
3323
- {
3324
- "type": "object",
3325
- "description": "An URL pointing to an alternative token for the creature.",
3326
- "properties": {
3327
- "tokenUrl": {
3328
- "type": "string"
3329
- },
3330
- "name": {
3331
- "type": "string"
3332
- },
3333
- "source": {
3334
- "$ref": "../util.json#/$defs/source"
3335
- },
3336
- "page": {
3337
- "$ref": "../util.json#/$defs/page"
3338
- },
3339
- "tokenCredit": {
3340
- "type": "string"
3341
- },
3342
- "foundryTokenScale": {
3343
- "$ref": "../util-foundry.json#/$defs/foundryTokenScale"
3344
- }
3345
- },
3346
- "required": [
3347
- "tokenUrl"
3348
- ],
3349
- "additionalProperties": false
3350
- }
3351
- ]
3352
- }
3199
+ "$ref": "../util-token.json#/$defs/altArt"
3353
3200
  },
3354
3201
  "isNamedCreature": {
3355
3202
  "type": "boolean"
@@ -3734,6 +3581,15 @@
3734
3581
  "foundryImg": {
3735
3582
  "$ref": "../util-foundry.json#/$defs/foundryImg"
3736
3583
  },
3584
+ "tokenUrl": {
3585
+ "$ref": "../util-token.json#/$defs/tokenUrl"
3586
+ },
3587
+ "token": {
3588
+ "$ref": "../util-token.json#/$defs/token"
3589
+ },
3590
+ "tokenHref": {
3591
+ "$ref": "../util-token.json#/$defs/tokenHref"
3592
+ },
3737
3593
  "_copy": {
3738
3594
  "$ref": "../util.json#/$defs/copyBlock_copy_generic"
3739
3595
  }
@@ -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.16",
4
+ "version": "1.5.17",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "itemLookupBase": {
@@ -118,9 +118,39 @@
118
118
  "age": {
119
119
  "$ref": "items-shared.json#/$defs/itemAge"
120
120
  },
121
+ "bonusAc": {
122
+ "type": "string"
123
+ },
121
124
  "bonusWeapon": {
122
125
  "type": "string"
123
126
  },
127
+ "bonusWeaponAttack": {
128
+ "type": "string"
129
+ },
130
+ "bonusWeaponDamage": {
131
+ "type": "string"
132
+ },
133
+ "bonusWeaponCritDamage": {
134
+ "type": "string"
135
+ },
136
+ "bonusSpellAttack": {
137
+ "type": "string"
138
+ },
139
+ "bonusSpellDamage": {
140
+ "type": "string"
141
+ },
142
+ "bonusSpellSaveDc": {
143
+ "type": "string"
144
+ },
145
+ "bonusSavingThrow": {
146
+ "type": "string"
147
+ },
148
+ "bonusAbilityCheck": {
149
+ "type": "string"
150
+ },
151
+ "bonusProficiencyBonus": {
152
+ "type": "string"
153
+ },
124
154
  "dmg1": {
125
155
  "type": "string"
126
156
  },
@@ -416,9 +446,39 @@
416
446
  "age": {
417
447
  "$ref": "items-shared.json#/$defs/itemAge"
418
448
  },
449
+ "bonusAc": {
450
+ "type": "string"
451
+ },
419
452
  "bonusWeapon": {
420
453
  "type": "string"
421
454
  },
455
+ "bonusWeaponAttack": {
456
+ "type": "string"
457
+ },
458
+ "bonusWeaponDamage": {
459
+ "type": "string"
460
+ },
461
+ "bonusWeaponCritDamage": {
462
+ "type": "string"
463
+ },
464
+ "bonusSpellAttack": {
465
+ "type": "string"
466
+ },
467
+ "bonusSpellDamage": {
468
+ "type": "string"
469
+ },
470
+ "bonusSpellSaveDc": {
471
+ "type": "string"
472
+ },
473
+ "bonusSavingThrow": {
474
+ "type": "string"
475
+ },
476
+ "bonusAbilityCheck": {
477
+ "type": "string"
478
+ },
479
+ "bonusProficiencyBonus": {
480
+ "type": "string"
481
+ },
422
482
  "dmg1": {
423
483
  "type": "string"
424
484
  },
@@ -718,9 +778,39 @@
718
778
  "age": {
719
779
  "$ref": "items-shared.json#/$defs/itemAge"
720
780
  },
781
+ "bonusAc": {
782
+ "type": "string"
783
+ },
721
784
  "bonusWeapon": {
722
785
  "type": "string"
723
786
  },
787
+ "bonusWeaponAttack": {
788
+ "type": "string"
789
+ },
790
+ "bonusWeaponDamage": {
791
+ "type": "string"
792
+ },
793
+ "bonusWeaponCritDamage": {
794
+ "type": "string"
795
+ },
796
+ "bonusSpellAttack": {
797
+ "type": "string"
798
+ },
799
+ "bonusSpellDamage": {
800
+ "type": "string"
801
+ },
802
+ "bonusSpellSaveDc": {
803
+ "type": "string"
804
+ },
805
+ "bonusSavingThrow": {
806
+ "type": "string"
807
+ },
808
+ "bonusAbilityCheck": {
809
+ "type": "string"
810
+ },
811
+ "bonusProficiencyBonus": {
812
+ "type": "string"
813
+ },
724
814
  "dmg1": {
725
815
  "type": "string"
726
816
  },
@@ -153,6 +153,9 @@
153
153
  "bonusWeaponDamage": {
154
154
  "type": "string"
155
155
  },
156
+ "bonusWeaponCritDamage": {
157
+ "type": "string"
158
+ },
156
159
  "bonusSpellAttack": {
157
160
  "type": "string"
158
161
  },
@@ -168,6 +171,9 @@
168
171
  "bonusAbilityCheck": {
169
172
  "type": "string"
170
173
  },
174
+ "bonusProficiencyBonus": {
175
+ "type": "string"
176
+ },
171
177
  "dmg1": {
172
178
  "type": "string"
173
179
  },
@@ -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.1",
4
+ "version": "1.3.2",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "object": {
@@ -125,9 +125,6 @@
125
125
  "$ref": "entry.json"
126
126
  }
127
127
  },
128
- "tokenUrl": {
129
- "type": "string"
130
- },
131
128
  "tokenCredit": {
132
129
  "type": "string"
133
130
  },
@@ -155,6 +152,15 @@
155
152
  },
156
153
  "foundryImg": {
157
154
  "$ref": "util-foundry.json#/$defs/foundryImg"
155
+ },
156
+ "tokenUrl": {
157
+ "$ref": "util-token.json#/$defs/tokenUrl"
158
+ },
159
+ "token": {
160
+ "$ref": "util-token.json#/$defs/token"
161
+ },
162
+ "tokenHref": {
163
+ "$ref": "util-token.json#/$defs/tokenHref"
158
164
  }
159
165
  },
160
166
  "additionalProperties": false,
@@ -0,0 +1,161 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-token.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Token",
6
+ "$defs": {
7
+ "tokenUrl": {
8
+ "deprecated": true,
9
+ "description": "A full token URL for the entity. Prefer \"tokenHref\" instead.",
10
+ "$ref": "util.json#/$defs/url"
11
+ },
12
+ "token": {
13
+ "description": "A name/source pair used to construct a token URL for the entity. For example `\"name\": \"Goblin\", \"source\": \"MM\"` for a creature token would refer to the MM Goblin's token.",
14
+ "type": "object",
15
+ "properties": {
16
+ "name": {
17
+ "type": "string"
18
+ },
19
+ "source": {
20
+ "$ref": "util.json#/$defs/source"
21
+ }
22
+ },
23
+ "required": [
24
+ "name",
25
+ "source"
26
+ ],
27
+ "additionalProperties": false
28
+ },
29
+ "tokenHref": {
30
+ "$ref": "entry.json#/$defs/mediaHref"
31
+ },
32
+ "_altArtItemSite": {
33
+ "type": "object",
34
+ "properties": {
35
+ "name": {
36
+ "type": "string"
37
+ },
38
+ "source": {
39
+ "$ref": "util.json#/$defs/source"
40
+ },
41
+ "page": {
42
+ "$ref": "util.json#/$defs/page"
43
+ },
44
+ "tokenCredit": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "required": [
49
+ "name",
50
+ "source"
51
+ ],
52
+ "additionalProperties": false
53
+ },
54
+ "_altArtItemHomebrewTokenUrl": {
55
+ "deprecated": true,
56
+ "type": "object",
57
+ "properties": {
58
+ "tokenUrl": {
59
+ "type": "string"
60
+ },
61
+ "name": {
62
+ "type": "string"
63
+ },
64
+ "source": {
65
+ "$ref": "util.json#/$defs/source"
66
+ },
67
+ "page": {
68
+ "$ref": "util.json#/$defs/page"
69
+ },
70
+ "tokenCredit": {
71
+ "type": "string"
72
+ },
73
+ "foundryTokenScale": {
74
+ "$ref": "util-foundry.json#/$defs/foundryTokenScale"
75
+ }
76
+ },
77
+ "required": [
78
+ "tokenUrl"
79
+ ],
80
+ "additionalProperties": false
81
+ },
82
+ "_altArtItemHomebrewToken": {
83
+ "type": "object",
84
+ "properties": {
85
+ "token": {
86
+ "$ref": "#/$defs/token"
87
+ },
88
+ "name": {
89
+ "type": "string"
90
+ },
91
+ "source": {
92
+ "$ref": "util.json#/$defs/source"
93
+ },
94
+ "page": {
95
+ "$ref": "util.json#/$defs/page"
96
+ },
97
+ "tokenCredit": {
98
+ "type": "string"
99
+ },
100
+ "foundryTokenScale": {
101
+ "$ref": "util-foundry.json#/$defs/foundryTokenScale"
102
+ }
103
+ },
104
+ "required": [
105
+ "token"
106
+ ],
107
+ "additionalProperties": false
108
+ },
109
+ "_altArtItemHomebrewTokenHref": {
110
+ "type": "object",
111
+ "properties": {
112
+ "tokenHref": {
113
+ "$ref": "#/$defs/tokenHref"
114
+ },
115
+ "name": {
116
+ "type": "string"
117
+ },
118
+ "source": {
119
+ "$ref": "util.json#/$defs/source"
120
+ },
121
+ "page": {
122
+ "$ref": "util.json#/$defs/page"
123
+ },
124
+ "tokenCredit": {
125
+ "type": "string"
126
+ },
127
+ "foundryTokenScale": {
128
+ "$ref": "util-foundry.json#/$defs/foundryTokenScale"
129
+ }
130
+ },
131
+ "required": [
132
+ "tokenHref"
133
+ ],
134
+ "additionalProperties": false
135
+ },
136
+ "_altArtItem": {
137
+ "oneOf": [
138
+ {
139
+ "$ref": "#/$defs/_altArtItemSite"
140
+ },
141
+ {
142
+ "$ref": "#/$defs/_altArtItemHomebrewTokenUrl"
143
+ },
144
+ {
145
+ "$ref": "#/$defs/_altArtItemHomebrewToken"
146
+ },
147
+ {
148
+ "$ref": "#/$defs/_altArtItemHomebrewTokenHref"
149
+ }
150
+ ]
151
+ },
152
+ "altArt": {
153
+ "type": "array",
154
+ "items": {
155
+ "$ref": "#/$defs/_altArtItem"
156
+ },
157
+ "minItems": 1,
158
+ "uniqueItems": true
159
+ }
160
+ }
161
+ }
@@ -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.15.3",
6
+ "version": "1.15.4",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -2704,15 +2704,29 @@
2704
2704
  },
2705
2705
  "spellSchool": {
2706
2706
  "type": "string",
2707
+ "description": "A: Abjuration\n C: Conjuration\n D: Divination\n E: Enchantment\n V: Evocation\n I: Illusion\n N: Necromancy\n T: Transmutation\n P: Psychic",
2708
+ "not": {
2709
+ "enum": [
2710
+ "Abjuration",
2711
+ "Conjuration",
2712
+ "Divination",
2713
+ "Enchantment",
2714
+ "Evocation",
2715
+ "Illusion",
2716
+ "Necromancy",
2717
+ "Transmutation",
2718
+ "Psychic"
2719
+ ]
2720
+ },
2707
2721
  "examples": [
2708
2722
  "A",
2709
- "V",
2723
+ "C",
2724
+ "D",
2710
2725
  "E",
2726
+ "V",
2711
2727
  "I",
2712
- "D",
2713
2728
  "N",
2714
2729
  "T",
2715
- "C",
2716
2730
  "P"
2717
2731
  ]
2718
2732
  },