5etools-utils 0.9.41 → 0.9.43

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 (55) hide show
  1. package/package.json +1 -1
  2. package/schema/brew/books.json +2 -1
  3. package/schema/brew/fluff-conditionsdiseases.json +11 -33
  4. package/schema/brew/fluff-languages.json +5 -32
  5. package/schema/brew/fluff-rewards.json +5 -32
  6. package/schema/brew/fluff-trapshazards.json +18 -0
  7. package/schema/brew/fluff-vehicles.json +5 -54
  8. package/schema/brew/homebrew.json +7 -1
  9. package/schema/brew/trapshazards.json +63 -20
  10. package/schema/brew/util.json +1 -1
  11. package/schema/brew-fast/books.json +2 -1
  12. package/schema/brew-fast/fluff-conditionsdiseases.json +11 -33
  13. package/schema/brew-fast/fluff-languages.json +5 -32
  14. package/schema/brew-fast/fluff-rewards.json +5 -32
  15. package/schema/brew-fast/fluff-trapshazards.json +18 -0
  16. package/schema/brew-fast/fluff-vehicles.json +5 -54
  17. package/schema/brew-fast/homebrew.json +7 -1
  18. package/schema/brew-fast/trapshazards.json +63 -20
  19. package/schema/brew-fast/util.json +1 -1
  20. package/schema/site/books.json +2 -1
  21. package/schema/site/fluff-conditionsdiseases.json +11 -33
  22. package/schema/site/fluff-languages.json +5 -32
  23. package/schema/site/fluff-rewards.json +5 -32
  24. package/schema/site/fluff-trapshazards.json +18 -0
  25. package/schema/site/fluff-vehicles.json +5 -54
  26. package/schema/site/homebrew.json +7 -1
  27. package/schema/site/trapshazards.json +57 -20
  28. package/schema/site/util.json +11 -2
  29. package/schema/site-fast/books.json +2 -1
  30. package/schema/site-fast/fluff-conditionsdiseases.json +11 -33
  31. package/schema/site-fast/fluff-languages.json +5 -32
  32. package/schema/site-fast/fluff-rewards.json +5 -32
  33. package/schema/site-fast/fluff-trapshazards.json +18 -0
  34. package/schema/site-fast/fluff-vehicles.json +5 -54
  35. package/schema/site-fast/homebrew.json +7 -1
  36. package/schema/site-fast/trapshazards.json +57 -20
  37. package/schema/site-fast/util.json +11 -2
  38. package/schema/ua/books.json +2 -1
  39. package/schema/ua/fluff-conditionsdiseases.json +11 -33
  40. package/schema/ua/fluff-languages.json +5 -32
  41. package/schema/ua/fluff-rewards.json +5 -32
  42. package/schema/ua/fluff-trapshazards.json +18 -0
  43. package/schema/ua/fluff-vehicles.json +5 -54
  44. package/schema/ua/homebrew.json +7 -1
  45. package/schema/ua/trapshazards.json +57 -20
  46. package/schema/ua/util.json +11 -2
  47. package/schema/ua-fast/books.json +2 -1
  48. package/schema/ua-fast/fluff-conditionsdiseases.json +11 -33
  49. package/schema/ua-fast/fluff-languages.json +5 -32
  50. package/schema/ua-fast/fluff-rewards.json +5 -32
  51. package/schema/ua-fast/fluff-trapshazards.json +18 -0
  52. package/schema/ua-fast/fluff-vehicles.json +5 -54
  53. package/schema/ua-fast/homebrew.json +7 -1
  54. package/schema/ua-fast/trapshazards.json +57 -20
  55. package/schema/ua-fast/util.json +11 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.9.41",
3
+ "version": "0.9.43",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.10",
4
+ "version": "1.2.11",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -39,6 +39,7 @@
39
39
  "prerelease",
40
40
  "homebrew",
41
41
  "screen",
42
+ "recipe",
42
43
  "other"
43
44
  ]
44
45
  },
@@ -1,42 +1,20 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-conditionsdiseases.json",
4
- "version": "1.2.2",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
7
10
  "conditionFluff": {
8
- "type": "array",
9
- "minItems": 1,
10
- "uniqueItems": true,
11
- "items": {
12
- "type": "object",
13
- "properties": {
14
- "name": {
15
- "type": "string"
16
- },
17
- "source": {
18
- "$ref": "util.json#/$defs/source"
19
- },
20
- "images": {
21
- "type": "array",
22
- "minItems": 1,
23
- "items": {
24
- "$ref": "entry.json#/$defs/entryImage"
25
- }
26
- },
27
- "entries": {
28
- "type": "array",
29
- "items": {
30
- "$ref": "entry.json"
31
- }
32
- }
33
- },
34
- "required": [
35
- "name",
36
- "source"
37
- ],
38
- "additionalProperties": false
39
- }
11
+ "$ref": "util.json#/$defs/genericFluffArray"
12
+ },
13
+ "diseaseFluff": {
14
+ "$ref": "util.json#/$defs/genericFluffArray"
15
+ },
16
+ "statusFluff": {
17
+ "$ref": "util.json#/$defs/genericFluffArray"
40
18
  }
