5etools-utils 0.9.11 → 0.9.13

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.11",
3
+ "version": "0.9.13",
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.10.13",
3
+ "version": "1.10.14",
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": {
@@ -413,9 +413,15 @@
413
413
  "class": {
414
414
  "$ref": "class/class.json#/properties/class"
415
415
  },
416
+ "foundryClass": {
417
+ "$ref": "class/foundry.json#/properties/class"
418
+ },
416
419
  "subclass": {
417
420
  "$ref": "class/class.json#/properties/subclass"
418
421
  },
422
+ "foundrySubclass": {
423
+ "$ref": "class/foundry.json#/properties/subclass"
424
+ },
419
425
  "classFeature": {
420
426
  "$ref": "class/class.json#/properties/classFeature"
421
427
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -577,7 +577,7 @@
577
577
  "time": {
578
578
  "type": "array",
579
579
  "items": {
580
- "$ref": "#/$defs/time"
580
+ "$ref": "../util-time.json#/$defs/time"
581
581
  }
582
582
  },
583
583
  "range": {
@@ -1130,7 +1130,7 @@
1130
1130
  "time": {
1131
1131
  "type": "array",
1132
1132
  "items": {
1133
- "$ref": "#/$defs/time"
1133
+ "$ref": "../util-time.json#/$defs/time"
1134
1134
  }
1135
1135
  },
1136
1136
  "range": {
@@ -1717,32 +1717,6 @@
1717
1717
  }
1718
1718
  ]
1719
1719
  },
