5etools-utils 0.9.4 → 0.9.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.9.4",
3
+ "version": "0.9.6",
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.18",
3
+ "version": "1.21.19",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1229,6 +1229,9 @@
1229
1229
  "items": {
1230
1230
  "type": "object",
1231
1231
  "properties": {
1232
+ "name": {
1233
+ "type": "string"
1234
+ },
1232
1235
  "value": {
1233
1236
  "type": "integer"
1234
1237
  },
@@ -2407,6 +2410,9 @@
2407
2410
  "items": {
2408
2411
  "type": "object",
2409
2412
  "properties": {
2413
+ "name": {
2414
+ "type": "string"
2415
+ },
2410
2416
  "value": {
2411
2417
  "type": "integer"
2412
2418
  },
@@ -3599,6 +3605,9 @@
3599
3605
  "items": {
3600
3606
  "type": "object",
3601
3607
  "properties": {
3608
+ "name": {
3609
+ "type": "string"
3610
+ },
3602
3611
  "value": {
3603
3612
  "type": "integer"
3604
3613
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.2",
4
+ "version": "1.8.3",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -104,6 +104,9 @@
104
104
  "bonusWeaponAttack": {
105
105
  "type": "string"
106
106
  },
107
+ "bonusWeaponDamage": {
108
+ "type": "string"
109
+ },
107
110
  "bonusSpellAttack": {
108
111
  "type": "string"
109
112
  },
@@ -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.13.30",
6
+ "version": "1.13.32",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1965,6 +1965,10 @@
1965
1965
  "description": "Renders with the updated text found in UA2020: Feats",
1966
1966
  "const": true
1967
1967
  },
1968
+ "spellcastingFeature": {
1969
+ "description": "A more restrictive spellcasting variant; specifically \"Spellcasting Feature\"",
1970
+ "const": true
1971
+ },
1968
1972
  "psionics": {
1969
1973
  "const": true
1970
1974
  },
@@ -1982,6 +1986,15 @@
1982
1986
  ]
1983
1987
  },
1984
1988
  "weapon": {
1989
+ "description": "Any <simple|martial> weapon.",
1990
+ "type": "string",
1991
+ "enum": [
1992
+ "simple",
1993
+ "martial"
1994
+ ]
1995
+ },
1996
+ "weaponGroup": {
1997
+ "description": "All <simple|martial> weapons.",
1985
1998
  "type": "string",
1986
1999
  "enum": [
1987
2000
  "simple",
@@ -2431,6 +2444,9 @@
2431
2444
  },
2432
2445
  "note": {
2433
2446
  "type": "string"
2447
+ },
2448
+ "cond": {
2449
+ "const": true
2434
2450
  }
2435
2451
  },
2436
2452
  "additionalProperties": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.18",
3
+ "version": "1.21.19",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1229,6 +1229,9 @@
1229
1229
  "items": {
1230
1230
  "type": "object",
1231
1231
  "properties": {
1232
+ "name": {
1233
+ "type": "string"
1234
+ },
1232
1235
  "value": {
1233
1236
  "type": "integer"
1234
1237
  },
@@ -2407,6 +2410,9 @@
2407
2410
  "items": {
2408
2411
  "type": "object",
2409
2412
  "properties": {
2413
+ "name": {
2414
+ "type": "string"
2415
+ },
2410
2416
  "value": {
2411
2417
  "type": "integer"
2412
2418
  },
@@ -3599,6 +3605,9 @@
3599
3605
  "items": {
3600
3606
  "type": "object",
3601
3607
  "properties": {
3608
+ "name": {
3609
+ "type": "string"
3610
+ },
3602
3611
  "value": {
3603
3612
  "type": "integer"
3604
3613
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.2",
4
+ "version": "1.8.3",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -104,6 +104,9 @@
104
104
  "bonusWeaponAttack": {
105
105
  "type": "string"
106
106
  },
107
+ "bonusWeaponDamage": {
108
+ "type": "string"
109
+ },
107
110
  "bonusSpellAttack": {
108
111
  "type": "string"
109
112
  },
@@ -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.13.30",
6
+ "version": "1.13.32",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1965,6 +1965,10 @@
1965
1965
  "description": "Renders with the updated text found in UA2020: Feats",
1966
1966
  "const": true
1967
1967
  },
1968
+ "spellcastingFeature": {
1969
+ "description": "A more restrictive spellcasting variant; specifically \"Spellcasting Feature\"",
1970
+ "const": true
1971
+ },
1968
1972
  "psionics": {
1969
1973
  "const": true
1970
1974
  },
@@ -1982,6 +1986,15 @@
1982
1986
  ]
1983
1987
  },
1984
1988
  "weapon": {
1989
+ "description": "Any <simple|martial> weapon.",
1990
+ "type": "string",
1991
+ "enum": [
1992
+ "simple",
1993
+ "martial"
1994
+ ]
1995
+ },
1996
+ "weaponGroup": {
1997
+ "description": "All <simple|martial> weapons.",
1985
1998
  "type": "string",
1986
1999
  "enum": [
1987
2000
  "simple",
@@ -2431,6 +2444,9 @@
2431
2444
  },
2432
2445
  "note": {
2433
2446
  "type": "string"
2447
+ },
2448
+ "cond": {
2449
+ "const": true
2434
2450
  }
2435
2451
  },
2436
2452
  "additionalProperties": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.18",
3
+ "version": "1.21.19",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.2",
4
+ "version": "1.8.3",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -102,6 +102,9 @@
102
102
  "bonusWeaponAttack": {
103
103
  "type": "string"
104
104
  },
105
+ "bonusWeaponDamage": {
106
+ "type": "string"
107
+ },
105
108
  "bonusSpellAttack": {
106
109
  "type": "string"
107
110
  },
@@ -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.13.30",
6
+ "version": "1.13.32",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1947,6 +1947,10 @@
1947
1947
  "description": "Renders with the updated text found in UA2020: Feats",
1948
1948
  "const": true
1949
1949
  },
1950
+ "spellcastingFeature": {
1951
+ "description": "A more restrictive spellcasting variant; specifically \"Spellcasting Feature\"",
1952
+ "const": true
1953
+ },
1950
1954
  "psionics": {
1951
1955
  "const": true
1952
1956
  },
@@ -1964,6 +1968,15 @@
1964
1968
  ]
1965
1969
  },
1966
1970
  "weapon": {
1971
+ "description": "Any <simple|martial> weapon.",
1972
+ "type": "string",
1973
+ "enum": [
1974
+ "simple",
1975
+ "martial"
1976
+ ]
1977
+ },
1978
+ "weaponGroup": {
1979
+ "description": "All <simple|martial> weapons.",
1967
1980
  "type": "string",
1968
1981
  "enum": [
1969
1982
  "simple",
@@ -2410,6 +2423,9 @@
2410
2423
  },
2411
2424
  "note": {
2412
2425
  "type": "string"
2426
+ },
2427
+ "cond": {
2428
+ "const": true
2413
2429
  }
2414
2430
  },
2415
2431
  "additionalProperties": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.18",
3
+ "version": "1.21.19",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.2",
4
+ "version": "1.8.3",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -102,6 +102,9 @@
102
102
  "bonusWeaponAttack": {
103
103
  "type": "string"
104
104
  },
105
+ "bonusWeaponDamage": {
106
+ "type": "string"
107
+ },
105
108
  "bonusSpellAttack": {
106
109
  "type": "string"
107
110
  },
@@ -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.13.30",
6
+ "version": "1.13.32",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1947,6 +1947,10 @@
1947
1947
  "description": "Renders with the updated text found in UA2020: Feats",
1948
1948
  "const": true
1949
1949
  },
1950
+ "spellcastingFeature": {
1951
+ "description": "A more restrictive spellcasting variant; specifically \"Spellcasting Feature\"",
1952
+ "const": true
1953
+ },
1950
1954
  "psionics": {
1951
1955
  "const": true
1952
1956
  },
@@ -1964,6 +1968,15 @@
1964
1968
  ]
1965
1969
  },
1966
1970
  "weapon": {
1971
+ "description": "Any <simple|martial> weapon.",
1972
+ "type": "string",
1973
+ "enum": [
1974
+ "simple",
1975
+ "martial"
1976
+ ]
1977
+ },
1978
+ "weaponGroup": {
1979
+ "description": "All <simple|martial> weapons.",
1967
1980
  "type": "string",
1968
1981
  "enum": [
1969
1982
  "simple",
@@ -2410,6 +2423,9 @@
2410
2423
  },
2411
2424
  "note": {
2412
2425
  "type": "string"
2426
+ },
2427
+ "cond": {
2428
+ "const": true
2413
2429
  }
2414
2430
  },
2415
2431
  "additionalProperties": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.18",
3
+ "version": "1.21.19",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.2",
4
+ "version": "1.8.3",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -102,6 +102,9 @@
102
102
  "bonusWeaponAttack": {
103
103
  "type": "string"
104
104
  },
105
+ "bonusWeaponDamage": {
106
+ "type": "string"
107
+ },
105
108
  "bonusSpellAttack": {
106
109
  "type": "string"
107
110
  },
@@ -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.13.30",
6
+ "version": "1.13.32",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1947,6 +1947,10 @@
1947
1947
  "description": "Renders with the updated text found in UA2020: Feats",
1948
1948
  "const": true
1949
1949
  },
1950
+ "spellcastingFeature": {
1951
+ "description": "A more restrictive spellcasting variant; specifically \"Spellcasting Feature\"",
1952
+ "const": true
1953
+ },
1950
1954
  "psionics": {
1951
1955
  "const": true
1952
1956
  },
@@ -1964,6 +1968,15 @@
1964
1968
  ]