41
19
  },
42
20
  "additionalProperties": false
@@ -1,41 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-languages.json",
4
- "version": "1.1.2",
4
+ "version": "1.2.0",
5
5
  "type": "object",
6
6
  "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
7
10
  "languageFluff": {
8
- "type": "array",
9
- "uniqueItems": true,
10
- "minItems": 1,
11
- "items": {
12
- "type": "object",
13
- "properties": {
14
- "name": {
15
- "type": "string"
16
- },
17
- "source": {
18
- "$ref": "util.json#/$defs/source"
19
- },
20
- "images": {
21
- "type": "array",
22
- "items": {
23
- "$ref": "entry.json#/$defs/entryImage"
24
- }
25
- },
26
- "entries": {
27
- "type": "array",
28
- "items": {
29
- "$ref": "entry.json"
30
- }
31
- }
32
- },
33
- "required": [
34
- "name",
35
- "source"
36
- ],
37
- "additionalProperties": false
38
- }
11
+ "$ref": "util.json#/$defs/genericFluffArray"
39
12
  }
40
13
  },
41
14
  "additionalProperties": false
@@ -1,41 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-rewards.json",
4
- "version": "1.0.0",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
7
10
  "rewardFluff": {
8
- "type": "array",
9
- "minItems": 1,
10
- "uniqueItems": true,
11
- "items": {
12
- "type": "object",
13
- "properties": {
14
- "name": {
15
- "type": "string"
16
- },
17
- "source": {
18
- "$ref": "util.json#/$defs/source"
19
- },
20
- "images": {
21
- "type": "array",
22
- "items": {
23
- "$ref": "entry.json#/$defs/entryImage"
24
- }
25
- },
26
- "entries": {
27
- "type": "array",
28
- "items": {
29
- "$ref": "entry.json"
30
- }
31
- }
32
- },
33
- "required": [
34
- "name",
35
- "source"
36
- ],
37
- "additionalProperties": false
38
- }
11
+ "$ref": "util.json#/$defs/genericFluffArray"
39
12
  }
40
13
  },
41
14
  "additionalProperties": false
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "fluff-trapshazards.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
10
+ "trapFluff": {
11
+ "$ref": "util.json#/$defs/genericFluffArray"
12
+ },
13
+ "hazardFluff": {
14
+ "$ref": "util.json#/$defs/genericFluffArray"
15
+ }
16
+ },
17
+ "additionalProperties": false
18
+ }
@@ -1,63 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-vehicles.json",
4
- "version": "1.3.2",
4
+ "version": "1.4.0",
5
5
  "type": "object",
6
6
  "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
7
10
  "vehicleFluff": {
8
- "type": "array",
9
- "minItems": 1,
10
- "uniqueItems": true,
11
- "items": {
12
- "type": "object",
13
- "properties": {
14
- "name": {
15
- "type": "string"
16
- },
17
- "source": {
18
- "$ref": "util.json#/$defs/source"
19
- },
20
- "images": {
21
- "type": "array",
22
- "items": {
23
- "$ref": "entry.json#/$defs/entryImage"
24
- }
25
- },
26
- "entries": {
27
- "type": "array",
28
- "items": {
29
- "$ref": "entry.json"
30
- }
31
- },
32
- "_copy": {
33
- "type": "object",
34
- "properties": {
35
- "name": {
36
- "type": "string"
37
- },
38
- "source": {
39
- "$ref": "util.json#/$defs/source"
40
- }
41
- }
42
- },
43
- "_appendCopy": {
44
- "type": "object",
45
- "properties": {
46
- "name": {
47
- "type": "string"
48
- },
49
- "source": {
50
- "$ref": "util.json#/$defs/source"
51
- }
52
- }
53
- }
54
- },
55
- "required": [
56
- "name",
57
- "source"
58
- ],
59
- "additionalProperties": false
60
- }
11
+ "$ref": "util.json#/$defs/genericFluffArray"
61
12
  }
62
13
  }
63
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.16",
3
+ "version": "1.10.17",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -614,9 +614,15 @@
614
614
  "trap": {
615
615
  "$ref": "trapshazards.json#/properties/trap"
616
616
  },
617
+ "trapFluff": {
618
+ "$ref": "fluff-trapshazards.json#/properties/trapFluff"
619
+ },
617
620
  "hazard": {
618
621
  "$ref": "trapshazards.json#/properties/hazard"
619
622
  },
