5etools-utils 0.8.37 → 0.9.1

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 (187) hide show
  1. package/README.md +1 -0
  2. package/bin/test-json-ua.js +5 -0
  3. package/lib/BrewTester.js +3 -3
  4. package/lib/TestJson.js +22 -7
  5. package/package.json +2 -1
  6. package/schema/brew/backgrounds.json +13 -13
  7. package/schema/brew/class/class.json +1 -1
  8. package/schema/brew/items-shared.json +1 -1
  9. package/schema/brew/races.json +1 -1
  10. package/schema/brew/spells/spells.json +61 -61
  11. package/schema/brew/util.json +47 -1
  12. package/schema/brew-fast/backgrounds.json +13 -13
  13. package/schema/brew-fast/class/class.json +1 -1
  14. package/schema/brew-fast/items-shared.json +1 -1
  15. package/schema/brew-fast/races.json +1 -1
  16. package/schema/brew-fast/spells/spells.json +61 -61
  17. package/schema/brew-fast/util.json +47 -1
  18. package/schema/site/backgrounds.json +1 -1
  19. package/schema/site/class/class.json +1 -1
  20. package/schema/site/items-shared.json +1 -1
  21. package/schema/site/races.json +1 -1
  22. package/schema/site/spells/spells.json +1 -1
  23. package/schema/site/util.json +48 -2
  24. package/schema/site-fast/backgrounds.json +1 -1
  25. package/schema/site-fast/class/class.json +1 -1
  26. package/schema/site-fast/items-shared.json +1 -1
  27. package/schema/site-fast/races.json +1 -1
  28. package/schema/site-fast/spells/spells.json +1 -1
  29. package/schema/site-fast/util.json +48 -2
  30. package/schema/ua/actions.json +97 -0
  31. package/schema/ua/adventure/adventure.json +12 -0
  32. package/schema/ua/adventures.json +214 -0
  33. package/schema/ua/backgrounds.json +326 -0
  34. package/schema/ua/bestiary/bestiary.json +3735 -0
  35. package/schema/ua/bestiary/fluff-bestiary.json +15 -0
  36. package/schema/ua/bestiary/fluff-index.json +11 -0
  37. package/schema/ua/bestiary/foundry.json +15 -0
  38. package/schema/ua/bestiary/index.json +11 -0
  39. package/schema/ua/bestiary/legendarygroups.json +202 -0
  40. package/schema/ua/bestiary/template.json +275 -0
  41. package/schema/ua/book/book.json +12 -0
  42. package/schema/ua/books.json +141 -0
  43. package/schema/ua/changelog.json +35 -0
  44. package/schema/ua/charcreationoptions.json +80 -0
  45. package/schema/ua/class/class.json +1881 -0
  46. package/schema/ua/class/foundry.json +397 -0
  47. package/schema/ua/class/index.json +11 -0
  48. package/schema/ua/conditionsdiseases.json +82 -0
  49. package/schema/ua/cultsboons.json +175 -0
  50. package/schema/ua/decks.json +504 -0
  51. package/schema/ua/deities.json +473 -0
  52. package/schema/ua/encounters.json +105 -0
  53. package/schema/ua/entry.json +3748 -0
  54. package/schema/ua/feats.json +117 -0
  55. package/schema/ua/fluff-backgrounds.json +15 -0
  56. package/schema/ua/fluff-charcreationoptions.json +43 -0
  57. package/schema/ua/fluff-conditionsdiseases.json +43 -0
  58. package/schema/ua/fluff-feats.json +15 -0
  59. package/schema/ua/fluff-items.json +15 -0
  60. package/schema/ua/fluff-languages.json +42 -0
  61. package/schema/ua/fluff-objects.json +15 -0
  62. package/schema/ua/fluff-races.json +214 -0
  63. package/schema/ua/fluff-recipes.json +42 -0
  64. package/schema/ua/fluff-vehicles.json +63 -0
  65. package/schema/ua/foundry-actions.json +15 -0
  66. package/schema/ua/foundry-backgrounds.json +53 -0
  67. package/schema/ua/foundry-feats.json +15 -0
  68. package/schema/ua/foundry-items.json +63 -0
  69. package/schema/ua/foundry-optionalfeatures.json +15 -0
  70. package/schema/ua/foundry-psionics.json +56 -0
  71. package/schema/ua/foundry-races.json +58 -0
  72. package/schema/ua/foundry-rewards.json +15 -0
  73. package/schema/ua/foundry-vehicles.json +15 -0
  74. package/schema/ua/generated/bookref-quick.json +72 -0
  75. package/schema/ua/generated/gendata-spell-source-lookup.json +230 -0
  76. package/schema/ua/homebrew.json +633 -0
  77. package/schema/ua/items-base.json +959 -0
  78. package/schema/ua/items-shared.json +267 -0
  79. package/schema/ua/items.json +1770 -0
  80. package/schema/ua/languages.json +123 -0
  81. package/schema/ua/life.json +17 -0
  82. package/schema/ua/loot.json +510 -0
  83. package/schema/ua/magicvariants.json +361 -0
  84. package/schema/ua/makebrew-creature.json +66 -0
  85. package/schema/ua/makecards.json +43 -0
  86. package/schema/ua/monsterfeatures.json +53 -0
  87. package/schema/ua/msbcr.json +60 -0
  88. package/schema/ua/names.json +94 -0
  89. package/schema/ua/objects.json +165 -0
  90. package/schema/ua/optionalfeatures.json +130 -0
  91. package/schema/ua/psionics.json +173 -0
  92. package/schema/ua/races.json +1668 -0
  93. package/schema/ua/recipes.json +185 -0
  94. package/schema/ua/renderdemo.json +16 -0
  95. package/schema/ua/rewards.json +93 -0
  96. package/schema/ua/senses.json +54 -0
  97. package/schema/ua/skills.json +54 -0
  98. package/schema/ua/spells/fluff-index.json +11 -0
  99. package/schema/ua/spells/fluff-spells.json +15 -0
  100. package/schema/ua/spells/foundry.json +15 -0
  101. package/schema/ua/spells/index.json +11 -0
  102. package/schema/ua/spells/roll20.json +112 -0
  103. package/schema/ua/spells/spells.json +1250 -0
  104. package/schema/ua/tables.json +220 -0
  105. package/schema/ua/trapshazards.json +236 -0
  106. package/schema/ua/util.json +4466 -0
  107. package/schema/ua/variantrules.json +74 -0
  108. package/schema/ua/vehicles.json +820 -0
  109. package/schema/ua-fast/actions.json +97 -0
  110. package/schema/ua-fast/adventure/adventure.json +12 -0
  111. package/schema/ua-fast/adventures.json +214 -0
  112. package/schema/ua-fast/backgrounds.json +326 -0
  113. package/schema/ua-fast/bestiary/bestiary.json +3735 -0
  114. package/schema/ua-fast/bestiary/fluff-bestiary.json +15 -0
  115. package/schema/ua-fast/bestiary/fluff-index.json +11 -0
  116. package/schema/ua-fast/bestiary/foundry.json +15 -0
  117. package/schema/ua-fast/bestiary/index.json +11 -0
  118. package/schema/ua-fast/bestiary/legendarygroups.json +202 -0
  119. package/schema/ua-fast/bestiary/template.json +275 -0
  120. package/schema/ua-fast/book/book.json +12 -0
  121. package/schema/ua-fast/books.json +141 -0
  122. package/schema/ua-fast/changelog.json +35 -0
  123. package/schema/ua-fast/charcreationoptions.json +80 -0
  124. package/schema/ua-fast/class/class.json +1881 -0
  125. package/schema/ua-fast/class/foundry.json +397 -0
  126. package/schema/ua-fast/class/index.json +11 -0
  127. package/schema/ua-fast/conditionsdiseases.json +82 -0
  128. package/schema/ua-fast/cultsboons.json +175 -0
  129. package/schema/ua-fast/decks.json +504 -0
  130. package/schema/ua-fast/deities.json +473 -0
  131. package/schema/ua-fast/encounters.json +105 -0
  132. package/schema/ua-fast/entry.json +3748 -0
  133. package/schema/ua-fast/feats.json +117 -0
  134. package/schema/ua-fast/fluff-backgrounds.json +15 -0
  135. package/schema/ua-fast/fluff-charcreationoptions.json +43 -0
  136. package/schema/ua-fast/fluff-conditionsdiseases.json +43 -0
  137. package/schema/ua-fast/fluff-feats.json +15 -0
  138. package/schema/ua-fast/fluff-items.json +15 -0
  139. package/schema/ua-fast/fluff-languages.json +42 -0
  140. package/schema/ua-fast/fluff-objects.json +15 -0
  141. package/schema/ua-fast/fluff-races.json +214 -0
  142. package/schema/ua-fast/fluff-recipes.json +42 -0
  143. package/schema/ua-fast/fluff-vehicles.json +63 -0
  144. package/schema/ua-fast/foundry-actions.json +15 -0
  145. package/schema/ua-fast/foundry-backgrounds.json +53 -0
  146. package/schema/ua-fast/foundry-feats.json +15 -0
  147. package/schema/ua-fast/foundry-items.json +63 -0
  148. package/schema/ua-fast/foundry-optionalfeatures.json +15 -0
  149. package/schema/ua-fast/foundry-psionics.json +56 -0
  150. package/schema/ua-fast/foundry-races.json +58 -0
  151. package/schema/ua-fast/foundry-rewards.json +15 -0
  152. package/schema/ua-fast/foundry-vehicles.json +15 -0
  153. package/schema/ua-fast/generated/bookref-quick.json +72 -0
  154. package/schema/ua-fast/generated/gendata-spell-source-lookup.json +230 -0
  155. package/schema/ua-fast/homebrew.json +631 -0
  156. package/schema/ua-fast/items-base.json +959 -0
  157. package/schema/ua-fast/items-shared.json +267 -0
  158. package/schema/ua-fast/items.json +1770 -0
  159. package/schema/ua-fast/languages.json +123 -0
  160. package/schema/ua-fast/life.json +17 -0
  161. package/schema/ua-fast/loot.json +510 -0
  162. package/schema/ua-fast/magicvariants.json +361 -0
  163. package/schema/ua-fast/makebrew-creature.json +66 -0
  164. package/schema/ua-fast/makecards.json +43 -0
  165. package/schema/ua-fast/monsterfeatures.json +53 -0
  166. package/schema/ua-fast/msbcr.json +60 -0
  167. package/schema/ua-fast/names.json +94 -0
  168. package/schema/ua-fast/objects.json +165 -0
  169. package/schema/ua-fast/optionalfeatures.json +130 -0
  170. package/schema/ua-fast/psionics.json +173 -0
  171. package/schema/ua-fast/races.json +1668 -0
  172. package/schema/ua-fast/recipes.json +185 -0
  173. package/schema/ua-fast/renderdemo.json +16 -0
  174. package/schema/ua-fast/rewards.json +93 -0
  175. package/schema/ua-fast/senses.json +54 -0
  176. package/schema/ua-fast/skills.json +54 -0
  177. package/schema/ua-fast/spells/fluff-index.json +11 -0
  178. package/schema/ua-fast/spells/fluff-spells.json +15 -0
  179. package/schema/ua-fast/spells/foundry.json +15 -0
  180. package/schema/ua-fast/spells/index.json +11 -0
  181. package/schema/ua-fast/spells/roll20.json +112 -0
  182. package/schema/ua-fast/spells/spells.json +1250 -0
  183. package/schema/ua-fast/tables.json +220 -0
  184. package/schema/ua-fast/trapshazards.json +236 -0
  185. package/schema/ua-fast/util.json +4466 -0
  186. package/schema/ua-fast/variantrules.json +74 -0
  187. package/schema/ua-fast/vehicles.json +820 -0