1965
1969
  },
1966
1970
  "weapon": {
1971
+ "description": "Any <simple|martial> weapon.",
1972
+ "type": "string",
1973
+ "enum": [
1974
+ "simple",
1975
+ "martial"
1976
+ ]
1977
+ },
1978
+ "weaponGroup": {
1979
+ "description": "All <simple|martial> weapons.",
1967
1980
  "type": "string",
1968
1981
  "enum": [
1969
1982
  "simple",
@@ -2410,6 +2423,9 @@
2410
2423
  },
2411
2424
  "note": {
2412
2425
  "type": "string"
2426
+ },
2427
+ "cond": {
2428
+ "const": true
2413
2429
  }
2414
2430
  },
2415
2431
  "additionalProperties": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.18",
3
+ "version": "1.21.19",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.2",
4
+ "version": "1.8.3",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -102,6 +102,9 @@
102
102
  "bonusWeaponAttack": {
103
103
  "type": "string"
104
104
  },
105
+ "bonusWeaponDamage": {
106
+ "type": "string"
107
+ },
105
108
  "bonusSpellAttack": {
106
109
  "type": "string"
107
110
  },
@@ -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.13.30",
6
+ "version": "1.13.32",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1947,6 +1947,10 @@
1947
1947
  "description": "Renders with the updated text found in UA2020: Feats",
