5etools-utils 0.13.41 → 0.14.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 (38) hide show
  1. package/lib/TestData.js +36 -36
  2. package/package.json +2 -1
  3. package/schema/brew/class/foundry.json +13 -7
  4. package/schema/brew/foundry-backgrounds.json +3 -0
  5. package/schema/brew/foundry-items.json +3 -0
  6. package/schema/brew/foundry-psionics.json +3 -0
  7. package/schema/brew/foundry-races.json +15 -0
  8. package/schema/brew/util-foundry.json +10 -1
  9. package/schema/brew-fast/class/foundry.json +13 -7
  10. package/schema/brew-fast/foundry-backgrounds.json +3 -0
  11. package/schema/brew-fast/foundry-items.json +3 -0
  12. package/schema/brew-fast/foundry-psionics.json +3 -0
  13. package/schema/brew-fast/foundry-races.json +15 -0
  14. package/schema/brew-fast/util-foundry.json +10 -1
  15. package/schema/site/class/foundry.json +13 -7
  16. package/schema/site/foundry-backgrounds.json +3 -0
  17. package/schema/site/foundry-items.json +3 -0
  18. package/schema/site/foundry-psionics.json +3 -0
  19. package/schema/site/foundry-races.json +15 -0
  20. package/schema/site/util-foundry.json +10 -1
  21. package/schema/site-fast/class/foundry.json +13 -7
  22. package/schema/site-fast/foundry-backgrounds.json +3 -0
  23. package/schema/site-fast/foundry-items.json +3 -0
  24. package/schema/site-fast/foundry-psionics.json +3 -0
  25. package/schema/site-fast/foundry-races.json +15 -0
  26. package/schema/site-fast/util-foundry.json +10 -1
  27. package/schema/ua/class/foundry.json +13 -7
  28. package/schema/ua/foundry-backgrounds.json +3 -0
  29. package/schema/ua/foundry-items.json +3 -0
  30. package/schema/ua/foundry-psionics.json +3 -0
  31. package/schema/ua/foundry-races.json +15 -0
  32. package/schema/ua/util-foundry.json +10 -1
  33. package/schema/ua-fast/class/foundry.json +13 -7
  34. package/schema/ua-fast/foundry-backgrounds.json +3 -0
  35. package/schema/ua-fast/foundry-items.json +3 -0
  36. package/schema/ua-fast/foundry-psionics.json +3 -0
  37. package/schema/ua-fast/foundry-races.json +15 -0
  38. package/schema/ua-fast/util-foundry.json +10 -1
package/lib/TestData.js CHANGED
@@ -51,44 +51,44 @@ class _ParsedJsonChecker {
51
51
  }
52
52
 
