5etools-utils 0.2.2 → 0.3.0

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 (281) hide show
  1. package/package.json +3 -2
  2. package/schema/brew/actions.json +109 -0
  3. package/schema/brew/adventure/adventure.json +12 -0
  4. package/schema/brew/adventures.json +249 -0
  5. package/schema/brew/backgrounds.json +425 -0
  6. package/schema/brew/bestiary/bestiary.json +3766 -0
  7. package/schema/brew/bestiary/fluff-bestiary.json +15 -0
  8. package/schema/brew/bestiary/foundry.json +15 -0
  9. package/schema/brew/bestiary/legendarygroups.json +202 -0
  10. package/schema/brew/bestiary/traits.json +85 -0
  11. package/schema/brew/book/book.json +12 -0
  12. package/schema/brew/books.json +137 -0
  13. package/schema/brew/charcreationoptions.json +96 -0
  14. package/schema/brew/class/class.json +2059 -0
  15. package/schema/brew/class/foundry.json +373 -0
  16. package/schema/brew/conditionsdiseases.json +103 -0
  17. package/schema/brew/cultsboons.json +196 -0
  18. package/schema/brew/deities.json +482 -0
  19. package/schema/brew/encounters.json +99 -0
  20. package/schema/brew/entry.json +3538 -0
  21. package/schema/brew/feats.json +215 -0
  22. package/schema/brew/fluff-backgrounds.json +15 -0
  23. package/schema/brew/fluff-charcreationoptions.json +43 -0
  24. package/schema/brew/fluff-conditionsdiseases.json +43 -0
  25. package/schema/brew/fluff-feats.json +15 -0
  26. package/schema/brew/fluff-items.json +15 -0
  27. package/schema/brew/fluff-languages.json +42 -0
  28. package/schema/brew/fluff-objects.json +15 -0
  29. package/schema/brew/fluff-races.json +214 -0
  30. package/schema/brew/fluff-recipes.json +42 -0
  31. package/schema/brew/fluff-vehicles.json +63 -0
  32. package/schema/brew/foundry-actions.json +15 -0
  33. package/schema/brew/foundry-backgrounds.json +47 -0
  34. package/schema/brew/foundry-feats.json +15 -0
  35. package/schema/brew/foundry-items.json +57 -0
  36. package/schema/brew/foundry-optionalfeatures.json +15 -0
  37. package/schema/brew/foundry-psionics.json +50 -0
  38. package/schema/brew/foundry-races.json +52 -0
  39. package/schema/brew/foundry-rewards.json +15 -0
  40. package/schema/brew/foundry-vehicles.json +15 -0
  41. package/schema/brew/generated/bookref-quick.json +72 -0
  42. package/schema/brew/homebrew.json +564 -0
  43. package/schema/brew/items-base.json +460 -0
  44. package/schema/brew/items-shared.json +295 -0
  45. package/schema/brew/items.json +1866 -0
  46. package/schema/brew/languages.json +127 -0
  47. package/schema/brew/loot.json +510 -0
  48. package/schema/brew/magicvariants.json +387 -0
  49. package/schema/brew/makebrew-creature.json +40 -0
  50. package/schema/brew/makecards.json +43 -0
  51. package/schema/brew/monsterfeatures.json +53 -0
  52. package/schema/brew/msbcr.json +60 -0
  53. package/schema/brew/names.json +91 -0
  54. package/schema/brew/objects.json +172 -0
  55. package/schema/brew/optionalfeatures.json +139 -0
  56. package/schema/brew/psionics.json +185 -0
  57. package/schema/brew/races.json +1799 -0
  58. package/schema/brew/recipes.json +191 -0
  59. package/schema/brew/renderdemo.json +16 -0
  60. package/schema/brew/rewards.json +102 -0
  61. package/schema/brew/senses.json +54 -0
  62. package/schema/brew/skills.json +54 -0
  63. package/schema/brew/spells/fluff-spells.json +15 -0
  64. package/schema/brew/spells/foundry.json +15 -0
  65. package/schema/brew/spells/roll20.json +112 -0
  66. package/schema/brew/spells/spells.json +1841 -0
  67. package/schema/brew/tables.json +202 -0
  68. package/schema/brew/trapshazards.json +249 -0
  69. package/schema/brew/util.json +3867 -0
  70. package/schema/brew/variantrules.json +74 -0
  71. package/schema/brew/vehicles.json +854 -0
  72. package/schema/brew-fast/actions.json +109 -0
  73. package/schema/brew-fast/adventure/adventure.json +12 -0
  74. package/schema/brew-fast/adventures.json +249 -0
  75. package/schema/brew-fast/backgrounds.json +425 -0
  76. package/schema/brew-fast/bestiary/bestiary.json +3766 -0
  77. package/schema/brew-fast/bestiary/fluff-bestiary.json +15 -0
  78. package/schema/brew-fast/bestiary/foundry.json +15 -0
  79. package/schema/brew-fast/bestiary/legendarygroups.json +202 -0
  80. package/schema/brew-fast/bestiary/traits.json +85 -0
  81. package/schema/brew-fast/book/book.json +12 -0
  82. package/schema/brew-fast/books.json +137 -0
  83. package/schema/brew-fast/charcreationoptions.json +96 -0
  84. package/schema/brew-fast/class/class.json +2059 -0
  85. package/schema/brew-fast/class/foundry.json +373 -0
  86. package/schema/brew-fast/conditionsdiseases.json +103 -0
  87. package/schema/brew-fast/cultsboons.json +196 -0
  88. package/schema/brew-fast/deities.json +482 -0
  89. package/schema/brew-fast/encounters.json +99 -0
  90. package/schema/brew-fast/entry.json +3538 -0
  91. package/schema/brew-fast/feats.json +215 -0
  92. package/schema/brew-fast/fluff-backgrounds.json +15 -0
  93. package/schema/brew-fast/fluff-charcreationoptions.json +43 -0
  94. package/schema/brew-fast/fluff-conditionsdiseases.json +43 -0
  95. package/schema/brew-fast/fluff-feats.json +15 -0
  96. package/schema/brew-fast/fluff-items.json +15 -0
  97. package/schema/brew-fast/fluff-languages.json +42 -0
  98. package/schema/brew-fast/fluff-objects.json +15 -0
  99. package/schema/brew-fast/fluff-races.json +214 -0
  100. package/schema/brew-fast/fluff-recipes.json +42 -0
  101. package/schema/brew-fast/fluff-vehicles.json +63 -0
  102. package/schema/brew-fast/foundry-actions.json +15 -0
  103. package/schema/brew-fast/foundry-backgrounds.json +47 -0
  104. package/schema/brew-fast/foundry-feats.json +15 -0
  105. package/schema/brew-fast/foundry-items.json +57 -0
  106. package/schema/brew-fast/foundry-optionalfeatures.json +15 -0
  107. package/schema/brew-fast/foundry-psionics.json +50 -0
  108. package/schema/brew-fast/foundry-races.json +52 -0
  109. package/schema/brew-fast/foundry-rewards.json +15 -0
  110. package/schema/brew-fast/foundry-vehicles.json +15 -0
  111. package/schema/brew-fast/generated/bookref-quick.json +72 -0
  112. package/schema/brew-fast/homebrew.json +562 -0
  113. package/schema/brew-fast/items-base.json +460 -0
  114. package/schema/brew-fast/items-shared.json +295 -0
  115. package/schema/brew-fast/items.json +1866 -0
  116. package/schema/brew-fast/languages.json +127 -0
  117. package/schema/brew-fast/loot.json +510 -0
  118. package/schema/brew-fast/magicvariants.json +387 -0
  119. package/schema/brew-fast/makebrew-creature.json +40 -0
  120. package/schema/brew-fast/makecards.json +43 -0
  121. package/schema/brew-fast/monsterfeatures.json +53 -0
  122. package/schema/brew-fast/msbcr.json +60 -0
  123. package/schema/brew-fast/names.json +91 -0
  124. package/schema/brew-fast/objects.json +172 -0
  125. package/schema/brew-fast/optionalfeatures.json +139 -0
  126. package/schema/brew-fast/psionics.json +185 -0
  127. package/schema/brew-fast/races.json +1799 -0
  128. package/schema/brew-fast/recipes.json +191 -0
  129. package/schema/brew-fast/renderdemo.json +16 -0
  130. package/schema/brew-fast/rewards.json +102 -0
  131. package/schema/brew-fast/senses.json +54 -0
  132. package/schema/brew-fast/skills.json +54 -0
  133. package/schema/brew-fast/spells/fluff-spells.json +15 -0
  134. package/schema/brew-fast/spells/foundry.json +15 -0
  135. package/schema/brew-fast/spells/roll20.json +112 -0
  136. package/schema/brew-fast/spells/spells.json +1841 -0
  137. package/schema/brew-fast/tables.json +202 -0
  138. package/schema/brew-fast/trapshazards.json +249 -0
  139. package/schema/brew-fast/util.json +3867 -0
  140. package/schema/brew-fast/variantrules.json +74 -0
  141. package/schema/brew-fast/vehicles.json +854 -0
  142. package/schema/site/actions.json +97 -0
  143. package/schema/site/adventure/adventure.json +12 -0
  144. package/schema/site/adventures.json +211 -0
  145. package/schema/site/backgrounds.json +306 -0
  146. package/schema/site/bestiary/bestiary.json +3537 -0
  147. package/schema/site/bestiary/fluff-bestiary.json +15 -0
  148. package/schema/site/bestiary/foundry.json +15 -0
  149. package/schema/site/bestiary/legendarygroups.json +202 -0
  150. package/schema/site/bestiary/traits.json +85 -0
  151. package/schema/site/book/book.json +12 -0
  152. package/schema/site/books.json +137 -0
  153. package/schema/site/charcreationoptions.json +80 -0
  154. package/schema/site/class/class.json +1792 -0
  155. package/schema/site/class/foundry.json +373 -0
  156. package/schema/site/conditionsdiseases.json +82 -0
  157. package/schema/site/cultsboons.json +172 -0
  158. package/schema/site/deities.json +461 -0
  159. package/schema/site/encounters.json +99 -0
  160. package/schema/site/entry.json +3471 -0
  161. package/schema/site/feats.json +199 -0
  162. package/schema/site/fluff-backgrounds.json +15 -0
  163. package/schema/site/fluff-charcreationoptions.json +43 -0
  164. package/schema/site/fluff-conditionsdiseases.json +43 -0
  165. package/schema/site/fluff-feats.json +15 -0
  166. package/schema/site/fluff-items.json +15 -0
  167. package/schema/site/fluff-languages.json +42 -0
  168. package/schema/site/fluff-objects.json +15 -0
  169. package/schema/site/fluff-races.json +214 -0
  170. package/schema/site/fluff-recipes.json +42 -0
  171. package/schema/site/fluff-vehicles.json +63 -0
  172. package/schema/site/foundry-actions.json +15 -0
  173. package/schema/site/foundry-backgrounds.json +47 -0
  174. package/schema/site/foundry-feats.json +15 -0
  175. package/schema/site/foundry-items.json +57 -0
  176. package/schema/site/foundry-optionalfeatures.json +15 -0
  177. package/schema/site/foundry-psionics.json +50 -0
  178. package/schema/site/foundry-races.json +52 -0
  179. package/schema/site/foundry-rewards.json +15 -0
  180. package/schema/site/foundry-vehicles.json +15 -0
  181. package/schema/site/generated/bookref-quick.json +72 -0
  182. package/schema/site/homebrew.json +564 -0
  183. package/schema/site/items-base.json +425 -0
  184. package/schema/site/items-shared.json +259 -0
  185. package/schema/site/items.json +1722 -0
  186. package/schema/site/languages.json +120 -0
  187. package/schema/site/loot.json +510 -0
  188. package/schema/site/magicvariants.json +355 -0
  189. package/schema/site/makebrew-creature.json +39 -0
  190. package/schema/site/makecards.json +43 -0
  191. package/schema/site/monsterfeatures.json +53 -0
  192. package/schema/site/msbcr.json +60 -0
  193. package/schema/site/names.json +91 -0
  194. package/schema/site/objects.json +165 -0
  195. package/schema/site/optionalfeatures.json +127 -0
  196. package/schema/site/psionics.json +173 -0
  197. package/schema/site/races.json +1708 -0
  198. package/schema/site/recipes.json +185 -0
  199. package/schema/site/renderdemo.json +16 -0
  200. package/schema/site/rewards.json +90 -0
  201. package/schema/site/senses.json +54 -0
  202. package/schema/site/skills.json +54 -0
  203. package/schema/site/spells/fluff-spells.json +15 -0
  204. package/schema/site/spells/foundry.json +15 -0
  205. package/schema/site/spells/roll20.json +112 -0
  206. package/schema/site/spells/spells.json +1238 -0
  207. package/schema/site/tables.json +185 -0
  208. package/schema/site/trapshazards.json +227 -0
  209. package/schema/site/util.json +3857 -0
  210. package/schema/site/variantrules.json +71 -0
  211. package/schema/site/vehicles.json +807 -0
  212. package/schema/site-fast/actions.json +97 -0
  213. package/schema/site-fast/adventure/adventure.json +12 -0
  214. package/schema/site-fast/adventures.json +211 -0
  215. package/schema/site-fast/backgrounds.json +306 -0
  216. package/schema/site-fast/bestiary/bestiary.json +3537 -0
  217. package/schema/site-fast/bestiary/fluff-bestiary.json +15 -0
  218. package/schema/site-fast/bestiary/foundry.json +15 -0
  219. package/schema/site-fast/bestiary/legendarygroups.json +202 -0
  220. package/schema/site-fast/bestiary/traits.json +85 -0
  221. package/schema/site-fast/book/book.json +12 -0
  222. package/schema/site-fast/books.json +137 -0
  223. package/schema/site-fast/charcreationoptions.json +80 -0
  224. package/schema/site-fast/class/class.json +1792 -0
  225. package/schema/site-fast/class/foundry.json +373 -0
  226. package/schema/site-fast/conditionsdiseases.json +82 -0
  227. package/schema/site-fast/cultsboons.json +172 -0
  228. package/schema/site-fast/deities.json +461 -0
  229. package/schema/site-fast/encounters.json +99 -0
  230. package/schema/site-fast/entry.json +3471 -0
  231. package/schema/site-fast/feats.json +199 -0
  232. package/schema/site-fast/fluff-backgrounds.json +15 -0
  233. package/schema/site-fast/fluff-charcreationoptions.json +43 -0
  234. package/schema/site-fast/fluff-conditionsdiseases.json +43 -0
  235. package/schema/site-fast/fluff-feats.json +15 -0
  236. package/schema/site-fast/fluff-items.json +15 -0
  237. package/schema/site-fast/fluff-languages.json +42 -0
  238. package/schema/site-fast/fluff-objects.json +15 -0
  239. package/schema/site-fast/fluff-races.json +214 -0
  240. package/schema/site-fast/fluff-recipes.json +42 -0
  241. package/schema/site-fast/fluff-vehicles.json +63 -0
  242. package/schema/site-fast/foundry-actions.json +15 -0
  243. package/schema/site-fast/foundry-backgrounds.json +47 -0
  244. package/schema/site-fast/foundry-feats.json +15 -0
  245. package/schema/site-fast/foundry-items.json +57 -0
  246. package/schema/site-fast/foundry-optionalfeatures.json +15 -0
  247. package/schema/site-fast/foundry-psionics.json +50 -0
  248. package/schema/site-fast/foundry-races.json +52 -0
  249. package/schema/site-fast/foundry-rewards.json +15 -0
  250. package/schema/site-fast/foundry-vehicles.json +15 -0
  251. package/schema/site-fast/generated/bookref-quick.json +72 -0
  252. package/schema/site-fast/homebrew.json +562 -0
  253. package/schema/site-fast/items-base.json +425 -0
  254. package/schema/site-fast/items-shared.json +259 -0
  255. package/schema/site-fast/items.json +1722 -0
  256. package/schema/site-fast/languages.json +120 -0
  257. package/schema/site-fast/loot.json +510 -0
  258. package/schema/site-fast/magicvariants.json +355 -0
  259. package/schema/site-fast/makebrew-creature.json +39 -0
  260. package/schema/site-fast/makecards.json +43 -0
  261. package/schema/site-fast/monsterfeatures.json +53 -0
  262. package/schema/site-fast/msbcr.json +60 -0
  263. package/schema/site-fast/names.json +91 -0
  264. package/schema/site-fast/objects.json +165 -0
  265. package/schema/site-fast/optionalfeatures.json +127 -0
  266. package/schema/site-fast/psionics.json +173 -0
  267. package/schema/site-fast/races.json +1708 -0
  268. package/schema/site-fast/recipes.json +185 -0
  269. package/schema/site-fast/renderdemo.json +16 -0
  270. package/schema/site-fast/rewards.json +90 -0
  271. package/schema/site-fast/senses.json +54 -0
  272. package/schema/site-fast/skills.json +54 -0
  273. package/schema/site-fast/spells/fluff-spells.json +15 -0
  274. package/schema/site-fast/spells/foundry.json +15 -0
  275. package/schema/site-fast/spells/roll20.json +112 -0
  276. package/schema/site-fast/spells/spells.json +1238 -0
  277. package/schema/site-fast/tables.json +185 -0
  278. package/schema/site-fast/trapshazards.json +227 -0
  279. package/schema/site-fast/util.json +3857 -0
  280. package/schema/site-fast/variantrules.json +71 -0
  281. package/schema/site-fast/vehicles.json +807 -0