623
+ "hazardFluff": {
624
+ "$ref": "fluff-trapshazards.json#/properties/hazardFluff"
625
+ },
620
626
  "variantrule": {
621
627
  "$ref": "variantrules.json#/properties/variantrule"
622
628
  },
@@ -1,9 +1,35 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "trapshazards.json",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "type": "object",
6
6
  "$defs": {
7
+ "_trapTier": {
8
+ "type": "integer",
9
+ "minimum": 1,
10
+ "maximum": 4
11
+ },
12
+ "_trapLevel": {
13
+ "description": "Alternative to \"tier\" which allows for non-standard level ranges.",
14
+ "type": "object",
15
+ "properties": {
16
+ "min": {
17
+ "type": "integer"
18
+ },
19
+ "max": {
20
+ "type": "integer"
21
+ }
22
+ }
23
+ },
24
+ "_trapThreat": {
25
+ "type": "string",
26
+ "enum": [
27
+ "setback",
28
+ "moderate",
29
+ "dangerous",
30
+ "deadly"
31
+ ]
32
+ },
7
33
  "trap": {
8
34
  "oneOf": [
9
35
  {
@@ -33,12 +59,30 @@
33
59
  "$ref": "entry.json"
34
60
  }
35
61
  },
62
+ "tier": {
63
+ "$ref": "#/$defs/_trapTier"
64
+ },
65
+ "level": {
66
+ "$ref": "#/$defs/_trapLevel"
67
+ },
68
+ "threat": {
69
+ "$ref": "#/$defs/_trapThreat"
70
+ },
36
71
  "srd": {
37
72
  "$ref": "util.json#/$defs/srd"
38
73
  },
39
74
  "legacy": {
40
75
  "$ref": "util.json#/$defs/legacy"
41
76
  },
77
+ "hasFluff": {
78
+ "type": "boolean"
79
+ },
80
+ "hasFluffImages": {
81
+ "type": "boolean"
82
+ },
83
+ "fluff": {
84
+ "$ref": "util.json#/$defs/fluffObject"
85
+ },
42
86
  "foundryImg": {
43
87
  "$ref": "util.json#/$defs/foundryImg"
44
88
  }
@@ -78,29 +122,13 @@
78
122
  }
79
123
  },
80
124
  "tier": {
81
- "type": "integer",
82
- "minimum": 1,
83
- "maximum": 4
125
+ "$ref": "#/$defs/_trapTier"
84
126
  },
85
127
  "level": {
86
- "description": "Alternative to \"tier\" which allows for non-standard level ranges.",
87
- "type": "object",
88
- "properties": {
89
- "min": {
90
- "type": "integer"
91
- },
92
- "max": {
93
- "type": "integer"
94
- }
95
- }
128
+ "$ref": "#/$defs/_trapLevel"
96
129
  },
97
130
  "threat": {
98
- "type": "string",
99
- "enum": [
100
- "moderate",
101
- "dangerous",
102
- "deadly"
103
- ]
131
+ "$ref": "#/$defs/_trapThreat"
104
132
  },
105
133
  "trigger": {
106
134
  "type": "array",
@@ -160,6 +188,15 @@
160
188
  "legacy": {
161
189
  "$ref": "util.json#/$defs/legacy"
162
190
  },
191
+ "hasFluff": {
192
+ "type": "boolean"
193
+ },
194
+ "hasFluffImages": {
195
+ "type": "boolean"
196
+ },
197
+ "fluff": {
198
+ "$ref": "util.json#/$defs/fluffObject"
199
+ },
163
200
  "foundryImg": {
164
201
  "$ref": "util.json#/$defs/foundryImg"
165
202
  }
@@ -215,6 +252,12 @@
215
252
  "legacy": {
216
253
  "$ref": "util.json#/$defs/legacy"
217
254
  },
255
+ "hasFluff": {
256
+ "type": "boolean"
257
+ },
258
+ "hasFluffImages": {
259
+ "type": "boolean"
260
+ },
218
261
  "foundrySystem": {
219
262
  "$ref": "util.json#/$defs/foundrySystemObject"
220
263
  },
@@ -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.14.3",
6
+ "version": "1.14.4",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.10",
4
+ "version": "1.2.11",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -39,6 +39,7 @@
39
39
  "prerelease",
40
40
  "homebrew",
41
41
  "screen",
42
+ "recipe",
42
43
  "other"
43
44
  ]
44
45
  },