1720
- "time": {
1721
- "type": "object",
1722
- "properties": {
1723
- "number": {
1724
- "type": "integer"
1725
- },
1726
- "unit": {
1727
- "type": "string",
1728
- "examples": [
1729
- "action",
1730
- "bonus",
1731
- "reaction",
1732
- "round",
1733
- "minute",
1734
- "hour"
1735
- ]
1736
- },
1737
- "condition": {
1738
- "type": "string"
1739
- }
1740
- },
1741
- "required": [
1742
- "unit"
1743
- ],
1744
- "additionalProperties": false
1745
- },
1746
1720
  "duration": {
1747
1721
  "type": "object",
1748
1722
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "examples": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.13",
3
+ "version": "1.10.14",
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": {
@@ -411,9 +411,15 @@
411
411
  "class": {
412
412
  "$ref": "class/class.json#/properties/class"
413
413
  },
414
+ "foundryClass": {
415
+ "$ref": "class/foundry.json#/properties/class"
416
+ },
414
417
  "subclass": {
415
418
  "$ref": "class/class.json#/properties/subclass"
416
419
  },
420
+ "foundrySubclass": {
421
+ "$ref": "class/foundry.json#/properties/subclass"
422
+ },
417
423
  "classFeature": {
418
424
  "$ref": "class/class.json#/properties/classFeature"
419
425
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -577,7 +577,7 @@
577
577
  "time": {
578
578
  "type": "array",
579
579
  "items": {
580
- "$ref": "#/$defs/time"
580
+ "$ref": "../util-time.json#/$defs/time"
581
581
  }
582
582
  },
583
583
  "range": {
@@ -1130,7 +1130,7 @@
1130
1130
  "time": {
1131
1131
  "type": "array",
1132
1132
  "items": {
1133
- "$ref": "#/$defs/time"
1133
+ "$ref": "../util-time.json#/$defs/time"
1134
1134
  }
1135
1135
  },
1136
1136
  "range": {
@@ -1717,32 +1717,6 @@
1717
1717
  }
1718
1718
  ]
1719
1719
  },
1720
- "time": {
1721
- "type": "object",
1722
- "properties": {
1723
- "number": {
1724
- "type": "integer"
1725
- },
1726
- "unit": {
1727
- "type": "string",
1728
- "examples": [
1729
- "action",
1730
- "bonus",
1731
- "reaction",
1732
- "round",
1733
- "minute",
1734
- "hour"
1735
- ]
1736
- },
1737
- "condition": {
1738
- "type": "string"
1739
- }
1740
- },
1741
- "required": [
1742
- "unit"
1743
- ],
1744
- "additionalProperties": false
1745
- },
1746
1720
  "duration": {
1747
1721
  "type": "object",
1748
1722
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "examples": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.13",
3
+ "version": "1.10.14",
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": {
@@ -413,9 +413,15 @@
413
413
  "class": {
414
414
  "$ref": "class/class.json#/properties/class"
415
415
  },
416
+ "foundryClass": {
417
+ "$ref": "class/foundry.json#/properties/class"
418
+ },
416
419
  "subclass": {
417
420
  "$ref": "class/class.json#/properties/subclass"
418
421
  },
422
+ "foundrySubclass": {
423
+ "$ref": "class/foundry.json#/properties/subclass"
424
+ },
419
425
  "classFeature": {
420
426
  "$ref": "class/class.json#/properties/classFeature"
421
427
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -355,7 +355,7 @@
355
355
  "time": {
356
356
  "type": "array",
357
357
  "items": {
358
- "$ref": "#/$defs/time"
358
+ "$ref": "../util-time.json#/$defs/time"
359
359
  }
360
360
  },
361
361
  "range": {
@@ -686,7 +686,7 @@
686
686
  "time": {
687
687
  "type": "array",
688
688
  "items": {
689
- "$ref": "#/$defs/time"
689
+ "$ref": "../util-time.json#/$defs/time"
690
690
  }
691
691
  },
692
692
  "range": {
@@ -1051,32 +1051,6 @@
1051
1051
  }
1052
1052
  ]
1053
1053
  },
1054
- "time": {
1055
- "type": "object",
1056
- "properties": {
1057
- "number": {
1058
- "type": "integer"
1059
- },
1060
- "unit": {
1061
- "type": "string",
1062
- "enum": [
1063
- "action",
1064
- "bonus",
1065
- "reaction",
1066
- "round",
1067
- "minute",
1068
- "hour"
1069
- ]
1070
- },
1071
- "condition": {
1072
- "type": "string"
1073
- }
1074
- },
1075
- "required": [
1076
- "unit"
1077
- ],
1078
- "additionalProperties": false
1079
- },
1080
1054
  "duration": {
1081
1055
  "type": "object",
1082
1056
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "enum": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.13",
3
+ "version": "1.10.14",
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": {
@@ -411,9 +411,15 @@
411
411
  "class": {
412
412
  "$ref": "class/class.json#/properties/class"
413
413
  },
414
+ "foundryClass": {
415
+ "$ref": "class/foundry.json#/properties/class"
416
+ },
414
417
  "subclass": {
415
418
  "$ref": "class/class.json#/properties/subclass"
416
419
  },
420
+ "foundrySubclass": {
421
+ "$ref": "class/foundry.json#/properties/subclass"
422
+ },
417
423
  "classFeature": {
418
424
  "$ref": "class/class.json#/properties/classFeature"
419
425
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -355,7 +355,7 @@
355
355
  "time": {
356
356
  "type": "array",
357
357
  "items": {
358
- "$ref": "#/$defs/time"
358
+ "$ref": "../util-time.json#/$defs/time"
359
359
  }
360
360
  },
361
361
  "range": {
@@ -686,7 +686,7 @@
686
686
  "time": {
687
687
  "type": "array",
688
688
  "items": {
689
- "$ref": "#/$defs/time"
689
+ "$ref": "../util-time.json#/$defs/time"
690
690
  }
691
691
  },
692
692
  "range": {
@@ -1051,32 +1051,6 @@
1051
1051
  }
1052
1052
  ]
1053
1053
  },
1054
- "time": {
1055
- "type": "object",
1056
- "properties": {
1057
- "number": {
1058
- "type": "integer"
1059
- },
1060
- "unit": {
1061
- "type": "string",
1062
- "enum": [
1063
- "action",
1064
- "bonus",
1065
- "reaction",
1066
- "round",
1067
- "minute",
1068
- "hour"
1069
- ]
1070
- },
1071
- "condition": {
1072
- "type": "string"
1073
- }
1074
- },
1075
- "required": [
1076
- "unit"
1077
- ],
1078
- "additionalProperties": false
1079
- },
1080
1054
  "duration": {
1081
1055
  "type": "object",
1082
1056
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "enum": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.13",
3
+ "version": "1.10.14",
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": {
@@ -413,9 +413,15 @@
413
413
  "class": {
414
414
  "$ref": "class/class.json#/properties/class"
415
415
  },
416
+ "foundryClass": {
417
+ "$ref": "class/foundry.json#/properties/class"
418
+ },
416
419
  "subclass": {
417
420
  "$ref": "class/class.json#/properties/subclass"
418
421
  },
422
+ "foundrySubclass": {
423
+ "$ref": "class/foundry.json#/properties/subclass"
424
+ },
419
425
  "classFeature": {
420
426
  "$ref": "class/class.json#/properties/classFeature"
421
427
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -375,7 +375,7 @@
375
375
  "time": {
376
376
  "type": "array",
377
377
  "items": {
378
- "$ref": "#/$defs/time"
378
+ "$ref": "../util-time.json#/$defs/time"
379
379
  }
380
380
  },
381
381
  "range": {
@@ -726,7 +726,7 @@
726
726
  "time": {
727
727
  "type": "array",
728
728
  "items": {
729
- "$ref": "#/$defs/time"
729
+ "$ref": "../util-time.json#/$defs/time"
730
730
  }
731
731
  },
732
732
  "range": {
@@ -1111,32 +1111,6 @@
1111
1111
  }
1112
1112
  ]
1113
1113
  },
1114
- "time": {
1115
- "type": "object",
1116
- "properties": {
1117
- "number": {
1118
- "type": "integer"
1119
- },
1120
- "unit": {
1121
- "type": "string",
1122
- "examples": [
1123
- "action",
1124
- "bonus",
1125
- "reaction",
1126
- "round",
1127
- "minute",
1128
- "hour"
1129
- ]
1130
- },
1131
- "condition": {
1132
- "type": "string"
1133
- }
1134
- },
1135
- "required": [
1136
- "unit"
1137
- ],
1138
- "additionalProperties": false
1139
- },
1140
1114
  "duration": {
1141
1115
  "type": "object",
1142
1116
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "examples": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.13",
3
+ "version": "1.10.14",
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": {
@@ -411,9 +411,15 @@
411
411
  "class": {
412
412
  "$ref": "class/class.json#/properties/class"
413
413
  },
414
+ "foundryClass": {
415
+ "$ref": "class/foundry.json#/properties/class"
416
+ },
414
417
  "subclass": {
415
418
  "$ref": "class/class.json#/properties/subclass"
416
419
  },
420
+ "foundrySubclass": {
421
+ "$ref": "class/foundry.json#/properties/subclass"
422
+ },
417
423
  "classFeature": {
418
424
  "$ref": "class/class.json#/properties/classFeature"
419
425
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipe": {
@@ -16,6 +16,19 @@
16
16
  "page": {
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
+ "time": {
20
+ "type": "object",
21
+ "properties": {
22
+ "cooking": {
23
+ "$ref": "util-time.json#/$defs/time"
24
+ },
25
+ "preparation": {
26
+ "$ref": "util-time.json#/$defs/time"
27
+ }
28
+ },
29
+ "additionalProperties": false,
30
+ "minProperties": 2
31
+ },
19
32
  "serves": {
20
33
  "oneOf": [
21
34
  {
@@ -32,7 +32,7 @@
32
32
  "time": {
33
33
  "type": "array",
34
34
  "items": {
35
- "$ref": "#/$defs/time"
35
+ "$ref": "../util-time.json#/$defs/time"
36
36
  }
37
37
  },
38
38
  "range": {
@@ -375,7 +375,7 @@
375
375
  "time": {
376
376
  "type": "array",
377
377
  "items": {
378
- "$ref": "#/$defs/time"
378
+ "$ref": "../util-time.json#/$defs/time"
379
379
  }
380
380
  },
381
381
  "range": {
@@ -726,7 +726,7 @@
726
726
  "time": {
727
727
  "type": "array",
728
728
  "items": {
729
- "$ref": "#/$defs/time"
729
+ "$ref": "../util-time.json#/$defs/time"
730
730
  }
731
731
  },
732
732
  "range": {
@@ -1111,32 +1111,6 @@
1111
1111
  }
1112
1112
  ]
1113
1113
  },
1114
- "time": {
1115
- "type": "object",
1116
- "properties": {
1117
- "number": {
1118
- "type": "integer"
1119
- },
1120
- "unit": {
1121
- "type": "string",
1122
- "examples": [
1123
- "action",
1124
- "bonus",
1125
- "reaction",
1126
- "round",
1127
- "minute",
1128
- "hour"
1129
- ]
1130
- },
1131
- "condition": {
1132
- "type": "string"
1133
- }
1134
- },
1135
- "required": [
1136
- "unit"
1137
- ],
1138
- "additionalProperties": false
1139
- },
1140
1114
  "duration": {
1141
1115
  "type": "object",
1142
1116
  "properties": {
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "util-time.json",
4
+ "version": "1.0.0",
5
+ "title": "Util: Time",
6
+ "$defs": {
7
+ "time": {
8
+ "type": "object",
9
+ "properties": {
10
+ "number": {
11
+ "type": "integer"
12
+ },
13
+ "unit": {
14
+ "type": "string",
15
+ "examples": [
16
+ "action",
17
+ "bonus",
18
+ "reaction",
19
+ "round",
20
+ "minute",
21
+ "hour"
22
+ ]
23
+ },
24
+ "condition": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "unit"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }