optolith-database-schema 0.1.5 → 0.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
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.6](https://github.com/elyukai/optolith-database-schema/compare/v0.1.5...v0.1.6) (2022-03-11)
6
+
5
7
  ### [0.1.5](https://github.com/elyukai/optolith-database-schema/compare/v0.1.4...v0.1.5) (2022-03-10)
6
8
 
7
9
 
@@ -201,113 +201,6 @@ declare type CategoryOption = {
201
201
  * @minItems 1
202
202
  */
203
203
  prerequisites?: OptionOptionPrerequisite[];
204
- } | {
205
- tag: "Skills";
206
- /**
207
- * Only include entries of the specified groups.
208
- * @minItems 1
209
- */
210
- groups?: {
211
- /**
212
- * The skill group's identifier.
213
- * @integer
214
- * @minimum 1
215
- * @maximum 5
216
- */
217
- id: number;
218
- }[];
219
- /**
220
- * Only include (`Intersection`) or exclude (`Difference`) specific skills.
221
- */
222
- specific?: {
223
- operation: {
224
- tag: "Intersection";
225
- } | {
226
- tag: "Difference";
227
- };
228
- /**
229
- * The list of specific skills.
230
- * @minItems 1
231
- * @uniqueItems
232
- */
233
- list: {
234
- /**
235
- * The skill's identifier.
236
- * @integer
237
- * @minimum 1
238
- * @maximum 59
239
- */
240
- id: number;
241
- }[];
242
- };
243
- /**
244
- * Registers new applications, which get enabled once this entry is
245
- * activated with its respective select option. It specifies an entry-unique
246
- * identifier, the skill it belongs to is derived from the select option
247
- * automatically. A translation can be left out if its name equals the name
248
- * of the origin entry.
249
- */
250
- skill_applications?: SkillApplications;
251
- /**
252
- * Registers uses, which get enabled once this entry is activated with its
253
- * respective select option. It specifies an entry-unique identifier, the
254
- * skill it belongs to is derived from the select option automatically. A
255
- * translation can be left out if its name equals the name of the origin
256
- * entry.
257
- */
258
- skill_uses?: SkillUses;
259
- /**
260
- * Generate prerequisites for each entry of the category.
261
- * @minItems 1
262
- */
263
- prerequisites?: ({
264
- tag: "Self";
265
- /**
266
- * The entry requires itself on a certain Skill Rating.
267
- * @integer
268
- * @minimum 1
269
- */
270
- value: number;
271
- } | OptionOptionPrerequisite)[];
272
- /**
273
- * Generate AP values for each entry.
274
- */
275
- ap_value?: {
276
- tag: "DerivedFromImprovementCost";
277
- /**
278
- * This number is multiplied with the improvement cost of the entry
279
- * (A = 1 to D = 4).
280
- * @integer
281
- * @minimum 2
282
- */
283
- multiplier?: number;
284
- } | {
285
- tag: "Fixed";
286
- /**
287
- * A mapping of skill identifiers to their specific AP values.
288
- */
289
- map: {
290
- /**
291
- * The skill's identifier.
292
- * @integer
293
- * @minimum 1
294
- */
295
- skill_id: number;
296
- /**
297
- * The AP value for the specified entry.
298
- * @integer
299
- * @minimum 1
300
- */
301
- ap_value: number;
302
- }[];
303
- /**
304
- * The default value of an entry. Used as a fallback if no value is
305
- * found in `list`.
306
- * @integer
307
- * @minimum 1
308
- */
309
- default: number;
310
- };
311
204
  } | {
312
205
  tag: "Skills";
313
206
  /**
@@ -517,7 +410,7 @@ declare type OptionSkillDeriveAdventurePointsValue = {
517
410
  * @integer
518
411
  * @minimum 1
519
412
  */
520
- skill_id: number;
413
+ id: number;
521
414
  /**
522
415
  * The AP value for the specified entry.
523
416
  * @integer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
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",
@@ -353,201 +353,6 @@
353
353
  ],
354
354
  "additionalProperties": false
355
355
  },
356
- {
357
- "type": "object",
358
- "properties": {
359
- "tag": {
360
- "const": "Skills"
361
- },
362
- "groups": {
363
- "description": "Only include entries of the specified groups.",
364
- "type": "array",
365
- "items": {
366
- "type": "object",
367
- "properties": {
368
- "id": {
369
- "description": "The skill group's identifier.",
370
- "type": "integer",
371
- "maximum": 5,
372
- "minimum": 1
373
- }
374
- },
375
- "required": [
376
- "id"
377
- ],
378
- "additionalProperties": false
379
- },
380
- "minItems": 1
381
- },
382
- "specific": {
383
- "description": "Only include (`Intersection`) or exclude (`Difference`) specific skills.",
384
- "type": "object",
385
- "properties": {
386
- "operation": {
387
- "oneOf": [
388
- {
389
- "type": "object",
390
- "properties": {
391
- "tag": {
392
- "const": "Intersection"
393
- }
394
- },
395
- "required": [
396
- "tag"
397
- ],
398
- "additionalProperties": false
399
- },
400
- {
401
- "type": "object",
402
- "properties": {
403
- "tag": {
404
- "const": "Difference"
405
- }
406
- },
407
- "required": [
408
- "tag"
409
- ],
410
- "additionalProperties": false
411
- }
412
- ]
413
- },
414
- "list": {
415
- "description": "The list of specific skills.",
416
- "type": "array",
417
- "items": {
418
- "type": "object",
419
- "properties": {
420
- "id": {
421
- "description": "The skill's identifier.",
422
- "type": "integer",
423
- "maximum": 59,
424
- "minimum": 1
425
- }
426
- },
427
- "required": [
428
- "id"
429
- ],
430
- "additionalProperties": false
431
- },
432
- "minItems": 1,
433
- "uniqueItems": true
434
- }
435
- },
436
- "required": [
437
- "operation",
438
- "list"
439
- ],
440
- "additionalProperties": false
441
- },
442
- "skill_applications": {
443
- "description": "Registers new applications, which get enabled once this entry is\nactivated with its respective select option. It specifies an entry-unique\nidentifier, the skill it belongs to is derived from the select option\nautomatically. A translation can be left out if its name equals the name\nof the origin entry.",
444
- "$ref": "#/definitions/SkillApplications"
445
- },
446
- "skill_uses": {
447
- "description": "Registers uses, which get enabled once this entry is activated with its\nrespective select option. It specifies an entry-unique identifier, the\nskill it belongs to is derived from the select option automatically. A\ntranslation can be left out if its name equals the name of the origin\nentry.",
448
- "$ref": "#/definitions/SkillUses"
449
- },
450
- "prerequisites": {
451
- "description": "Generate prerequisites for each entry of the category.",
452
- "type": "array",
453
- "items": {
454
- "oneOf": [
455
- {
456
- "type": "object",
457
- "properties": {
458
- "tag": {
459
- "const": "Self"
460
- },
461
- "value": {
462
- "description": "The entry requires itself on a certain Skill Rating.",
463
- "type": "integer",
464
- "minimum": 1
465
- }
466
- },
467
- "required": [
468
- "tag",
469
- "value"
470
- ],
471
- "additionalProperties": false
472
- },
473
- {
474
- "$ref": "#/definitions/OptionOptionPrerequisite"
475
- }
476
- ]
477
- },
478
- "minItems": 1
479
- },
480
- "ap_value": {
481
- "description": "Generate AP values for each entry.",
482
- "oneOf": [
483
- {
484
- "type": "object",
485
- "properties": {
486
- "tag": {
487
- "const": "DerivedFromImprovementCost"
488
- },
489
- "multiplier": {
490
- "description": "This number is multiplied with the improvement cost of the entry\n(A = 1 to D = 4).",
491
- "type": "integer",
492
- "minimum": 2
493
- }
494
- },
495
- "required": [
496
- "tag"
497
- ],
498
- "additionalProperties": false
499
- },
500
- {
501
- "type": "object",
502
- "properties": {
503
- "tag": {
504
- "const": "Fixed"
505
- },
506
- "map": {
507
- "description": "A mapping of skill identifiers to their specific AP values.",
508
- "type": "array",
509
- "items": {
510
- "type": "object",
511
- "properties": {
512
- "skill_id": {
513
- "description": "The skill's identifier.",
514
- "type": "integer",
515
- "minimum": 1
516
- },
517
- "ap_value": {
518
- "description": "The AP value for the specified entry.",
519
- "type": "integer",
520
- "minimum": 1
521
- }
522
- },
523
- "required": [
524
- "skill_id",
525
- "ap_value"
526
- ],
527
- "additionalProperties": false
528
- }
529
- },
530
- "default": {
531
- "description": "The default value of an entry. Used as a fallback if no value is\nfound in `list`.",
532
- "type": "integer",
533
- "minimum": 1
534
- }
535
- },
536
- "required": [
537
- "tag",
538
- "map",
539
- "default"
540
- ],
541
- "additionalProperties": false
542
- }
543
- ]
544
- }
545
- },
546
- "required": [
547
- "tag"
548
- ],
549
- "additionalProperties": false
550
- },
551
356
  {
552
357
  "type": "object",
553
358
  "properties": {
@@ -922,7 +727,7 @@
922
727
  "items": {
923
728
  "type": "object",
924
729
  "properties": {
925
- "skill_id": {
730
+ "id": {
926
731
  "description": "The skill's identifier.",
927
732
  "type": "integer",
928
733
  "minimum": 1
@@ -934,7 +739,7 @@
934
739
  }
935
740
  },
936
741
  "required": [
937
- "skill_id",
742
+ "id",
938
743
  "ap_value"
939
744
  ],
940
745
  "additionalProperties": false