@@ -1,42 +1,20 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-conditionsdiseases.json",
4
- "version": "1.2.2",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
7
10
  "conditionFluff": {
8
- "type": "array",
9
- "minItems": 1,
10
- "uniqueItems": true,
11
- "items": {
12
- "type": "object",
13
- "properties": {
14
- "name": {
15
- "type": "string"
16
- },
17
- "source": {
18
- "$ref": "util.json#/$defs/source"
19
- },
20
- "images": {
21
- "type": "array",
22
- "minItems": 1,
23
- "items": {
24
- "$ref": "entry.json#/$defs/entryImage"
25
- }
26
- },
27
- "entries": {
28
- "type": "array",
29
- "items": {
30
- "$ref": "entry.json"
31
- }
32
- }
33
- },
34
- "required": [
35
- "name",
36
- "source"
37
- ],
38
- "additionalProperties": false
39
- }
11
+ "$ref": "util.json#/$defs/genericFluffArray"
12
+ },
13
+ "diseaseFluff": {
14
+ "$ref": "util.json#/$defs/genericFluffArray"
15
+ },
16
+ "statusFluff": {
17
+ "$ref": "util.json#/$defs/genericFluffArray"
40
18
  }
41
19
  },
42
20
  "additionalProperties": false
@@ -1,41 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-languages.json",
4
- "version": "1.1.2",
4
+ "version": "1.2.0",
5
5
  "type": "object",
6
6
  "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
7
10
  "languageFluff": {
8
- "type": "array",
9
- "uniqueItems": true,
10
- "minItems": 1,
11
- "items": {
12
- "type": "object",
13
- "properties": {
14
- "name": {
15
- "type": "string"
16
- },
17
- "source": {
18
- "$ref": "util.json#/$defs/source"
19
- },
20
- "images": {
21
- "type": "array",
22
- "items": {
23
- "$ref": "entry.json#/$defs/entryImage"
24
- }
25
- },
26
- "entries": {
27
- "type": "array",
28
- "items": {
29
- "$ref": "entry.json"
30
- }
31
- }
32
- },
33
- "required": [
34
- "name",
35
- "source"
36
- ],
37
- "additionalProperties": false
38
- }
11
+ "$ref": "util.json#/$defs/genericFluffArray"
39
12
  }
40
13
  },
41
14
  "additionalProperties": false
@@ -1,41 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-rewards.json",
4
- "version": "1.0.0",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
7
10
  "rewardFluff": {
8
- "type": "array",
9
- "minItems": 1,
10
- "uniqueItems": true,
11
- "items": {
12
- "type": "object",
13
- "properties": {
14
- "name": {
15
- "type": "string"
16
- },
17
- "source": {
18
- "$ref": "util.json#/$defs/source"
19
- },
20
- "images": {
21
- "type": "array",
22
- "items": {
23
- "$ref": "entry.json#/$defs/entryImage"
24
- }
25
- },
26
- "entries": {
27
- "type": "array",
28
- "items": {
29
- "$ref": "entry.json"
30
- }
31
- }
32
- },
33
- "required": [
34
- "name",
35
- "source"
36
- ],
37
- "additionalProperties": false
38
- }
11
+ "$ref": "util.json#/$defs/genericFluffArray"
39
12
  }
40
13
  },
41
14
  "additionalProperties": false
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "fluff-trapshazards.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
10
+ "trapFluff": {
11
+ "$ref": "util.json#/$defs/genericFluffArray"
12
+ },
13
+ "hazardFluff": {
14
+ "$ref": "util.json#/$defs/genericFluffArray"
15
+ }
16
+ },
17
+ "additionalProperties": false
18
+ }
@@ -1,63 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-vehicles.json",
4
- "version": "1.3.2",
4
+ "version": "1.4.0",
5
5
  "type": "object",
6
6
  "properties": {
7
+ "_meta": {
8
+ "$ref": "util.json#/$defs/metaBlock"
9
+ },
7
10
  "vehicleFluff": {
8
- "type": "array",
9
- "minItems": 1,
10
- "uniqueItems": true,
11
- "items": {
12
- "type": "object",
13
- "properties": {
14
- "name": {
15
- "type": "string"
16
- },
17
- "source": {
18
- "$ref": "util.json#/$defs/source"
19
- },
20
- "images": {
21
- "type": "array",
22
- "items": {
23
- "$ref": "entry.json#/$defs/entryImage"
24
- }
25
- },
26
- "entries": {
27
- "type": "array",
28
- "items": {
29
- "$ref": "entry.json"
30
- }
31
- },
32
- "_copy": {
33
- "type": "object",
34
- "properties": {
35
- "name": {
36
- "type": "string"
37
- },
38
- "source": {
39
- "$ref": "util.json#/$defs/source"
40
- }
41
- }
42
- },
43
- "_appendCopy": {
44
- "type": "object",
45
- "properties": {
46
- "name": {
47
- "type": "string"
48
- },
49
- "source": {
50
- "$ref": "util.json#/$defs/source"
51
- }
52
- }
53
- }
54
- },
55
- "required": [
56
- "name",
57
- "source"
58
- ],
59
- "additionalProperties": false
60
- }
11
+ "$ref": "util.json#/$defs/genericFluffArray"
61
12
  }
62
13
  }
63
14
  }