@@ -0,0 +1,361 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "magicvariants.json",
4
+ "version": "1.8.2",
5
+ "type": "object",
6
+ "properties": {
7
+ "magicvariant": {
8
+ "type": "array",
9
+ "minItems": 1,
10
+ "uniqueItems": true,
11
+ "items": {
12
+ "type": "object",
13
+ "properties": {
14
+ "name": {
15
+ "type": "string"
16
+ },
17
+ "type": {
18
+ "$ref": "items-shared.json#/$defs/itemType"
19
+ },
20
+ "entries": {
21
+ "type": "array",
22
+ "items": {
23
+ "$ref": "entry.json"
24
+ }
25
+ },
26
+ "requires": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "object",
30
+ "properties": {
31
+ "armor": {
32
+ "type": "boolean"
33
+ },
34
+ "axe": {
35
+ "type": "boolean"
36
+ },
37
+ "bow": {
38
+ "type": "boolean"
39
+ },
40
+ "crossbow": {
41
+ "type": "boolean"
42
+ },
43
+ "sword": {
44
+ "type": "boolean"
45
+ },
46
+ "weapon": {
47
+ "type": "boolean"
48
+ },
49
+ "dmgType": {
50
+ "$ref": "util.json#/$defs/dataDamageTags"
51
+ },
52
+ "name": {
53
+ "type": "string"
54
+ },
55
+ "source": {
56
+ "$ref": "util.json#/$defs/source"
57
+ },
58
+ "type": {
59
+ "$ref": "items-shared.json#/$defs/itemType"
60
+ },
61
+ "scfType": {
62
+ "$ref": "items-shared.json#/$defs/itemScfType"
63
+ },
64
+ "net": {
65
+ "type": "boolean"
66
+ },
67
+ "weaponCategory": {
68
+ "$ref": "items-shared.json#/$defs/itemWeaponCategory"
69
+ },
70
+ "property": {
71
+ "type": "string"
72
+ }
73
+ },
74
+ "additionalProperties": false
75
+ }
76
+ },
77
+ "inherits": {
78
+ "type": "object",
79
+ "properties": {
80
+ "type": {
81
+ "description": "Generally this should be omitted, as the type of the base item will be used.",
82
+ "$ref": "items-shared.json#/$defs/itemType"
83
+ },
84
+ "property": {
85
+ "description": "Generally this should be omitted, as the properties of the base item will be used.",
86
+ "$ref": "items-shared.json#/$defs/itemProperty"
87
+ },
88
+ "propertyAdd": {
89
+ "description": "Additional properties to grant the specific variant, if not already present on the base item.",
90
+ "$ref": "items-shared.json#/$defs/itemProperty"
91
+ },
92
+ "propertyRemove": {
93
+ "description": "Properties to remove from the specific variant, if present on the base item.",
94
+ "$ref": "items-shared.json#/$defs/itemProperty"
95
+ },
96
+ "bonusAc": {
97
+ "type": "string"
98
+ },
99
+ "bonusWeapon": {
100
+ "type": "string"
101
+ },
102
+ "bonusWeaponAttack": {
103
+ "type": "string"
104
+ },
105
+ "bonusSpellAttack": {
106
+ "type": "string"
107
+ },
108
+ "bonusSpellDamage": {
109
+ "type": "string"
110
+ },
111
+ "bonusSavingThrow": {
112
+ "type": "string"
113
+ },
114
+ "bonusAbilityCheck": {
115
+ "type": "string"
116
+ },
117
+ "modifySpeed": {
118
+ "$ref": "items-shared.json#/$defs/itemModifySpeed"
119
+ },
120
+ "tier": {
121
+ "$ref": "items-shared.json#/$defs/itemTier"
122
+ },
123
+ "rarity": {
124
+ "$ref": "items-shared.json#/$defs/itemRarity"
125
+ },
126
+ "source": {
127
+ "$ref": "util.json#/$defs/source"
128
+ },
129
+ "page": {
130
+ "$ref": "util.json#/$defs/page"
131
+ },
132
+ "namePrefix": {
133
+ "type": "string"
134
+ },
135
+ "nameSuffix": {
136
+ "type": "string"
137
+ },
138
+ "nameRemove": {
139
+ "type": "string"
140
+ },
141
+ "reqAttune": {
142
+ "type": [
143
+ "string",
144
+ "boolean"
145
+ ]
146
+ },
147
+ "curse": {
148
+ "type": "boolean"
149
+ },
150
+ "vulnerable": {
151
+ "$ref": "util.json#/$defs/damageVulnerabilityArray"
152
+ },
153
+ "resist": {
154
+ "$ref": "util.json#/$defs/damageResistArray"
155
+ },
156
+ "immune": {
157
+ "$ref": "util.json#/$defs/damageImmunityArray"
158
+ },
159
+ "conditionImmune": {
160
+ "$ref": "util.json#/$defs/conditionImmunityArray"
161
+ },
162
+ "stealth": {
163
+ "type": "boolean"
164
+ },
165
+ "strength": {
166
+ "type": [
167
+ "string",
168
+ "null"
169
+ ]
170
+ },
171
+ "wondrous": {
172
+ "type": "boolean"
173
+ },
174
+ "entries": {
175
+ "type": "array",
176
+ "items": {
177
+ "$ref": "entry.json"
178
+ }
179
+ },
180
+ "charges": {
181
+ "type": [
182
+ "string",
183
+ "integer"
184
+ ]
185
+ },
186
+ "recharge": {
187
+ "$ref": "items-shared.json#/$defs/itemRecharge"
188
+ },
189
+ "rechargeAmount": {
190
+ "$ref": "items-shared.json#/$defs/itemRechargeAmount"
191
+ },
192
+ "attachedSpells": {
193
+ "type": "array",
194
+ "items": {
195
+ "type": "string"
196
+ }
197
+ },
198
+ "lootTables": {
199
+ "type": "array",
200
+ "items": {
201
+ "oneOf": [
202
+ {
203
+ "type": "string"
204
+ },
205
+ {
206
+ "type": "object",
207
+ "properties": {
208
+ "name": {
209
+ "type": "string"
210
+ },
211
+ "source": {
212
+ "$ref": "util.json#/$defs/source"
213
+ }
214
+ }
215
+ }
216
+ ]
217
+ }
218
+ },
219
+ "srd": {
220
+ "$ref": "util.json#/$defs/srd"
221
+ },
222
+ "basicRules": {
223
+ "$ref": "util.json#/$defs/basicRules"
224
+ },
225
+ "legacy": {
226
+ "$ref": "util.json#/$defs/legacy"
227
+ },
228
+ "otherSources": {
229
+ "$ref": "util.json#/$defs/otherSources"
230
+ },
231
+ "valueMult": {
232
+ "type": "number"
233
+ },
234
+ "valueExpression": {
235
+ "description": "Expression used to calculate each specific variant's value.",
236
+ "type": "string"
237
+ },
238
+ "weightMult": {
239
+ "type": "number"
240
+ },
241
+ "weightExpression": {
242
+ "description": "Expression used to calculate each specific variant's weight.",
243
+ "type": "string"
244
+ },
245
+ "barding": {
246
+ "type": "boolean"
247
+ },
248
+ "reqAttuneTags": {
249
+ "$ref": "util.json#/$defs/reqAttuneTags"
250
+ },
251
+ "reqAttuneAltTags": {
252
+ "$ref": "util.json#/$defs/reqAttuneTags"
253
+ },
254
+ "mastery": {
255
+ "$ref": "items-shared.json#/$defs/itemMastery"
256
+ },
257
+ "hasRefs": {
258
+ "type": "boolean",
259
+ "description": "Whether this item has references within its data to dedicated \"itemEntry\"s."
260
+ }
261
+ },
262
+ "required": [
263
+ "rarity",
264
+ "source",
265
+ "page"
266
+ ],
267
+ "additionalProperties": false
268
+ },
269
+ "excludes": {
270
+ "type": "object",
271
+ "properties": {
272
+ "name": {
273
+ "oneOf": [
274
+ {
275
+ "type": "string"
276
+ },
277
+ {
278
+ "type": "array",
279
+ "items": {
280
+ "type": "string"
281
+ }
282
+ }
283
+ ]
284
+ },
285
+ "page": {
286
+ "$ref": "util.json#/$defs/page"
287
+ },
288
+ "property": {
289
+ "oneOf": [
290
+ {
291
+ "type": "string"
292
+ },
293
+ {
294
+ "type": "array",
295
+ "items": {
296
+ "type": "string"
297
+ }
298
+ }
299
+ ]
300
+ },
301
+ "net": {
302
+ "type": "boolean"
303
+ }
304
+ },
305
+ "additionalProperties": false
306
+ },
307
+ "noDisplay": {
308
+ "type": "boolean"
309
+ },
310
+ "charges": {
311
+ "type": [
312
+ "string",
313
+ "integer"
314
+ ]
315
+ },
316
+ "attachedSpells": {
317
+ "type": "array",
318
+ "items": {
319
+ "type": "string"
320
+ }
321
+ },
322
+ "ammo": {
323
+ "type": "boolean"
324
+ },
325
+ "reqAttuneTags": {
326
+ "$ref": "util.json#/$defs/reqAttuneTags"
327
+ },
328
+ "reqAttuneAltTags": {
329
+ "$ref": "util.json#/$defs/reqAttuneTags"
330
+ },
331
+ "weaponCategory": {
332
+ "$ref": "items-shared.json#/$defs/itemWeaponCategory"
333
+ },
334
+ "hasFluff": {
335
+ "type": "boolean"
336
+ },
337
+ "hasFluffImages": {
338
+ "type": "boolean"
339
+ }
340
+ },
341
+ "required": [
342
+ "name",
343
+ "inherits"
344
+ ],
345
+ "additionalProperties": false
346
+ }
347
+ },
348
+ "linkedLootTables": {
349
+ "type": "object",
350
+ "properties": {
351
+ "DMG": {
352
+ "type": "object"
353
+ }
354
+ }
355
+ }
356
+ },
357
+ "required": [
358
+ "magicvariant"
359
+ ],
360
+ "additionalProperties": false
361
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "makebrew-creature.json",
4
+ "version": "1.1.3",
5
+ "type": "object",
6
+ "properties": {
7
+ "#makebrewCreatureTrait": {
8
+ "type": "string"
9
+ },
10
+ "makebrewCreatureTrait": {
11
+ "description": "Additional trait templates which can be used in the homebrew builder.",
12
+ "type": "array",
13
+ "minItems": 1,
14
+ "uniqueItems": true,
15
+ "items": {
16
+ "type": "object",
17
+ "properties": {
18
+ "name": {
19
+ "type": "string"
20
+ },
21
+ "source": {
22
+ "$ref": "util.json#/$defs/source"
23
+ },
24
+ "entries": {
25
+ "type": "array",
26
+ "items": {
27
+ "$ref": "entry.json"
28
+ }
29
+ }
30
+ },
31
+ "required": [
32
+ "name",
33
+ "entries"
34
+ ]
35
+ }
36
+ },
37
+ "makebrewCreatureAction": {
38
+ "description": "Additional action templates which can be used in the homebrew builder.",
39
+ "type": "array",
40
+ "minItems": 1,
41
+ "uniqueItems": true,
42
+ "items": {
43
+ "type": "object",
44
+ "properties": {
45
+ "name": {
46
+ "type": "string"
47
+ },
48
+ "source": {
49
+ "$ref": "util.json#/$defs/source"
50
+ },
51
+ "entries": {
52
+ "type": "array",
53
+ "items": {
54
+ "$ref": "entry.json"
55
+ }
56
+ }
57
+ },
58
+ "required": [
59
+ "name",
60
+ "entries"
61
+ ]
62
+ }
63
+ }
64
+ },
65
+ "additionalProperties": false
66
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "makecards.json",
4
+ "version": "1.0.1",
5
+ "$defs": {
6
+ "itemLookupArray": {
7
+ "type": "array",
8
+ "minItems": 1,
9
+ "uniqueItems": true,
10
+ "items": {
11
+ "type": "object",
12
+ "properties": {
13
+ "abbreviation": {
14
+ "type": "string"
15
+ },
16
+ "name": {
17
+ "type": "string"
18
+ },
19
+ "entries": {
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "entry.json"
23
+ }
24
+ }
25
+ },
26
+ "required": [
27
+ "abbreviation"
28
+ ],
29
+ "additionalProperties": false
30
+ }
31
+ }
32
+ },
33
+ "type": "object",
34
+ "properties": {
35
+ "reducedItemProperty": {
36
+ "$ref": "#/$defs/itemLookupArray"
37
+ },
38
+ "reducedItemType": {
39
+ "$ref": "#/$defs/itemLookupArray"
40
+ }
41
+ },
42
+ "additionalProperties": false
43
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "monsterfeatures.json",
4
+ "version": "1.1.1",
5
+ "type": "object",
6
+ "properties": {
7
+ "monsterfeatures": {
8
+ "type": "array",
9
+ "minItems": 1,
10
+ "uniqueItems": true,
11
+ "items": {
12
+ "type": "object",
13
+ "properties": {
14
+ "name": {
15
+ "type": "string"
16
+ },
17
+ "example": {
18
+ "type": "string"
19
+ },
20
+ "effect": {
21
+ "type": "string"
22
+ },
23
+ "hp": {
24
+ "type": "string"
25
+ },
26
+ "ac": {
27
+ "type": "string"
28
+ },
29
+ "dpr": {
30
+ "type": "string"
31
+ },
32
+ "attackBonus": {
33
+ "type": "string"
34
+ },
35
+ "hasNumberParam": {
36
+ "type": "boolean",
37
+ "description": "Whether this feature requires an automatic input when applied."
38
+ }
39
+ },
40
+ "required": [
41
+ "name",
42
+ "example",
43
+ "effect"
44
+ ],
45
+ "additionalProperties": false
46
+ }
47
+ }
48
+ },
49
+ "required": [
50
+ "monsterfeatures"
51
+ ],
52
+ "additionalProperties": false
53
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "msbcr.json",
4
+ "version": "1.1.0",
5
+ "type": "object",
6
+ "properties": {
7
+ "cr": {
8
+ "type": "array",
9
+ "uniqueItems": true,
10
+ "items": {
11
+ "type": "object",
12
+ "properties": {
13
+ "_cr": {
14
+ "type": "string"
15
+ },
16
+ "pb": {
17
+ "type": "integer"
18
+ },
19
+ "ac": {
20
+ "type": "integer"
21
+ },
22
+ "hpMin": {
23
+ "type": "integer"
24
+ },
25
+ "hpMax": {
26
+ "type": "integer"
27
+ },
28
+ "attackBonus": {
29
+ "type": "integer"
30
+ },
31
+ "dprMin": {
32
+ "type": "integer"
33
+ },
34
+ "dprMax": {
35
+ "type": "integer"
36
+ },
37
+ "saveDc": {
38
+ "type": "integer"
39
+ }
40
+ },
41
+ "required": [
42
+ "_cr",
43
+ "pb",
44
+ "ac",
45
+ "hpMin",
46
+ "hpMax",
47
+ "attackBonus",
48
+ "dprMin",
49
+ "dprMax",
50
+ "saveDc"
51
+ ],
52
+ "additionalProperties": false
53
+ }
54
+ }
55
+ },
56
+ "required": [
57
+ "cr"
58
+ ],
59
+ "additionalProperties": false
60
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "names.json",
4
+ "version": "1.3.1",
5
+ "title": "NameArray",
6
+ "type": "object",
7
+ "$defs": {
8
+ "nameTableRow": {
9
+ "type": "object",
10
+ "properties": {
11
+ "min": {
12
+ "type": "integer"
13
+ },
14
+ "max": {
15
+ "type": "integer"
16
+ },
17
+ "result": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "required": [
22
+ "min",
23
+ "max",
24
+ "result"
25
+ ],
26
+ "additionalProperties": false
27
+ },
28
+ "nameTable": {
29
+ "type": "object",
30
+ "properties": {
31
+ "option": {
32
+ "type": "string"
33
+ },
34
+ "diceExpression": {
35
+ "type": "string"
36
+ },
37
+ "table": {
38
+ "type": "array",
39
+ "items": {
40
+ "$ref": "#/$defs/nameTableRow"
41
+ }
42
+ }
43
+ },
44
+ "required": [
45
+ "option",
46
+ "table"
47
+ ],
48
+ "additionalProperties": false
49
+ },
50
+ "name": {
51
+ "type": "object",
52
+ "properties": {
53
+ "name": {
54
+ "type": "string"
55
+ },
56
+ "source": {
57
+ "$ref": "util.json#/$defs/source"
58
+ },
59
+ "page": {
60
+ "$ref": "util.json#/$defs/page"
61
+ },
62
+ "legacy": {
63
+ "$ref": "util.json#/$defs/legacy"
64
+ },
65
+ "tables": {
66
+ "type": "array",
67
+ "items": {
68
+ "$ref": "#/$defs/nameTable"
69
+ }
70
+ }
71
+ },
72
+ "required": [
73
+ "name",
74
+ "source",
75
+ "tables"
76
+ ],
77
+ "additionalProperties": false
78
+ }
79
+ },
80
+ "properties": {
81
+ "name": {
82
+ "type": "array",
83
+ "minItems": 1,
84
+ "uniqueItems": true,
85
+ "items": {
86
+ "$ref": "#/$defs/name"
87
+ }
88
+ }
89
+ },
90
+ "required": [
91
+ "name"
92
+ ],
93
+ "additionalProperties": false
94
+ }