1948
1948
  "const": true
1949
1949
  },
1950
+ "spellcastingFeature": {
1951
+ "description": "A more restrictive spellcasting variant; specifically \"Spellcasting Feature\"",
1952
+ "const": true
1953
+ },
1950
1954
  "psionics": {
1951
1955
  "const": true
1952
1956
  },
@@ -1964,6 +1968,15 @@
1964
1968
  ]
1965
1969
  },
1966
1970
  "weapon": {
1971
+ "description": "Any <simple|martial> weapon.",
1972
+ "type": "string",
1973
+ "enum": [
1974
+ "simple",
1975
+ "martial"
1976
+ ]
1977
+ },
1978
+ "weaponGroup": {
1979
+ "description": "All <simple|martial> weapons.",
1967
1980
  "type": "string",
1968
1981
  "enum": [
1969
1982
  "simple",
@@ -2410,6 +2423,9 @@
2410
2423
  },
2411
2424
  "note": {
2412
2425
  "type": "string"
2426
+ },
2427
+ "cond": {
2428
+ "const": true
2413
2429
  }
2414
2430
  },
2415
2431
  "additionalProperties": false,
@@ -1,85 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.0.2",
4
- "$id": "traits.json",
5
- "type": "object",
6
- "$defs": {
7
- "trait": {
8
- "type": "object",
9
- "properties": {
10
- "name": {
11
- "type": "string"
12
- },
13
- "source": {
14
- "type": "string"
15
- },
16
- "page": {
17
- "$ref": "../util.json#/$defs/page"
18
- },
19
- "ref": {
20
- "type": "string"
21
- },
22
- "crMin": {
23
- "type": "string"
24
- },
25
- "crMax": {
26
- "type": "string"
27
- },
28
- "prerequisite": {
29
- "type": "object",
30
- "patternProperties": {
31
- "^.*$": {
32
- "oneOf": [
33
- {
34
- "type": "object",
35
- "properties": {
36
- "min": {},
37
- "max": {}
38
- },
39
- "additionalProperties": false
40
- },
41
- {
42
- "type": "object",
43
- "properties": {
44
- "oneOf": {
45
- "type": "array"
46
- }
47
- },
48
- "additionalProperties": false
49
- }
50
- ]
51
- }
52
- }
53
- },
54
- "apply": {
55
- "type": "object",
56
- "properties": {
57
- "_root": {
58
- "$ref": "bestiary.json#/$defs/creatureData"
59
- },
60
- "_mod": {
61
- "$ref": "../util.json#/$defs/_modObject"
62
- }
63
- }
64
- }
65
- },
66
- "additionalProperties": false,
67
- "required": [
68
- "name",
69
- "source",
70
- "apply"
71
- ]
72
- }
73
- },
74
- "properties": {
75
- "trait": {
76
- "type": "array",
77
- "minItems": 1,
78
- "uniqueItems": true,
79
- "items": {
80
- "$ref": "#/$defs/trait"
81
- }
82
- }
83
- },
84
- "additionalProperties": false
85
- }
@@ -1,85 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.0.2",
4
- "$id": "traits.json",
5
- "type": "object",
6
- "$defs": {
7
- "trait": {
8
- "type": "object",
9
- "properties": {
10
- "name": {
11
- "type": "string"
12
- },
13
- "source": {
14
- "type": "string"
15
- },
16
- "page": {
17
- "$ref": "../util.json#/$defs/page"
18
- },
19
- "ref": {
20
- "type": "string"
21
- },
22
- "crMin": {
23
- "type": "string"
24
- },
25
- "crMax": {
26
- "type": "string"
27
- },
28
- "prerequisite": {
29
- "type": "object",
30
- "patternProperties": {
31
- "^.*$": {
32
- "oneOf": [
33
- {
34
- "type": "object",
35
- "properties": {
36
- "min": {},
37
- "max": {}
38
- },
39
- "additionalProperties": false
40
- },
41
- {
42
- "type": "object",
43
- "properties": {
44
- "oneOf": {
45
- "type": "array"
46
- }
47
- },
48
- "additionalProperties": false
49
- }
50
- ]
51
- }
52
- }
53
- },
54
- "apply": {
55
- "type": "object",
56
- "properties": {
57
- "_root": {
58
- "$ref": "bestiary.json#/$defs/creatureData"
59
- },
60
- "_mod": {
61
- "$ref": "../util.json#/$defs/_modObject"
62
- }
63
- }
64
- }
65
- },
66
- "additionalProperties": false,
67
- "required": [
68
- "name",
69
- "source",
70
- "apply"
71
- ]
72
- }
73
- },
74
- "properties": {
75
- "trait": {
76
- "type": "array",
77
- "minItems": 1,
78
- "uniqueItems": true,
79
- "items": {
80
- "$ref": "#/$defs/trait"
81
- }
82
- }
83
- },
84
- "additionalProperties": false
85
- }
@@ -1,85 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.0.2",
4
- "$id": "traits.json",
5
- "type": "object",
6
- "$defs": {
7
- "trait": {
8
- "type": "object",
9
- "properties": {
10
- "name": {
11
- "type": "string"
12
- },
13
- "source": {
14
- "type": "string"
15
- },
16
- "page": {
17
- "$ref": "../util.json#/$defs/page"
18
- },
19
- "ref": {
20
- "type": "string"
21
- },
22
- "crMin": {
23
- "type": "string"
24
- },
25
- "crMax": {
26
- "type": "string"
27
- },
28
- "prerequisite": {
29
- "type": "object",
30
- "patternProperties": {
31
- "^.*$": {
32
- "oneOf": [
33
- {
34
- "type": "object",
35
- "properties": {
36
- "min": {},
37
- "max": {}
38
- },
39
- "additionalProperties": false
40
- },
41
- {
42
- "type": "object",
43
- "properties": {
44
- "oneOf": {
45
- "type": "array"
46
- }
47
- },
48
- "additionalProperties": false
49
- }
50
- ]
51
- }
52
- }
53
- },
54
- "apply": {
55
- "type": "object",
56
- "properties": {
57
- "_root": {
58
- "$ref": "bestiary.json#/$defs/creatureData"
59
- },
60
- "_mod": {
61
- "$ref": "../util.json#/$defs/_modObject"
62
- }
63
- }
64
- }
65
- },
66
- "additionalProperties": false,
67
- "required": [
68
- "name",
69
- "source",
70
- "apply"
71
- ]
72
- }
73
- },
74
- "properties": {
75
- "trait": {
76
- "type": "array",
77
- "minItems": 1,
78
- "uniqueItems": true,
79
- "items": {
80
- "$ref": "#/$defs/trait"
81
- }
82
- }
83
- },
84
- "additionalProperties": false
85
- }
@@ -1,85 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.0.2",
4
- "$id": "traits.json",
5
- "type": "object",
6
- "$defs": {
7
- "trait": {
8
- "type": "object",
9
- "properties": {
10
- "name": {
11
- "type": "string"
12
- },
13
- "source": {
14
- "type": "string"
15
- },
16
- "page": {
17
- "$ref": "../util.json#/$defs/page"
18
- },
19
- "ref": {
20
- "type": "string"
21
- },
22
- "crMin": {
23
- "type": "string"
24
- },
25
- "crMax": {
26
- "type": "string"
27
- },
28
- "prerequisite": {
29
- "type": "object",
30
- "patternProperties": {
31
- "^.*$": {
32
- "oneOf": [
33
- {
34
- "type": "object",
35
- "properties": {
36
- "min": {},
37
- "max": {}
38
- },
39
- "additionalProperties": false
40
- },
41
- {
42
- "type": "object",
43
- "properties": {
44
- "oneOf": {
45
- "type": "array"
46
- }
47
- },
48
- "additionalProperties": false
49
- }
50
- ]
51
- }
52
- }
53
- },
54
- "apply": {
55
- "type": "object",
56
- "properties": {
57
- "_root": {
58
- "$ref": "bestiary.json#/$defs/creatureData"
59
- },
60
- "_mod": {
61
- "$ref": "../util.json#/$defs/_modObject"
62
- }
63
- }
64
- }
65
- },
66
- "additionalProperties": false,
67
- "required": [
68
- "name",
69
- "source",
70
- "apply"
71
- ]
72
- }
73
- },
74
- "properties": {
75
- "trait": {
76
- "type": "array",
77
- "minItems": 1,
78
- "uniqueItems": true,
79
- "items": {
80
- "$ref": "#/$defs/trait"
81
- }
82
- }
83
- },
84
- "additionalProperties": false
85
- }
@@ -1,85 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.0.2",
4
- "$id": "traits.json",
5
- "type": "object",
6
- "$defs": {
7
- "trait": {
8
- "type": "object",
9
- "properties": {
10
- "name": {
11
- "type": "string"
12
- },
13
- "source": {
14
- "type": "string"
15
- },
16
- "page": {
17
- "$ref": "../util.json#/$defs/page"
18
- },
19
- "ref": {
20
- "type": "string"
21
- },
22
- "crMin": {
23
- "type": "string"
24
- },
25
- "crMax": {
26
- "type": "string"
27
- },
28
- "prerequisite": {
29
- "type": "object",
30
- "patternProperties": {
31
- "^.*$": {
32
- "oneOf": [
33
- {
34
- "type": "object",
35
- "properties": {
36
- "min": {},
37
- "max": {}
38
- },
39
- "additionalProperties": false
40
- },
41
- {
42
- "type": "object",
43
- "properties": {
44
- "oneOf": {
45
- "type": "array"
46
- }
47
- },
48
- "additionalProperties": false
49
- }
50
- ]
51
- }
52
- }
53
- },
54
- "apply": {
55
- "type": "object",
56
- "properties": {
57
- "_root": {
58
- "$ref": "bestiary.json#/$defs/creatureData"
59
- },
60
- "_mod": {
61
- "$ref": "../util.json#/$defs/_modObject"
62
- }
63
- }
64
- }
65
- },
66
- "additionalProperties": false,
67
- "required": [
68
- "name",
69
- "source",
70
- "apply"
71
- ]
72
- }
73
- },
74
- "properties": {
75
- "trait": {
76
- "type": "array",
77
- "minItems": 1,
78
- "uniqueItems": true,
79
- "items": {
80
- "$ref": "#/$defs/trait"
81
- }
82
- }
83
- },
84
- "additionalProperties": false
85
- }
@@ -1,85 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.0.2",
4
- "$id": "traits.json",
5
- "type": "object",
6
- "$defs": {
7
- "trait": {
8
- "type": "object",
9
- "properties": {
10
- "name": {
11
- "type": "string"
12
- },
13
- "source": {
14
- "type": "string"
15
- },
16
- "page": {
17
- "$ref": "../util.json#/$defs/page"
18
- },
19
- "ref": {
20
- "type": "string"
21
- },
22
- "crMin": {
23
- "type": "string"
24
- },
25
- "crMax": {
26
- "type": "string"
27
- },
28
- "prerequisite": {
29
- "type": "object",
30
- "patternProperties": {
31
- "^.*$": {
32
- "oneOf": [
33
- {
34
- "type": "object",
35
- "properties": {
36
- "min": {},
37
- "max": {}
38
- },
39
- "additionalProperties": false
40
- },
41
- {
42
- "type": "object",
43
- "properties": {
44
- "oneOf": {
45
- "type": "array"
46
- }
47
- },
48
- "additionalProperties": false
49
- }
50
- ]
51
- }
52
- }
53
- },
54
- "apply": {
55
- "type": "object",
56
- "properties": {
57
- "_root": {
58
- "$ref": "bestiary.json#/$defs/creatureData"
59
- },
60
- "_mod": {
61
- "$ref": "../util.json#/$defs/_modObject"
62
- }
63
- }
64
- }
65
- },
66
- "additionalProperties": false,
67
- "required": [
68
- "name",
69
- "source",
70
- "apply"
71
- ]
72
- }
73
- },
74
- "properties": {
75
- "trait": {
76
- "type": "array",
77
- "minItems": 1,
78
- "uniqueItems": true,
79
- "items": {
80
- "$ref": "#/$defs/trait"
81
- }
82
- }
83
- },
84
- "additionalProperties": false
85
- }