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,220 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "tables.json",
4
+ "version": "1.1.6",
5
+ "type": "object",
6
+ "$defs": {
7
+ "tableData": {
8
+ "type": "object",
9
+ "properties": {
10
+ "tables": {
11
+ "type": "array",
12
+ "items": {
13
+ "$ref": "#/$defs/tableData"
14
+ }
15
+ },
16
+ "name": {
17
+ "type": "string"
18
+ },
19
+ "source": {
20
+ "$ref": "util.json#/$defs/source"
21
+ },
22
+ "page": {
23
+ "$ref": "util.json#/$defs/page"
24
+ },
25
+ "srd": {
26
+ "$ref": "util.json#/$defs/srd"
27
+ },
28
+ "basicRules": {
29
+ "$ref": "util.json#/$defs/basicRules"
30
+ },
31
+ "data": {
32
+ "description": "A generic object for storing special data for external use-cases. Keys prefixed with \"rd-\" should be added as \"data-\" HTML attributes when rendering to HTML.",
33
+ "type": "object"
34
+ },
35
+ "caption": {
36
+ "type": "string"
37
+ },
38
+ "isStriped": {
39
+ "type": "boolean"
40
+ },
41
+ "isNameGenerator": {
42
+ "type": "boolean",
43
+ "description": "Uses the result rolled to construct a name from multiple columns, such as Prefix, Given, Family, Suffix names etc."
44
+ },
45
+ "style": {
46
+ "type": "string"
47
+ },
48
+ "colLabels": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "colLabelGroups": {
55
+ "type": "array",
56
+ "items": {
57
+ "type": "object",
58
+ "properties": {
59
+ "colLabels": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ }
65
+ },
66
+ "additionalProperties": false
67
+ }
68
+ },
69
+ "colStyles": {
70
+ "type": "array",
71
+ "items": {
72
+ "type": "string"
73
+ }
74
+ },
75
+ "rowLabels": {
76
+ "type": "array",
77
+ "items": {
78
+ "type": "string"
79
+ }
80
+ },
81
+ "rowStyles": {
82
+ "type": "array",
83
+ "items": {
84
+ "type": "string"
85
+ }
86
+ },
87
+ "rows": {
88
+ "type": "array",
89
+ "items": {
90
+ "anyOf": [
91
+ {
92
+ "type": "array",
93
+ "items": {
94
+ "$ref": "entry.json"
95
+ }
96
+ },
97
+ {
98
+ "$ref": "entry.json#/$defs/entryTableRow"
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ "footnotes": {
104
+ "type": "array",
105
+ "items": {
106
+ "$ref": "entry.json"
107
+ }
108
+ },
109
+ "type": {
110
+ "type": "string",
111
+ "default": "table",
112
+ "enum": [
113
+ "table",
114
+ "tableGroup"
115
+ ]
116
+ },
117
+ "legacy": {
118
+ "$ref": "util.json#/$defs/legacy"
119
+ },
120
+ "otherSources": {
121
+ "$ref": "util.json#/$defs/otherSources"
122
+ },
123
+ "chapter": {
124
+ "type": "object",
125
+ "properties": {
126
+ "name": {
127
+ "type": "string"
128
+ },
129
+ "ordinal": {
130
+ "type": "object",
131
+ "properties": {
132
+ "type": {
133
+ "type": "string",
134
+ "enum": [
135
+ "chapter",
136
+ "appendix",
137
+ "part",
138
+ "episode"
139
+ ]
140
+ },
141
+ "identifier": {
142
+ "type": [
143
+ "integer",
144
+ "string"
145
+ ]
146
+ }
147
+ },
148
+ "additionalProperties": false,
149
+ "required": [
150
+ "type",
151
+ "identifier"
152
+ ]
153
+ },
154
+ "index": {
155
+ "type": "integer"
156
+ }
157
+ }
158
+ }
159
+ },
160
+ "dependencies": {
161
+ "colLabels": {
162
+ "not": {
163
+ "required": [
164
+ "colLabelGroups"
165
+ ]
166
+ }
167
+ },
168
+ "colLabelGroups": {
169
+ "not": {
170
+ "required": [
171
+ "colLabels"
172
+ ]
173
+ }
174
+ }
175
+ },
176
+ "additionalProperties": false,
177
+ "if": {
178
+ "properties": {
179
+ "type": {
180
+ "const": "tableGroup"
181
+ }
182
+ },
183
+ "required": [
184
+ "type"
185
+ ]
186
+ },
187
+ "then": {
188
+ "required": [
189
+ "name",
190
+ "source",
191
+ "tables"
192
+ ]
193
+ },
194
+ "else": {
195
+ "required": [
196
+ "name",
197
+ "source",
198
+ "rows"
199
+ ]
200
+ }
201
+ }
202
+ },
203
+ "properties": {
204
+ "table": {
205
+ "type": "array",
206
+ "minItems": 1,
207
+ "uniqueItems": true,
208
+ "items": {
209
+ "$ref": "#/$defs/tableData"
210
+ }
211
+ },
212
+ "_meta": {
213
+ "$ref": "util.json#/$defs/metaBlock"
214
+ }
215
+ },
216
+ "required": [
217
+ "table"
218
+ ],
219
+ "additionalProperties": false
220
+ }
@@ -0,0 +1,236 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "trapshazards.json",
4
+ "version": "1.3.1",
5
+ "type": "object",
6
+ "$defs": {
7
+ "trap": {
8
+ "oneOf": [
9
+ {
10
+ "description": "Older format, used in DMG",
11
+ "type": "object",
12
+ "properties": {
13
+ "name": {
14
+ "type": "string"
15
+ },
16
+ "trapHazType": {
17
+ "type": "string",
18
+ "description": "MAG: Magical Trap\n MECH: Mechanical Trap",
19
+ "enum": [
20
+ "MECH",
21
+ "MAG"
22
+ ]
23
+ },
24
+ "source": {
25
+ "$ref": "util.json#/$defs/source"
26
+ },
27
+ "page": {
28
+ "$ref": "util.json#/$defs/page"
29
+ },
30
+ "entries": {
31
+ "type": "array",
32
+ "items": {
33
+ "$ref": "entry.json"
34
+ }
35
+ },
36
+ "srd": {
37
+ "$ref": "util.json#/$defs/srd"
38
+ },
39
+ "legacy": {
40
+ "$ref": "util.json#/$defs/legacy"
41
+ }
42
+ },
43
+ "additionalProperties": false,
44
+ "required": [
45
+ "name",
46
+ "trapHazType",
47
+ "source",
48
+ "entries"
49
+ ]
50
+ },
51
+ {
52
+ "description": "XGE \"Traps Revisited\" Simple/Complex traps",
53
+ "type": "object",
54
+ "properties": {
55
+ "name": {
56
+ "type": "string"
57
+ },
58
+ "trapHazType": {
59
+ "type": "string",
60
+ "enum": [
61
+ "SMPL",
62
+ "CMPX"
63
+ ]
64
+ },
65
+ "source": {
66
+ "$ref": "util.json#/$defs/source"
67
+ },
68
+ "page": {
69
+ "$ref": "util.json#/$defs/page"
70
+ },
71
+ "entries": {
72
+ "type": "array",
73
+ "items": {
74
+ "$ref": "entry.json"
75
+ }
76
+ },
77
+ "tier": {
78
+ "type": "integer",
79
+ "minimum": 1,
80
+ "maximum": 4
81
+ },
82
+ "level": {
83
+ "description": "Alternative to \"tier\" which allows for non-standard level ranges.",
84
+ "type": "object",
85
+ "properties": {
86
+ "min": {
87
+ "type": "integer"
88
+ },
89
+ "max": {
90
+ "type": "integer"
91
+ }
92
+ }
93
+ },
94
+ "threat": {
95
+ "type": "string",
96
+ "enum": [
97
+ "moderate",
98
+ "dangerous",
99
+ "deadly"
100
+ ]
101
+ },
102
+ "trigger": {
103
+ "type": "array",
104
+ "items": {
105
+ "$ref": "entry.json"
106
+ }
107
+ },
108
+ "initiative": {
109
+ "oneOf": [
110
+ {
111
+ "type": "integer",
112
+ "minimum": 1,
113
+ "maximum": 3
114
+ }
115
+ ]
116
+ },
117
+ "initiativeNote": {
118
+ "$ref": "entry.json"
119
+ },
120
+ "effect": {
121
+ "type": "array",
122
+ "items": {
123
+ "$ref": "entry.json"
124
+ }
125
+ },
126
+ "eActive": {
127
+ "type": "array",
128
+ "items": {
129
+ "$ref": "entry.json"
130
+ }
131
+ },
132
+ "eDynamic": {
133
+ "type": "array",
134
+ "items": {
135
+ "$ref": "entry.json"
136
+ }
137
+ },
138
+ "eConstant": {
139
+ "type": "array",
140
+ "items": {
141
+ "$ref": "entry.json"
142
+ }
143
+ },
144
+ "countermeasures": {
145
+ "type": "array",
146
+ "items": {
147
+ "$ref": "entry.json"
148
+ }
149
+ },
150
+ "srd": {
151
+ "$ref": "util.json#/$defs/srd"
152
+ },
153
+ "legacy": {
154
+ "$ref": "util.json#/$defs/legacy"
155
+ }
156
+ },
157
+ "additionalProperties": false,
158
+ "required": [
159
+ "name",
160
+ "trapHazType",
161
+ "source",
162
+ "entries",
163
+ "threat",
164
+ "trigger",
165
+ "countermeasures"
166
+ ]
167
+ }
168
+ ]
169
+ },
170
+ "hazard": {
171
+ "type": "object",
172
+ "properties": {
173
+ "name": {
174
+ "type": "string"
175
+ },
176
+ "trapHazType": {
177
+ "type": "string",
178
+ "description": "ENV: Environmental Hazard\n EST: Eldritch Storm\n GEN: Generic\n WTH: Weather\n WLD: Wilderness Hazard",
179
+ "enum": [
180
+ "ENV",
181
+ "EST",
182
+ "GEN",
183
+ "WTH",
184
+ "WLD"
185
+ ]
186
+ },
187
+ "source": {
188
+ "$ref": "util.json#/$defs/source"
189
+ },
190
+ "page": {
191
+ "$ref": "util.json#/$defs/page"
192
+ },
193
+ "otherSources": {
194
+ "$ref": "util.json#/$defs/otherSources"
195
+ },
196
+ "entries": {
197
+ "type": "array",
198
+ "items": {
199
+ "$ref": "entry.json"
200
+ }
201
+ },
202
+ "srd": {
203
+ "$ref": "util.json#/$defs/srd"
204
+ },
205
+ "legacy": {
206
+ "$ref": "util.json#/$defs/legacy"
207
+ }
208
+ },
209
+ "additionalProperties": false,
210
+ "required": [
211
+ "name",
212
+ "source",
213
+ "entries"
214
+ ]
215
+ }
216
+ },
217
+ "properties": {
218
+ "trap": {
219
+ "type": "array",
220
+ "minItems": 1,
221
+ "uniqueItems": true,
222
+ "items": {
223
+ "$ref": "#/$defs/trap"
224
+ }
225
+ },
226
+ "hazard": {
227
+ "type": "array",
228
+ "minItems": 1,
229
+ "uniqueItems": true,
230
+ "items": {
231
+ "$ref": "#/$defs/hazard"
232
+ }
233
+ }
234
+ },
235
+ "additionalProperties": false
236
+ }