optolith-database-schema 0.1.17 → 0.1.18
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/CHANGELOG.md +13 -0
- package/lib/types/magicalActions/AnimistPower.d.ts +60 -0
- package/lib/types/prerequisites/single/RacePrerequisite.d.ts +1 -1
- package/package.json +1 -1
- package/schema/magicalActions/AnimistPower.schema.json +75 -0
- package/schema/prerequisites/single/RacePrerequisite.schema.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.18](https://github.com/elyukai/optolith-database-schema/compare/v0.1.17...v0.1.18) (2022-03-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* animist powers can have prerequisites ([3fa06f4](https://github.com/elyukai/optolith-database-schema/commit/3fa06f41cbf84a0fbe54d51b5c2adb78d8c74129))
|
|
11
|
+
* derived animist power costs can have notes ([3ca4f3e](https://github.com/elyukai/optolith-database-schema/commit/3ca4f3edb30847fdf1878a8ed56943930be30d9d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* wrong discriminator for race prerequisite ([dea373f](https://github.com/elyukai/optolith-database-schema/commit/dea373f141a1a64f95dc8f33a3ecbfb0f7d51993))
|
|
17
|
+
|
|
5
18
|
### [0.1.17](https://github.com/elyukai/optolith-database-schema/compare/v0.1.16...v0.1.17) (2022-03-21)
|
|
6
19
|
|
|
7
20
|
|
|
@@ -5,6 +5,7 @@ import { Errata } from "../source/_Erratum.js";
|
|
|
5
5
|
import { PublicationRefs } from "../source/_PublicationRef.js";
|
|
6
6
|
import { Duration, Effect } from "../_ActivatableSkill.js";
|
|
7
7
|
import { ImprovementCost } from "../_ImprovementCost.js";
|
|
8
|
+
import { AnimistPowerPrerequisites } from "../_Prerequisite.js";
|
|
8
9
|
import { SkillCheck } from "../_SkillCheck.js";
|
|
9
10
|
/**
|
|
10
11
|
* @title Animist Power
|
|
@@ -63,6 +64,7 @@ export declare type AnimistPower = {
|
|
|
63
64
|
} | {
|
|
64
65
|
tag: "ByPrimaryPatron";
|
|
65
66
|
};
|
|
67
|
+
prerequisites?: AnimistPowerPrerequisites;
|
|
66
68
|
/**
|
|
67
69
|
* The animist power can have multiple levels. Each level is skilled
|
|
68
70
|
* separately. A previous level must be on at least 10 so that the next higher
|
|
@@ -180,6 +182,35 @@ declare type PerformanceParameters = {
|
|
|
180
182
|
* interval.
|
|
181
183
|
*/
|
|
182
184
|
interval?: Duration.UnitValue;
|
|
185
|
+
/**
|
|
186
|
+
* All translations for the entry, identified by IETF language tag
|
|
187
|
+
* (BCP47).
|
|
188
|
+
* @minProperties 1
|
|
189
|
+
*/
|
|
190
|
+
translations?: {
|
|
191
|
+
/**
|
|
192
|
+
* @patternProperties ^[a-z]{2}-[A-Z]{2}$
|
|
193
|
+
* @minProperties 1
|
|
194
|
+
*/
|
|
195
|
+
[localeId: string]: {
|
|
196
|
+
/**
|
|
197
|
+
* A note, appended to the generated string in parenthesis.
|
|
198
|
+
*/
|
|
199
|
+
note?: {
|
|
200
|
+
/**
|
|
201
|
+
* The full note.
|
|
202
|
+
* @minLength 1
|
|
203
|
+
*/
|
|
204
|
+
default: string;
|
|
205
|
+
/**
|
|
206
|
+
* A compressed note, if applicable. If not specified it should not
|
|
207
|
+
* be displayed in small location.
|
|
208
|
+
* @minLength 1
|
|
209
|
+
*/
|
|
210
|
+
compressed?: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
183
214
|
};
|
|
184
215
|
/**
|
|
185
216
|
* The duration.
|
|
@@ -227,6 +258,35 @@ declare type PerformanceParameters = {
|
|
|
227
258
|
* Half of the AE cost `value` has to be paid each interval.
|
|
228
259
|
*/
|
|
229
260
|
interval: Duration.UnitValue;
|
|
261
|
+
/**
|
|
262
|
+
* All translations for the entry, identified by IETF language tag
|
|
263
|
+
* (BCP47).
|
|
264
|
+
* @minProperties 1
|
|
265
|
+
*/
|
|
266
|
+
translations?: {
|
|
267
|
+
/**
|
|
268
|
+
* @patternProperties ^[a-z]{2}-[A-Z]{2}$
|
|
269
|
+
* @minProperties 1
|
|
270
|
+
*/
|
|
271
|
+
[localeId: string]: {
|
|
272
|
+
/**
|
|
273
|
+
* A note, appended to the generated string in parenthesis.
|
|
274
|
+
*/
|
|
275
|
+
note?: {
|
|
276
|
+
/**
|
|
277
|
+
* The full note.
|
|
278
|
+
* @minLength 1
|
|
279
|
+
*/
|
|
280
|
+
default: string;
|
|
281
|
+
/**
|
|
282
|
+
* A compressed note, if applicable. If not specified it should not
|
|
283
|
+
* be displayed in small location.
|
|
284
|
+
* @minLength 1
|
|
285
|
+
*/
|
|
286
|
+
compressed?: string;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
230
290
|
};
|
|
231
291
|
};
|
|
232
292
|
export declare const validateSchema: import("../../validation/schema.js").TypeValidator<AnimistPower>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optolith-database-schema",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Definitions and utilities for the flat-file database of Optolith, a character creation tool for the Pen and Paper RPG “The Dark Eye 5”, and its external integrations into other software.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tde",
|
|
@@ -109,6 +109,9 @@
|
|
|
109
109
|
}
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
|
+
"prerequisites": {
|
|
113
|
+
"$ref": "../_Prerequisite.schema.json#/definitions/AnimistPowerPrerequisites"
|
|
114
|
+
},
|
|
112
115
|
"levels": {
|
|
113
116
|
"description": "The animist power can have multiple levels. Each level is skilled\nseparately. A previous level must be on at least 10 so that the next higher\nlevel can be activated and skilled. A higher level cannot be skilled higher\nthan a lower level. Each level also adds an effect text to the text of the\nfirst level.",
|
|
114
117
|
"type": "array",
|
|
@@ -287,6 +290,42 @@
|
|
|
287
290
|
"interval": {
|
|
288
291
|
"description": "If defined, half of the AE cost `value` has to be paid each\ninterval.",
|
|
289
292
|
"$ref": "../_ActivatableSkill.schema.json#/definitions/Duration/UnitValue"
|
|
293
|
+
},
|
|
294
|
+
"translations": {
|
|
295
|
+
"description": "All translations for the entry, identified by IETF language tag\n(BCP47).",
|
|
296
|
+
"type": "object",
|
|
297
|
+
"patternProperties": {
|
|
298
|
+
"^[a-z]{2}-[A-Z]{2}$": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"properties": {
|
|
301
|
+
"note": {
|
|
302
|
+
"description": "A note, appended to the generated string in parenthesis.",
|
|
303
|
+
"type": "object",
|
|
304
|
+
"properties": {
|
|
305
|
+
"default": {
|
|
306
|
+
"description": "The full note.",
|
|
307
|
+
"type": "string",
|
|
308
|
+
"minLength": 1
|
|
309
|
+
},
|
|
310
|
+
"compressed": {
|
|
311
|
+
"description": "A compressed note, if applicable. If not specified it should not\nbe displayed in small location.",
|
|
312
|
+
"type": "string",
|
|
313
|
+
"minLength": 1
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"required": [
|
|
317
|
+
"default"
|
|
318
|
+
],
|
|
319
|
+
"additionalProperties": false
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"required": [],
|
|
323
|
+
"minProperties": 1,
|
|
324
|
+
"additionalProperties": false
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"minProperties": 1,
|
|
328
|
+
"additionalProperties": false
|
|
290
329
|
}
|
|
291
330
|
},
|
|
292
331
|
"required": [
|
|
@@ -392,6 +431,42 @@
|
|
|
392
431
|
"interval": {
|
|
393
432
|
"description": "Half of the AE cost `value` has to be paid each interval.",
|
|
394
433
|
"$ref": "../_ActivatableSkill.schema.json#/definitions/Duration/UnitValue"
|
|
434
|
+
},
|
|
435
|
+
"translations": {
|
|
436
|
+
"description": "All translations for the entry, identified by IETF language tag\n(BCP47).",
|
|
437
|
+
"type": "object",
|
|
438
|
+
"patternProperties": {
|
|
439
|
+
"^[a-z]{2}-[A-Z]{2}$": {
|
|
440
|
+
"type": "object",
|
|
441
|
+
"properties": {
|
|
442
|
+
"note": {
|
|
443
|
+
"description": "A note, appended to the generated string in parenthesis.",
|
|
444
|
+
"type": "object",
|
|
445
|
+
"properties": {
|
|
446
|
+
"default": {
|
|
447
|
+
"description": "The full note.",
|
|
448
|
+
"type": "string",
|
|
449
|
+
"minLength": 1
|
|
450
|
+
},
|
|
451
|
+
"compressed": {
|
|
452
|
+
"description": "A compressed note, if applicable. If not specified it should not\nbe displayed in small location.",
|
|
453
|
+
"type": "string",
|
|
454
|
+
"minLength": 1
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"required": [
|
|
458
|
+
"default"
|
|
459
|
+
],
|
|
460
|
+
"additionalProperties": false
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"required": [],
|
|
464
|
+
"minProperties": 1,
|
|
465
|
+
"additionalProperties": false
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"minProperties": 1,
|
|
469
|
+
"additionalProperties": false
|
|
395
470
|
}
|
|
396
471
|
},
|
|
397
472
|
"required": [
|