@@ -0,0 +1,425 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "items-base.json",
4
+ "version": "1.5.1",
5
+ "$defs": {
6
+ "itemPropertyLookupArray": {
7
+ "type": "array",
8
+ "minItems": 1,
9
+ "uniqueItems": true,
10
+ "items": {
11
+ "$ref": "#/$defs/itemPropertyLookup"
12
+ }
13
+ },
14
+ "itemTypeLookupArray": {
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "uniqueItems": true,
18
+ "items": {
19
+ "$ref": "#/$defs/itemTypeLookup"
20
+ }
21
+ },
22
+ "itemLookupBase": {
23
+ "type": "object",
24
+ "properties": {
25
+ "abbreviation": {
26
+ "type": "string"
27
+ },
28
+ "source": {
29
+ "type": "string"
30
+ },
31
+ "page": {
32
+ "$ref": "util.json#/$defs/page"
33
+ },
34
+ "name": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "additionalProperties": false,
39
+ "required": [
40
+ "abbreviation",
41
+ "source",
42
+ "page"
43
+ ]
44
+ },
45
+ "itemPropertyLookup": {
46
+ "anyOf": [
47
+ {
48
+ "type": "object",
49
+ "properties": {
50
+ "abbreviation": {
51
+ "type": "string"
52
+ },
53
+ "source": {
54
+ "type": "string"
55
+ },
56
+ "page": {
57
+ "$ref": "util.json#/$defs/page"
58
+ },
59
+ "name": {
60
+ "type": "string"
61
+ },
62
+ "template": {
63
+ "type": "string"
64
+ },
65
+ "entries": {
66
+ "type": "array",
67
+ "items": {
68
+ "$ref": "entry.json"
69
+ }
70
+ }
71
+ },
72
+ "additionalProperties": false,
73
+ "required": [
74
+ "abbreviation",
75
+ "source",
76
+ "page"
77
+ ]
78
+ },
79
+ {
80
+ "type": "object",
81
+ "properties": {
82
+ "abbreviation": {
83
+ "type": "string"
84
+ },
85
+ "source": {
86
+ "type": "string"
87
+ },
88
+ "page": {
89
+ "$ref": "util.json#/$defs/page"
90
+ },
91
+ "name": {
92
+ "type": "string"
93
+ },
94
+ "template": {
95
+ "type": "string"
96
+ },
97
+ "entriesTemplate": {
98
+ "type": "array",
99
+ "items": {
100
+ "$ref": "entry.json"
101
+ }
102
+ }
103
+ },
104
+ "additionalProperties": false,
105
+ "required": [
106
+ "abbreviation",
107
+ "source",
108
+ "page"
109
+ ]
110
+ }
111
+ ]
112
+ },
113
+ "itemTypeLookup": {
114
+ "anyOf": [
115
+ {
116
+ "type": "object",
117
+ "properties": {
118
+ "abbreviation": {
119
+ "type": "string"
120
+ },
121
+ "source": {
122
+ "type": "string"
123
+ },
124
+ "page": {
125
+ "$ref": "util.json#/$defs/page"
126
+ },
127
+ "name": {
128
+ "type": "string"
129
+ },
130
+ "entries": {
131
+ "type": "array",
132
+ "items": {
133
+ "$ref": "entry.json"
134
+ }
135
+ }
136
+ },
137
+ "additionalProperties": false,
138
+ "required": [
139
+ "abbreviation",
140
+ "source",
141
+ "page"
142
+ ]
143
+ },
144
+ {
145
+ "type": "object",
146
+ "properties": {
147
+ "abbreviation": {
148
+ "type": "string"
149
+ },
150
+ "source": {
151
+ "type": "string"
152
+ },
153
+ "page": {
154
+ "$ref": "util.json#/$defs/page"
155
+ },
156
+ "name": {
157
+ "type": "string"
158
+ },
159
+ "entriesTemplate": {
160
+ "type": "array",
161
+ "items": {
162
+ "$ref": "entry.json"
163
+ }
164
+ }
165
+ },
166
+ "additionalProperties": false,
167
+ "required": [
168
+ "abbreviation",
169
+ "source",
170
+ "page"
171
+ ]
172
+ }
173
+ ]
174
+ }
175
+ },
176
+ "type": "object",
177
+ "properties": {
178
+ "baseitem": {
179
+ "type": "array",
180
+ "minItems": 1,
181
+ "uniqueItems": true,
182
+ "items": {
183
+ "type": "object",
184
+ "properties": {
185
+ "name": {
186
+ "type": "string"
187
+ },
188
+ "type": {
189
+ "$ref": "items-shared.json#/$defs/itemType"
190
+ },
191
+ "rarity": {
192
+ "$ref": "items-shared.json#/$defs/itemRarity"
193
+ },
194
+ "source": {
195
+ "type": "string"
196
+ },
197
+ "page": {
198
+ "$ref": "util.json#/$defs/page"
199
+ },
200
+ "ac": {
201
+ "type": "integer"
202
+ },
203
+ "age": {
204
+ "$ref": "items-shared.json#/$defs/itemAge"
205
+ },
206
+ "armor": {
207
+ "description": "Flag used when merging generic variants",
208
+ "type": "boolean"
209
+ },
210
+ "axe": {
211
+ "type": "boolean"
212
+ },
213
+ "dmg1": {
214
+ "type": "string"
215
+ },
216
+ "dmg2": {
217
+ "type": "string"
218
+ },
219
+ "dmgType": {
220
+ "$ref": "util.json#/$defs/dataDamageTags"
221
+ },
222
+ "entries": {
223
+ "type": "array",
224
+ "items": {
225
+ "$ref": "entry.json"
226
+ }
227
+ },
228
+ "property": {
229
+ "$ref": "items-shared.json#/$defs/itemProperty"
230
+ },
231
+ "range": {
232
+ "type": "string"
233
+ },
234
+ "reload": {
235
+ "type": "integer"
236
+ },
237
+ "scfType": {
238
+ "$ref": "items-shared.json#/$defs/itemScfType"
239
+ },
240
+ "stealth": {
241
+ "type": "boolean"
242
+ },
243
+ "strength": {
244
+ "type": "string"
245
+ },
246
+ "sword": {
247
+ "type": "boolean"
248
+ },
249
+ "mace": {
250
+ "type": "boolean"
251
+ },
252
+ "spear": {
253
+ "type": "boolean"
254
+ },
255
+ "hammer": {
256
+ "type": "boolean"
257
+ },
258
+ "bow": {
259
+ "type": "boolean"
260
+ },
261
+ "crossbow": {
262
+ "type": "boolean"
263
+ },
264
+ "club": {
265
+ "type": "boolean"
266
+ },
267
+ "dagger": {
268
+ "type": "boolean"
269
+ },
270
+ "net": {
271
+ "type": "boolean"
272
+ },
273
+ "firearm": {
274
+ "type": "boolean"
275
+ },
276
+ "staff": {
277
+ "description": "Adds the italicized \"Staff\" text to the item info line (below the name).",
278
+ "type": "boolean"
279
+ },
280
+ "value": {
281
+ "description": "In copper pieces.",
282
+ "type": "number"
283
+ },
284
+ "valueMult": {
285
+ "type": "number"
286
+ },
287
+ "weapon": {
288
+ "type": "boolean"
289
+ },
290
+ "weaponCategory": {
291
+ "$ref": "items-shared.json#/$defs/itemWeaponCategory"
292
+ },
293
+ "weight": {
294
+ "type": "number"
295
+ },
296
+ "weightMult": {
297
+ "type": "number"
298
+ },
299
+ "quantity": {
300
+ "type": "integer"
301
+ },
302
+ "srd": {
303
+ "$ref": "util.json#/$defs/srd"
304
+ },
305
+ "basicRules": {
306
+ "$ref": "util.json#/$defs/basicRules"
307
+ },
308
+ "otherSources": {
309
+ "$ref": "util.json#/$defs/otherSources"
310
+ },
311
+ "ammoType": {
312
+ "$ref": "items-shared.json#/$defs/itemAmmoType"
313
+ },
314
+ "packContents": {
315
+ "type": "array",
316
+ "items": {
317
+ "oneOf": [
318
+ {
319
+ "type": "string"
320
+ },
321
+ {
322
+ "type": "object",
323
+ "properties": {
324
+ "special": {
325
+ "type": "string"
326
+ },
327
+ "quantity": {
328
+ "type": "integer"
329
+ }
330
+ },
331
+ "additionalProperties": false,
332
+ "required": [
333
+ "special"
334
+ ]
335
+ },
336
+ {
337
+ "type": "object",
338
+ "properties": {
339
+ "item": {
340
+ "type": "string"
341
+ },
342
+ "quantity": {
343
+ "type": "integer"
344
+ }
345
+ },
346
+ "additionalProperties": false,
347
+ "required": [
348
+ "item",
349
+ "quantity"
350
+ ]
351
+ }
352
+ ]
353
+ }
354
+ },
355
+ "lootTables": {
356
+ "type": "array",
357
+ "items": {
358
+ "type": "string"
359
+ }
360
+ },
361
+ "hasFluff": {
362
+ "type": "boolean"
363
+ },
364
+ "hasFluffImages": {
365
+ "type": "boolean"
366
+ }
367
+ },
368
+ "required": [
369
+ "name",
370
+ "type",
371
+ "rarity",
372
+ "source"
373
+ ],
374
+ "additionalProperties": false
375
+ }
376
+ },
377
+ "itemProperty": {
378
+ "$ref": "#/$defs/itemPropertyLookupArray"
379
+ },
380
+ "itemType": {
381
+ "$ref": "#/$defs/itemTypeLookupArray"
382
+ },
383
+ "itemEntry": {
384
+ "type": "array",
385
+ "minItems": 1,
386
+ "items": {
387
+ "type": "object",
388
+ "properties": {
389
+ "name": {
390
+ "type": "string"
391
+ },
392
+ "source": {
393
+ "type": "string"
394
+ },
395
+ "entriesTemplate": {
396
+ "type": "array",
397
+ "items": {
398
+ "$ref": "entry.json"
399
+ }
400
+ }
401
+ }
402
+ }
403
+ },
404
+ "itemTypeAdditionalEntries": {
405
+ "type": "array",
406
+ "minItems": 1,
407
+ "items": {
408
+ "type": "object",
409
+ "properties": {
410
+ "appliesTo": {
411
+ "type": "string"
412
+ },
413
+ "entries": {
414
+ "type": "array",
415
+ "items": {
416
+ "$ref": "entry.json"
417
+ }
418
+ }
419
+ },
420
+ "additionalProperties": false
421
+ }
422
+ }
423
+ },
424
+ "additionalProperties": false
425
+ }
@@ -0,0 +1,259 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "items-shared.json",
4
+ "title": "Shared Item Schema",
5
+ "description": "Shared item definitions to be used in item schemas.",
6
+ "version": "1.0.1",
7
+ "$defs": {
8
+ "_itemModifySpeedEqual": {
9
+ "type": "string",
10
+ "enum": [
11
+ "walk",
12
+ "burrow",
13
+ "climb",
14
+ "fly",
15
+ "swim"
16
+ ]
17
+ },
18
+ "itemModifySpeed": {
19
+ "type": "object",
20
+ "properties": {
21
+ "multiply": {
22
+ "type": "object",
23
+ "properties": {
24
+ "walk": {
25
+ "type": "number"
26
+ },
27
+ "burrow": {
28
+ "type": "number"
29
+ },
30
+ "climb": {
31
+ "type": "number"
32
+ },
33
+ "fly": {
34
+ "type": "number"
35
+ },
36
+ "swim": {
37
+ "type": "number"
38
+ },
39
+ "*": {
40
+ "type": "number"
41
+ }
42
+ },
43
+ "additionalProperties": false
44
+ },
45
+ "static": {
46
+ "type": "object",
47
+ "properties": {
48
+ "walk": {
49
+ "type": "number"
50
+ },
51
+ "burrow": {
52
+ "type": "number"
53
+ },
54
+ "climb": {
55
+ "type": "number"
56
+ },
57
+ "fly": {
58
+ "type": "number"
59
+ },
60
+ "swim": {
61
+ "type": "number"
62
+ },
63
+ "*": {
64
+ "type": "number"
65
+ }
66
+ },
67
+ "additionalProperties": false
68
+ },
69
+ "equal": {
70
+ "type": "object",
71
+ "properties": {
72
+ "walk": {
73
+ "$ref": "#/$defs/_itemModifySpeedEqual"
74
+ },
75
+ "burrow": {
76
+ "$ref": "#/$defs/_itemModifySpeedEqual"
77
+ },
78
+ "climb": {
79
+ "$ref": "#/$defs/_itemModifySpeedEqual"
80
+ },
81
+ "fly": {
82
+ "$ref": "#/$defs/_itemModifySpeedEqual"
83
+ },
84
+ "swim": {
85
+ "$ref": "#/$defs/_itemModifySpeedEqual"
86
+ }
87
+ },
88
+ "additionalProperties": false
89
+ },
90
+ "bonus": {
91
+ "type": "object",
92
+ "properties": {
93
+ "walk": {
94
+ "type": "number"
95
+ },
96
+ "burrow": {
97
+ "type": "number"
98
+ },
99
+ "climb": {
100
+ "type": "number"
101
+ },
102
+ "fly": {
103
+ "type": "number"
104
+ },
105
+ "swim": {
106
+ "type": "number"
107
+ },
108
+ "*": {
109
+ "type": "number"
110
+ }
111
+ },
112
+ "additionalProperties": false
113
+ }
114
+ },
115
+ "additionalProperties": false
116
+ },
117
+ "itemRarity": {
118
+ "anyOf": [
119
+ {
120
+ "$ref": "util.json#/$defs/rarity"
121
+ },
122
+ {
123
+ "type": "string",
124
+ "description": "\"none\" is for mundane items. \"unknown (magic)\" is for miscellaneous magical items. \"unknown\" is for miscellaneous mundane items. \"varies\" is for item groups, or for magic variants, where it has the special functionality of maintaining a base item's rarity when creating specific variants.",
125
+ "enum": [
126
+ "none",
127
+ "unknown",
128
+ "unknown (magic)",
129
+ "varies"
130
+ ]
131
+ }
132
+ ]
133
+ },
134
+ "itemRecharge": {
135
+ "enum": [
136
+ "round",
137
+ "restShort",
138
+ "restLong",
139
+ "dawn",
140
+ "dusk",
141
+ "midnight",
142
+ "special"
143
+ ]
144
+ },
145
+ "itemRechargeAmount": {
146
+ "type": [
147
+ "integer",
148
+ "string"
149
+ ]
150
+ },
151
+ "itemType": {
152
+ "type": "string",
153
+ "$comment": "Dumped from `Object(Parser.ITEM_TYPE_JSON_TO_ABV)`",
154
+ "description": "$: Treasure\n A: Ammunition\n AF: Ammunition (futuristic)\n AIR: Vehicle (air)\n AT: Artisan Tool\n EM: Eldritch Machine\n EXP: Explosive\n FD: Food and Drink\n G: Adventuring Gear\n GS: Gaming Set\n GV: Generic Variant\n HA: Heavy Armor\n INS: Instrument\n LA: Light Armor\n M: Melee Weapon\n MA: Medium Armor\n MNT: Mount\n MR: Master Rune \n OTH: Other\n P: Potion\n R: Ranged Weapon\n RD: Rod\n RG: Ring\n S: Shield\n SC: Scroll\n SCF: Spellcasting Focus\n SHP: Vehicle (water)\n SPC: Vehicle (space)\n T: Tool\n TAH: Tack and Harness\n TG: Trade Good\n VEH: Vehicle (land)\n WD: Wand",
155
+ "enum": [
156
+ "$",
157
+ "A",
158
+ "AF",
159
+ "AIR",
160
+ "AT",
161
+ "EM",
162
+ "EXP",
163
+ "FD",
164
+ "G",
165
+ "GS",
166
+ "GV",
167
+ "HA",
168
+ "INS",
169
+ "LA",
170
+ "M",
171
+ "MA",
172
+ "MNT",
173
+ "MR",
174
+ "OTH",
175
+ "P",
176
+ "R",
177
+ "RD",
178
+ "RG",
179
+ "S",
180
+ "SC",
181
+ "SCF",
182
+ "SHP",
183
+ "SPC",
184
+ "T",
185
+ "TAH",
186
+ "TG",
187
+ "VEH",
188
+ "WD"
189
+ ]
190
+ },
191
+ "itemAge": {
192
+ "type": "string",
193
+ "enum": [
194
+ "futuristic",
195
+ "modern",
196
+ "renaissance"
197
+ ]
198
+ },
199
+ "itemProperty": {
200
+ "type": "array",
201
+ "description": "2H: Two-Handed\n A: Ammunition\n AF: Ammunition (futuristic)\n BF: Burst Fire\n EM: Eldritch Machine\n F: Finesse\n H: Heavy\n L: Light\n LD: Loading\n OTH: Other\n R: Reach\n RLD: Reload\n S: Special\n T: Thrown\n V: Versatile",
202
+ "items": {
203
+ "type": "string",
204
+ "enum": [
205
+ "2H",
206
+ "A",
207
+ "AF",
208
+ "BF",
209
+ "EM",
210
+ "F",
211
+ "H",
212
+ "L",
213
+ "LD",
214
+ "OTH",
215
+ "R",
216
+ "RLD",
217
+ "S",
218
+ "T",
219
+ "V"
220
+ ]
221
+ }
222
+ },
223
+ "itemScfType": {
224
+ "type": "string",
225
+ "enum": [
226
+ "arcane",
227
+ "druid",
228
+ "holy"
229
+ ]
230
+ },
231
+ "itemTier": {
232
+ "type": "string",
233
+ "description": "Item Tier as per XGE p135",
234
+ "enum": [
235
+ "minor",
236
+ "major"
237
+ ]
238
+ },
239
+ "itemWeaponCategory": {
240
+ "type": "string",
241
+ "enum": [
242
+ "simple",
243
+ "martial"
244
+ ]
245
+ },
246
+ "itemAmmoType": {
247
+ "type": "string",
248
+ "enum": [
249
+ "energy cell",
250
+ "modern bullet",
251
+ "blowgun needle|phb",
252
+ "crossbow bolt|phb",
253
+ "arrow|phb",
254
+ "renaissance bullet",
255
+ "sling bullet|phb"
256
+ ]
257
+ }
258
+ }
259
+ }