53
53
  class DataTesterBase {
54
- static _MESSAGE = "";
54
+ _message = "";
55
55
 
56
- static _addMessage (str) {
57
- this._MESSAGE += str;
56
+ _addMessage (str) {
57
+ this._message += str;
58
58
  }
59
59
 
60
- static addMessageBoundary () {
61
- if (!this._MESSAGE.trim()) return;
62
- if (this._MESSAGE.slice(-5) === "\n---\n") return;
63
- this._MESSAGE = this._MESSAGE.trimEnd();
64
- this._MESSAGE += `\n---\n`;
60
+ addMessageBoundary () {
61
+ if (!this._message.trim()) return;
62
+ if (this._message.slice(-5) === "\n---\n") return;
63
+ this._message = this._message.trimEnd();
64
+ this._message += `\n---\n`;
65
65
  }
66
66
 
67
- static getMessage () { return this._MESSAGE; }
67
+ getMessage () { return this._message; }
68
68
 
69
69
  /* -------------------------------------------- */
70
70
 
71
- static async pRun () { /* Implement as required */ }
71
+ async pRun () { /* Implement as required */ }
72
72
 
73
- static async pPostRun () { /* Implement as required */ }
73
+ async pPostRun () { /* Implement as required */ }
74
74
 
75
75
  /* -------------------------------------------- */
76
76
 
77
- static registerParsedFileCheckers (parsedJsonChecker) { /* Implement as required */ }
77
+ registerParsedFileCheckers (parsedJsonChecker) { /* Implement as required */ }
78
78
 
79
- static registerParsedPrimitiveHandlers (parsedJsonChecker) { /* Implement as required */ }
79
+ registerParsedPrimitiveHandlers (parsedJsonChecker) { /* Implement as required */ }
80
80
 
81
81
  /* -------------------------------------------- */
82
82
 
83
- static handleFile (filePath, contents) { /* Implement as required */ }
83
+ handleFile (filePath, contents) { /* Implement as required */ }
84
84
  }
85
85
 
86
86
  class BraceCheck extends DataTesterBase {
87
- static registerParsedPrimitiveHandlers (parsedJsonChecker) {
87
+ registerParsedPrimitiveHandlers (parsedJsonChecker) {
88
88
  parsedJsonChecker.addPrimitiveHandler("string", this._checkString.bind(this));
89
89
  }
90
90
 
91
- static _checkString (str, {filePath}) {
91
+ _checkString (str, {filePath}) {
92
92
  let total = 0;
93
93
  for (let i = 0; i < str.length; ++i) {
94
94
  const c = str[i];
@@ -110,23 +110,23 @@ class BraceCheck extends DataTesterBase {
110
110
  class EscapeCharacterCheck extends DataTesterBase {
111
111
  static _CHARS = 16;
112
112
 
113
- static _errors = [];
113
+ _errors = [];
114
114
 
115
- static registerParsedFileCheckers (parsedJsonChecker) {
115
+ registerParsedFileCheckers (parsedJsonChecker) {
116
116
  parsedJsonChecker.registerFileHandler(this);
117
117
  }
118
118
 
119
- static _checkString (str) {
119
+ _checkString (str) {
120
120
  let re = /([\n\t\r])/g;
121
121
  let m;
122
122
  while ((m = re.exec(str))) {
123
- const startIx = Math.max(m.index - this._CHARS, 0);
124
- const endIx = Math.min(m.index + this._CHARS, str.length);
123
+ const startIx = Math.max(m.index - this.constructor._CHARS, 0);
124
+ const endIx = Math.min(m.index + this.constructor._CHARS, str.length);
125
125
  this._errors.push(`...${str.substring(startIx, endIx)}...`.replace(/[\n\t\r]/g, (...m) => m[0] === "\n" ? "***\\n***" : m[0] === "\t" ? "***\\t***" : "***\\r***"));
126
126
  }
127
127
  }
128
128
 
129
- static handleFile (file, contents) {
129
+ handleFile (file, contents) {
130
130
  this._errors = [];
131
131
  ObjectWalker.walk({
132
132
  obj: contents,
@@ -145,18 +145,18 @@ class EscapeCharacterCheck extends DataTesterBase {
145
145
  class DataTester {
146
146
  static register (
147
147
  {
148
- ClazzDataTesters,
148
+ dataTesters,
149
149
  },
150
150
  ) {
151
- ClazzDataTesters.forEach(ClazzDataTester => {
152
- ClazzDataTester.registerParsedPrimitiveHandlers(_ParsedJsonChecker);
153
- ClazzDataTester.registerParsedFileCheckers(_ParsedJsonChecker);
151
+ dataTesters.forEach(dataTester => {
152
+ dataTester.registerParsedPrimitiveHandlers(_ParsedJsonChecker);
153
+ dataTester.registerParsedFileCheckers(_ParsedJsonChecker);
154
154
  });
155
155
  }
156
156
 
157
157
  static async pRun (
158
158
  filePath,
159
- ClazzDataTesters,
159
+ dataTesters,
160
160
  {
161
161
  fnIsIgnoredFile,
162
162
  fnIsIgnoredDirectory,
@@ -164,21 +164,21 @@ class DataTester {
164
164
  ) {
165
165
  _ParsedJsonChecker.run(filePath, {fnIsIgnoredFile, fnIsIgnoredDirectory});
166
166
 
167
- for (const ClazzDataTester of ClazzDataTesters) {
168
- await ClazzDataTester.pRun();
167
+ for (const dataTester of dataTesters) {
168
+ await dataTester.pRun();
169
169
  }
170
170
 
171
- for (const ClazzDataTester of ClazzDataTesters) {
172
- await ClazzDataTester.pPostRun();
171
+ for (const dataTester of dataTesters) {
172
+ await dataTester.pPostRun();
173
173
  }
174
174
  }
175
175
 
176
- static getLogReport (ClazzDataTesters) {
176
+ static getLogReport (dataTesters) {
177
177
  let outMessage = "";
178
- for (const ClazzDataTester of ClazzDataTesters) {
179
- const pt = ClazzDataTester.getMessage();
180
- if (pt) outMessage += `Error messages for ${ClazzDataTester.name}:\n\n${pt}\n`;
181
- else console.log(`##### ${ClazzDataTester.name} passed! #####`);
178
+ for (const dataTester of dataTesters) {
179
+ const pt = dataTester.getMessage();
180
+ if (pt) outMessage += `Error messages for ${dataTester.constructor.name}:\n\n${pt}\n`;
181
+ else console.log(`##### ${dataTester.constructor.name} passed! #####`);
182
182
  }
183
183
 
184
184
  if (outMessage) console.error(outMessage);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.13.41",
3
+ "version": "0.14.0",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -23,6 +23,7 @@
23
23
  "build": "node node/compile-schemas.js",
24
24
  "test": "npm run lint:js && npm run test:js",
25
25
  "test:js": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
26
+ "lint": "npm run lint:js",
26
27
  "lint:js": "eslint lib node test --fix",
27
28
  "preversion": "npm t"
28
29
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-class.json",
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "class": {
@@ -37,6 +37,9 @@
37
37
  "img": {
38
38
  "type": "string"
39
39
  },
40
+ "advancement": {
41
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
42
+ },
40
43
  "migrationVersion": {
41
44
  "type": "integer"
42
45
  },
@@ -52,9 +55,6 @@
52
55
  "entryData": {
53
56
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
54
57
  },
55
- "advancement": {
56
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
57
- },
58
58
  "chooseSystem": {
59
59
  "type": "array",
60
60
  "items": {
@@ -131,6 +131,9 @@
131
131
  "img": {
132
132
  "type": "string"
133
133
  },
134
+ "advancement": {
135
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
136
+ },
134
137
  "migrationVersion": {
135
138
  "type": "integer"
136
139
  },
@@ -155,9 +158,6 @@
155
158
  "entryData": {
156
159
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
157
160
  },
158
- "advancement": {
159
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
160
- },
161
161
  "chooseSystem": {
162
162
  "type": "array",
163
163
  "items": {
@@ -230,6 +230,9 @@
230
230
  "img": {
231
231
  "type": "string"
232
232
  },
233
+ "advancement": {
234
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
235
+ },
233
236
  "migrationVersion": {
234
237
  "type": "integer"
235
238
  },
@@ -328,6 +331,9 @@
328
331
  "img": {
329
332
  "type": "string"
330
333
  },
334
+ "advancement": {
335
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
336
+ },
331
337
  "migrationVersion": {
332
338
  "type": "integer"
333
339
  },
@@ -45,6 +45,9 @@
45
45
  "img": {
46
46
  "type": "string"
47
47
  },
48
+ "advancement": {
49
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
50
+ },
48
51
  "migrationVersion": {
49
52
  "type": "integer"
50
53
  },
@@ -42,6 +42,9 @@
42
42
  "img": {
43
43
  "type": "string"
44
44
  },
45
+ "advancement": {
46
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
47
+ },
45
48
  "migrationVersion": {
46
49
  "type": "integer"
47
50
  },
@@ -48,6 +48,9 @@
48
48
  "img": {
49
49
  "type": "string"
50
50
  },
51
+ "advancement": {
52
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
53
+ },
51
54
  "migrationVersion": {
52
55
  "type": "integer"
53
56
  },
@@ -35,6 +35,9 @@
35
35
  "img": {
36
36
  "type": "string"
37
37
  },
38
+ "advancement": {
39
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
40
+ },
38
41
  "migrationVersion": {
39
42
  "type": "integer"
40
43
  },
@@ -86,6 +89,9 @@
86
89
  "img": {
87
90
  "type": "string"
88
91
  },
92
+ "advancement": {
93
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
94
+ },
89
95
  "migrationVersion": {
90
96
  "type": "integer"
91
97
  },
@@ -138,6 +144,9 @@
138
144
  "img": {
139
145
  "type": "string"
140
146
  },
147
+ "advancement": {
148
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
149
+ },
141
150
  "migrationVersion": {
142
151
  "type": "integer"
143
152
  },
@@ -193,6 +202,9 @@
193
202
  "img": {
194
203
  "type": "string"
195
204
  },
205
+ "advancement": {
206
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
207
+ },
196
208
  "migrationVersion": {
197
209
  "type": "integer"
198
210
  },
@@ -248,6 +260,9 @@
248
260
  "img": {
249
261
  "type": "string"
250
262
  },
263
+ "advancement": {
264
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
265
+ },
251
266
  "migrationVersion": {
252
267
  "type": "integer"
253
268
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-foundry.json",
4
4
  "title": "Util: Foundry",
5
- "version": "1.1.2",
5
+ "version": "1.1.3",
6
6
  "$defs": {
7
7
  "entryDataObject": {
8
8
  "description": "Additional \"5etools-type\" data to be stored on the entry.",
@@ -1612,6 +1612,9 @@
1612
1612
  "img": {
1613
1613
  "type": "string"
1614
1614
  },
1615
+ "advancement": {
1616
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1617
+ },
1615
1618
  "migrationVersion": {
1616
1619
  "type": "integer"
1617
1620
  },
@@ -1663,6 +1666,9 @@
1663
1666
  "img": {
1664
1667
  "type": "string"
1665
1668
  },
1669
+ "advancement": {
1670
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1671
+ },
1666
1672
  "migrationVersion": {
1667
1673
  "type": "integer"
1668
1674
  },
@@ -1732,6 +1738,9 @@
1732
1738
  "img": {
1733
1739
  "type": "string"
1734
1740
  },
1741
+ "advancement": {
1742
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1743
+ },
1735
1744
  "migrationVersion": {
1736
1745
  "type": "integer"
1737
1746
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-class.json",
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "class": {
@@ -37,6 +37,9 @@
37
37
  "img": {
38
38
  "type": "string"
39
39
  },
40
+ "advancement": {
41
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
42
+ },
40
43
  "migrationVersion": {
41
44
  "type": "integer"
42
45
  },
@@ -52,9 +55,6 @@
52
55
  "entryData": {
53
56
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
54
57
  },
55
- "advancement": {
56
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
57
- },
58
58
  "chooseSystem": {
59
59
  "type": "array",
60
60
  "items": {
@@ -131,6 +131,9 @@
131
131
  "img": {
132
132
  "type": "string"
133
133
  },
134
+ "advancement": {
135
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
136
+ },
134
137
  "migrationVersion": {
135
138
  "type": "integer"
136
139
  },
@@ -155,9 +158,6 @@
155
158
  "entryData": {
156
159
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
157
160
  },
158
- "advancement": {
159
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
160
- },
161
161
  "chooseSystem": {
162
162
  "type": "array",
163
163
  "items": {
@@ -230,6 +230,9 @@
230
230
  "img": {
231
231
  "type": "string"
232
232
  },
233
+ "advancement": {
234
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
235
+ },
233
236
  "migrationVersion": {
234
237
  "type": "integer"
235
238
  },
@@ -328,6 +331,9 @@
328
331
  "img": {
329
332
  "type": "string"
330
333
  },
334
+ "advancement": {
335
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
336
+ },
331
337
  "migrationVersion": {
332
338
  "type": "integer"
333
339
  },
@@ -45,6 +45,9 @@
45
45
  "img": {
46
46
  "type": "string"
47
47
  },
48
+ "advancement": {
49
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
50
+ },
48
51
  "migrationVersion": {
49
52
  "type": "integer"
50
53
  },
@@ -42,6 +42,9 @@
42
42
  "img": {
43
43
  "type": "string"
44
44
  },
45
+ "advancement": {
46
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
47
+ },
45
48
  "migrationVersion": {
46
49
  "type": "integer"
47
50
  },
@@ -48,6 +48,9 @@
48
48
  "img": {
49
49
  "type": "string"
50
50
  },
51
+ "advancement": {
52
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
53
+ },
51
54
  "migrationVersion": {
52
55
  "type": "integer"
53
56
  },
@@ -35,6 +35,9 @@
35
35
  "img": {
36
36
  "type": "string"
37
37
  },
38
+ "advancement": {
39
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
40
+ },
38
41
  "migrationVersion": {
39
42
  "type": "integer"
40
43
  },
@@ -86,6 +89,9 @@
86
89
  "img": {
87
90
  "type": "string"
88
91
  },
92
+ "advancement": {
93
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
94
+ },
89
95
  "migrationVersion": {
90
96
  "type": "integer"
91
97
  },
@@ -138,6 +144,9 @@
138
144
  "img": {
139
145
  "type": "string"
140
146
  },
147
+ "advancement": {
148
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
149
+ },
141
150
  "migrationVersion": {
142
151
  "type": "integer"
143
152
  },
@@ -193,6 +202,9 @@
193
202
  "img": {
194
203
  "type": "string"
195
204
  },
205
+ "advancement": {
206
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
207
+ },
196
208
  "migrationVersion": {
197
209
  "type": "integer"
198
210
  },
@@ -248,6 +260,9 @@
248
260
  "img": {
249
261
  "type": "string"
250
262
  },
263
+ "advancement": {
264
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
265
+ },
251
266
  "migrationVersion": {
252
267
  "type": "integer"
253
268
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-foundry.json",
4
4
  "title": "Util: Foundry",
5
- "version": "1.1.2",
5
+ "version": "1.1.3",
6
6
  "$defs": {
7
7
  "entryDataObject": {
8
8
  "description": "Additional \"5etools-type\" data to be stored on the entry.",
@@ -1612,6 +1612,9 @@
1612
1612
  "img": {
1613
1613
  "type": "string"
1614
1614
  },
1615
+ "advancement": {
1616
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1617
+ },
1615
1618
  "migrationVersion": {
1616
1619
  "type": "integer"
1617
1620
  },
@@ -1663,6 +1666,9 @@
1663
1666
  "img": {
1664
1667
  "type": "string"
1665
1668
  },
1669
+ "advancement": {
1670
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1671
+ },
1666
1672
  "migrationVersion": {
1667
1673
  "type": "integer"
1668
1674
  },
@@ -1732,6 +1738,9 @@
1732
1738
  "img": {
1733
1739
  "type": "string"
1734
1740
  },
1741
+ "advancement": {
1742
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1743
+ },
1735
1744
  "migrationVersion": {
1736
1745
  "type": "integer"
1737
1746
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-class.json",
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "class": {
@@ -37,6 +37,9 @@
37
37
  "img": {
38
38
  "type": "string"
39
39
  },
40
+ "advancement": {
41
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
42
+ },
40
43
  "migrationVersion": {
41
44
  "type": "integer"
42
45
  },
@@ -52,9 +55,6 @@
52
55
  "entryData": {
53
56
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
54
57
  },
55
- "advancement": {
56
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
57
- },
58
58
  "chooseSystem": {
59
59
  "type": "array",
60
60
  "items": {
@@ -131,6 +131,9 @@
131
131
  "img": {
132
132
  "type": "string"
133
133
  },
134
+ "advancement": {
135
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
136
+ },
134
137
  "migrationVersion": {
135
138
  "type": "integer"
136
139
  },
@@ -155,9 +158,6 @@
155
158
  "entryData": {
156
159
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
157
160
  },
158
- "advancement": {
159
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
160
- },
161
161
  "chooseSystem": {
162
162
  "type": "array",
163
163
  "items": {
@@ -230,6 +230,9 @@
230
230
  "img": {
231
231
  "type": "string"
232
232
  },
233
+ "advancement": {
234
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
235
+ },
233
236
  "migrationVersion": {
234
237
  "type": "integer"
235
238
  },
@@ -328,6 +331,9 @@
328
331
  "img": {
329
332
  "type": "string"
330
333
  },
334
+ "advancement": {
335
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
336
+ },
331
337
  "migrationVersion": {
332
338
  "type": "integer"
333
339
  },
@@ -45,6 +45,9 @@
45
45
  "img": {
46
46
  "type": "string"
47
47
  },
48
+ "advancement": {
49
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
50
+ },
48
51
  "migrationVersion": {
49
52
  "type": "integer"
50
53
  },
@@ -42,6 +42,9 @@
42
42
  "img": {
43
43
  "type": "string"
44
44
  },
45
+ "advancement": {
46
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
47
+ },
45
48
  "migrationVersion": {
46
49
  "type": "integer"
47
50
  },
@@ -48,6 +48,9 @@
48
48
  "img": {
49
49
  "type": "string"
50
50
  },
51
+ "advancement": {
52
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
53
+ },
51
54
  "migrationVersion": {
52
55
  "type": "integer"
53
56
  },
@@ -35,6 +35,9 @@
35
35
  "img": {
36
36
  "type": "string"
37
37
  },
38
+ "advancement": {
39
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
40
+ },
38
41
  "migrationVersion": {
39
42
  "type": "integer"
40
43
  },
@@ -86,6 +89,9 @@
86
89
  "img": {
87
90
  "type": "string"
88
91
  },
92
+ "advancement": {
93
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
94
+ },
89
95
  "migrationVersion": {
90
96
  "type": "integer"
91
97
  },
@@ -138,6 +144,9 @@
138
144
  "img": {
139
145
  "type": "string"
140
146
  },
147
+ "advancement": {
148
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
149
+ },
141
150
  "migrationVersion": {
142
151
  "type": "integer"
143
152
  },
@@ -193,6 +202,9 @@
193
202
  "img": {
194
203
  "type": "string"
195
204
  },
205
+ "advancement": {
206
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
207
+ },
196
208
  "migrationVersion": {
197
209
  "type": "integer"
198
210
  },
@@ -248,6 +260,9 @@
248
260
  "img": {
249
261
  "type": "string"
250
262
  },
263
+ "advancement": {
264
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
265
+ },
251
266
  "migrationVersion": {
252
267
  "type": "integer"
253
268
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-foundry.json",
4
4
  "title": "Util: Foundry",
5
- "version": "1.1.2",
5
+ "version": "1.1.3",
6
6
  "$defs": {
7
7
  "entryDataObject": {
8
8
  "description": "Additional \"5etools-type\" data to be stored on the entry.",
@@ -1612,6 +1612,9 @@
1612
1612
  "img": {
1613
1613
  "type": "string"
1614
1614
  },
1615
+ "advancement": {
1616
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1617
+ },
1615
1618
  "migrationVersion": {
1616
1619
  "type": "integer"
1617
1620
  },
@@ -1663,6 +1666,9 @@
1663
1666
  "img": {
1664
1667
  "type": "string"
1665
1668
  },
1669
+ "advancement": {
1670
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1671
+ },
1666
1672
  "migrationVersion": {
1667
1673
  "type": "integer"
1668
1674
  },
@@ -1732,6 +1738,9 @@
1732
1738
  "img": {
1733
1739
  "type": "string"
1734
1740
  },
1741
+ "advancement": {
1742
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1743
+ },
1735
1744
  "migrationVersion": {
1736
1745
  "type": "integer"
1737
1746
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-class.json",
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "class": {
@@ -37,6 +37,9 @@
37
37
  "img": {
38
38
  "type": "string"
39
39
  },
40
+ "advancement": {
41
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
42
+ },
40
43
  "migrationVersion": {
41
44
  "type": "integer"
42
45
  },
@@ -52,9 +55,6 @@
52
55
  "entryData": {
53
56
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
54
57
  },
55
- "advancement": {
56
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
57
- },
58
58
  "chooseSystem": {
59
59
  "type": "array",
60
60
  "items": {
@@ -131,6 +131,9 @@
131
131
  "img": {
132
132
  "type": "string"
133
133
  },
134
+ "advancement": {
135
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
136
+ },
134
137
  "migrationVersion": {
135
138
  "type": "integer"
136
139
  },
@@ -155,9 +158,6 @@
155
158
  "entryData": {
156
159
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
157
160
  },
158
- "advancement": {
159
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
160
- },
161
161
  "chooseSystem": {
162
162
  "type": "array",
163
163
  "items": {
@@ -230,6 +230,9 @@
230
230
  "img": {
231
231
  "type": "string"
232
232
  },
233
+ "advancement": {
234
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
235
+ },
233
236
  "migrationVersion": {
234
237
  "type": "integer"
235
238
  },
@@ -328,6 +331,9 @@
328
331
  "img": {
329
332
  "type": "string"
330
333
  },
334
+ "advancement": {
335
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
336
+ },
331
337
  "migrationVersion": {
332
338
  "type": "integer"
333
339
  },
@@ -45,6 +45,9 @@
45
45
  "img": {
46
46
  "type": "string"
47
47
  },
48
+ "advancement": {
49
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
50
+ },
48
51
  "migrationVersion": {
49
52
  "type": "integer"
50
53
  },
@@ -42,6 +42,9 @@
42
42
  "img": {
43
43
  "type": "string"
44
44
  },
45
+ "advancement": {
46
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
47
+ },
45
48
  "migrationVersion": {
46
49
  "type": "integer"
47
50
  },
@@ -48,6 +48,9 @@
48
48
  "img": {
49
49
  "type": "string"
50
50
  },
51
+ "advancement": {
52
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
53
+ },
51
54
  "migrationVersion": {
52
55
  "type": "integer"
53
56
  },
@@ -35,6 +35,9 @@
35
35
  "img": {
36
36
  "type": "string"
37
37
  },
38
+ "advancement": {
39
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
40
+ },
38
41
  "migrationVersion": {
39
42
  "type": "integer"
40
43
  },
@@ -86,6 +89,9 @@
86
89
  "img": {
87
90
  "type": "string"
88
91
  },
92
+ "advancement": {
93
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
94
+ },
89
95
  "migrationVersion": {
90
96
  "type": "integer"
91
97
  },
@@ -138,6 +144,9 @@
138
144
  "img": {
139
145
  "type": "string"
140
146
  },
147
+ "advancement": {
148
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
149
+ },
141
150
  "migrationVersion": {
142
151
  "type": "integer"
143
152
  },
@@ -193,6 +202,9 @@
193
202
  "img": {
194
203
  "type": "string"
195
204
  },
205
+ "advancement": {
206
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
207
+ },
196
208
  "migrationVersion": {
197
209
  "type": "integer"
198
210
  },
@@ -248,6 +260,9 @@
248
260
  "img": {
249
261
  "type": "string"
250
262
  },
263
+ "advancement": {
264
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
265
+ },
251
266
  "migrationVersion": {
252
267
  "type": "integer"
253
268
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-foundry.json",
4
4
  "title": "Util: Foundry",
5
- "version": "1.1.2",
5
+ "version": "1.1.3",
6
6
  "$defs": {
7
7
  "entryDataObject": {
8
8
  "description": "Additional \"5etools-type\" data to be stored on the entry.",
@@ -1612,6 +1612,9 @@
1612
1612
  "img": {
1613
1613
  "type": "string"
1614
1614
  },
1615
+ "advancement": {
1616
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1617
+ },
1615
1618
  "migrationVersion": {
1616
1619
  "type": "integer"
1617
1620
  },
@@ -1663,6 +1666,9 @@
1663
1666
  "img": {
1664
1667
  "type": "string"
1665
1668
  },
1669
+ "advancement": {
1670
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1671
+ },
1666
1672
  "migrationVersion": {
1667
1673
  "type": "integer"
1668
1674
  },
@@ -1732,6 +1738,9 @@
1732
1738
  "img": {
1733
1739
  "type": "string"
1734
1740
  },
1741
+ "advancement": {
1742
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1743
+ },
1735
1744
  "migrationVersion": {
1736
1745
  "type": "integer"
1737
1746
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-class.json",
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "class": {
@@ -37,6 +37,9 @@
37
37
  "img": {
38
38
  "type": "string"
39
39
  },
40
+ "advancement": {
41
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
42
+ },
40
43
  "migrationVersion": {
41
44
  "type": "integer"
42
45
  },
@@ -52,9 +55,6 @@
52
55
  "entryData": {
53
56
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
54
57
  },
55
- "advancement": {
56
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
57
- },
58
58
  "chooseSystem": {
59
59
  "type": "array",
60
60
  "items": {
@@ -131,6 +131,9 @@
131
131
  "img": {
132
132
  "type": "string"
133
133
  },
134
+ "advancement": {
135
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
136
+ },
134
137
  "migrationVersion": {
135
138
  "type": "integer"
136
139
  },
@@ -155,9 +158,6 @@
155
158
  "entryData": {
156
159
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
157
160
  },
158
- "advancement": {
159
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
160
- },
161
161
  "chooseSystem": {
162
162
  "type": "array",
163
163
  "items": {
@@ -230,6 +230,9 @@
230
230
  "img": {
231
231
  "type": "string"
232
232
  },
233
+ "advancement": {
234
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
235
+ },
233
236
  "migrationVersion": {
234
237
  "type": "integer"
235
238
  },
@@ -328,6 +331,9 @@
328
331
  "img": {
329
332
  "type": "string"
330
333
  },
334
+ "advancement": {
335
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
336
+ },
331
337
  "migrationVersion": {
332
338
  "type": "integer"
333
339
  },
@@ -45,6 +45,9 @@
45
45
  "img": {
46
46
  "type": "string"
47
47
  },
48
+ "advancement": {
49
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
50
+ },
48
51
  "migrationVersion": {
49
52
  "type": "integer"
50
53
  },
@@ -42,6 +42,9 @@
42
42
  "img": {
43
43
  "type": "string"
44
44
  },
45
+ "advancement": {
46
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
47
+ },
45
48
  "migrationVersion": {
46
49
  "type": "integer"
47
50
  },
@@ -48,6 +48,9 @@
48
48
  "img": {
49
49
  "type": "string"
50
50
  },
51
+ "advancement": {
52
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
53
+ },
51
54
  "migrationVersion": {
52
55
  "type": "integer"
53
56
  },
@@ -35,6 +35,9 @@
35
35
  "img": {
36
36
  "type": "string"
37
37
  },
38
+ "advancement": {
39
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
40
+ },
38
41
  "migrationVersion": {
39
42
  "type": "integer"
40
43
  },
@@ -86,6 +89,9 @@
86
89
  "img": {
87
90
  "type": "string"
88
91
  },
92
+ "advancement": {
93
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
94
+ },
89
95
  "migrationVersion": {
90
96
  "type": "integer"
91
97
  },
@@ -138,6 +144,9 @@
138
144
  "img": {
139
145
  "type": "string"
140
146
  },
147
+ "advancement": {
148
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
149
+ },
141
150
  "migrationVersion": {
142
151
  "type": "integer"
143
152
  },
@@ -193,6 +202,9 @@
193
202
  "img": {
194
203
  "type": "string"
195
204
  },
205
+ "advancement": {
206
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
207
+ },
196
208
  "migrationVersion": {
197
209
  "type": "integer"
198
210
  },
@@ -248,6 +260,9 @@
248
260
  "img": {
249
261
  "type": "string"
250
262
  },
263
+ "advancement": {
264
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
265
+ },
251
266
  "migrationVersion": {
252
267
  "type": "integer"
253
268
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-foundry.json",
4
4
  "title": "Util: Foundry",
5
- "version": "1.1.2",
5
+ "version": "1.1.3",
6
6
  "$defs": {
7
7
  "entryDataObject": {
8
8
  "description": "Additional \"5etools-type\" data to be stored on the entry.",
@@ -1612,6 +1612,9 @@
1612
1612
  "img": {
1613
1613
  "type": "string"
1614
1614
  },
1615
+ "advancement": {
1616
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1617
+ },
1615
1618
  "migrationVersion": {
1616
1619
  "type": "integer"
1617
1620
  },
@@ -1663,6 +1666,9 @@
1663
1666
  "img": {
1664
1667
  "type": "string"
1665
1668
  },
1669
+ "advancement": {
1670
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1671
+ },
1666
1672
  "migrationVersion": {
1667
1673
  "type": "integer"
1668
1674
  },
@@ -1732,6 +1738,9 @@
1732
1738
  "img": {
1733
1739
  "type": "string"
1734
1740
  },
1741
+ "advancement": {
1742
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1743
+ },
1735
1744
  "migrationVersion": {
1736
1745
  "type": "integer"
1737
1746
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "foundry-class.json",
4
- "version": "1.5.0",
4
+ "version": "1.5.1",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "class": {
@@ -37,6 +37,9 @@
37
37
  "img": {
38
38
  "type": "string"
39
39
  },
40
+ "advancement": {
41
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
42
+ },
40
43
  "migrationVersion": {
41
44
  "type": "integer"
42
45
  },
@@ -52,9 +55,6 @@
52
55
  "entryData": {
53
56
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
54
57
  },
55
- "advancement": {
56
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
57
- },
58
58
  "chooseSystem": {
59
59
  "type": "array",
60
60
  "items": {
@@ -131,6 +131,9 @@
131
131
  "img": {
132
132
  "type": "string"
133
133
  },
134
+ "advancement": {
135
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
136
+ },
134
137
  "migrationVersion": {
135
138
  "type": "integer"
136
139
  },
@@ -155,9 +158,6 @@
155
158
  "entryData": {
156
159
  "$ref": "../util-foundry.json#/$defs/entryDataObject"
157
160
  },
158
- "advancement": {
159
- "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
160
- },
161
161
  "chooseSystem": {
162
162
  "type": "array",
163
163
  "items": {
@@ -230,6 +230,9 @@
230
230
  "img": {
231
231
  "type": "string"
232
232
  },
233
+ "advancement": {
234
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
235
+ },
233
236
  "migrationVersion": {
234
237
  "type": "integer"
235
238
  },
@@ -328,6 +331,9 @@
328
331
  "img": {
329
332
  "type": "string"
330
333
  },
334
+ "advancement": {
335
+ "$ref": "../util-foundry.json#/$defs/foundryAdvancementsArray"
336
+ },
331
337
  "migrationVersion": {
332
338
  "type": "integer"
333
339
  },
@@ -45,6 +45,9 @@
45
45
  "img": {
46
46
  "type": "string"
47
47
  },
48
+ "advancement": {
49
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
50
+ },
48
51
  "migrationVersion": {
49
52
  "type": "integer"
50
53
  },
@@ -42,6 +42,9 @@
42
42
  "img": {
43
43
  "type": "string"
44
44
  },
45
+ "advancement": {
46
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
47
+ },
45
48
  "migrationVersion": {
46
49
  "type": "integer"
47
50
  },
@@ -48,6 +48,9 @@
48
48
  "img": {
49
49
  "type": "string"
50
50
  },
51
+ "advancement": {
52
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
53
+ },
51
54
  "migrationVersion": {
52
55
  "type": "integer"
53
56
  },
@@ -35,6 +35,9 @@
35
35
  "img": {
36
36
  "type": "string"
37
37
  },
38
+ "advancement": {
39
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
40
+ },
38
41
  "migrationVersion": {
39
42
  "type": "integer"
40
43
  },
@@ -86,6 +89,9 @@
86
89
  "img": {
87
90
  "type": "string"
88
91
  },
92
+ "advancement": {
93
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
94
+ },
89
95
  "migrationVersion": {
90
96
  "type": "integer"
91
97
  },
@@ -138,6 +144,9 @@
138
144
  "img": {
139
145
  "type": "string"
140
146
  },
147
+ "advancement": {
148
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
149
+ },
141
150
  "migrationVersion": {
142
151
  "type": "integer"
143
152
  },
@@ -193,6 +202,9 @@
193
202
  "img": {
194
203
  "type": "string"
195
204
  },
205
+ "advancement": {
206
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
207
+ },
196
208
  "migrationVersion": {
197
209
  "type": "integer"
198
210
  },
@@ -248,6 +260,9 @@
248
260
  "img": {
249
261
  "type": "string"
250
262
  },
263
+ "advancement": {
264
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
265
+ },
251
266
  "migrationVersion": {
252
267
  "type": "integer"
253
268
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-foundry.json",
4
4
  "title": "Util: Foundry",
5
- "version": "1.1.2",
5
+ "version": "1.1.3",
6
6
  "$defs": {
7
7
  "entryDataObject": {
8
8
  "description": "Additional \"5etools-type\" data to be stored on the entry.",
@@ -1612,6 +1612,9 @@
1612
1612
  "img": {
1613
1613
  "type": "string"
1614
1614
  },
1615
+ "advancement": {
1616
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1617
+ },
1615
1618
  "migrationVersion": {
1616
1619
  "type": "integer"
1617
1620
  },
@@ -1663,6 +1666,9 @@
1663
1666
  "img": {
1664
1667
  "type": "string"
1665
1668
  },
1669
+ "advancement": {
1670
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1671
+ },
1666
1672
  "migrationVersion": {
1667
1673
  "type": "integer"
1668
1674
  },
@@ -1732,6 +1738,9 @@
1732
1738
  "img": {
1733
1739
  "type": "string"
1734
1740
  },
1741
+ "advancement": {
1742
+ "$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
1743
+ },
1735
1744
  "migrationVersion": {
1736
1745
  "type": "integer"
1737
1746
  },