optolith-database-schema 0.2.0 → 0.2.1
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,13 @@
|
|
|
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.2.1](https://github.com/elyukai/optolith-database-schema/compare/v0.2.0...v0.2.1) (2022-03-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* category names and prerequisites should be defined separately ([eb312fe](https://github.com/elyukai/optolith-database-schema/commit/eb312fe2fc9973ef6be36937ebd8af8c8bf30e60))
|
|
11
|
+
|
|
5
12
|
## [0.2.0](https://github.com/elyukai/optolith-database-schema/compare/v0.1.28...v0.2.0) (2022-03-29)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -6,7 +6,7 @@ import { DisplayOption } from "./prerequisites/DisplayOption.js";
|
|
|
6
6
|
import { Errata } from "./source/_Erratum.js";
|
|
7
7
|
import { PublicationRefs } from "./source/_PublicationRef.js";
|
|
8
8
|
import { Duration } from "./_ActivatableSkill.js";
|
|
9
|
-
import { ActivatableIdentifier, AdvancedSpecialAbilityRestrictedOptionIdentifier, CombatRelatedSpecialAbilityIdentifier, CombatTechniqueIdentifier,
|
|
9
|
+
import { ActivatableIdentifier, AdvancedSpecialAbilityRestrictedOptionIdentifier, CombatRelatedSpecialAbilityIdentifier, CombatTechniqueIdentifier, MagicalTraditionIdentifier, PatronIdentifier, SkillIdentifier, VolumePointsOptionReferenceIdentifier } from "./_Identifier.js";
|
|
10
10
|
import { GeneralPrerequisites } from "./_Prerequisite.js";
|
|
11
11
|
/**
|
|
12
12
|
* The activatable entry's identifier. An unique, increasing integer.
|
|
@@ -316,8 +316,13 @@ declare type CategoryOption = {
|
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
}[];
|
|
319
|
+
/**
|
|
320
|
+
* Generate prerequisites for each entry of the category.
|
|
321
|
+
* @minItems 1
|
|
322
|
+
*/
|
|
323
|
+
prerequisites?: (OptionSkillSelfPrerequisite | OptionOptionPrerequisite)[];
|
|
319
324
|
} | {
|
|
320
|
-
tag:
|
|
325
|
+
tag: SkillWithEnhancementsCategory;
|
|
321
326
|
/**
|
|
322
327
|
* Only include (`Intersection`) or exclude (`Difference`) specific
|
|
323
328
|
* entries.
|
|
@@ -343,12 +348,12 @@ declare type CategoryOption = {
|
|
|
343
348
|
id: number;
|
|
344
349
|
}[];
|
|
345
350
|
};
|
|
351
|
+
/**
|
|
352
|
+
* Generate prerequisites for each entry of the category.
|
|
353
|
+
* @minItems 1
|
|
354
|
+
*/
|
|
355
|
+
prerequisites?: (OptionSkillSelfPrerequisite | OptionOptionPrerequisite)[];
|
|
346
356
|
})[];
|
|
347
|
-
/**
|
|
348
|
-
* Generate prerequisites for each entry of the category.
|
|
349
|
-
* @minItems 1
|
|
350
|
-
*/
|
|
351
|
-
prerequisites?: (OptionSkillSelfPrerequisite | OptionOptionPrerequisite)[];
|
|
352
357
|
/**
|
|
353
358
|
* Generate AP values for each entry.
|
|
354
359
|
*/
|
|
@@ -359,7 +364,7 @@ declare type CategoryOption = {
|
|
|
359
364
|
* @minItems 1
|
|
360
365
|
*/
|
|
361
366
|
categories: {
|
|
362
|
-
tag:
|
|
367
|
+
tag: CombatTechniqueCategory;
|
|
363
368
|
/**
|
|
364
369
|
* Only include (`Intersection`) or exclude (`Difference`) specific
|
|
365
370
|
* entries.
|
|
@@ -385,18 +390,28 @@ declare type CategoryOption = {
|
|
|
385
390
|
id: number;
|
|
386
391
|
}[];
|
|
387
392
|
};
|
|
393
|
+
/**
|
|
394
|
+
* Generate prerequisites for each entry of the category.
|
|
395
|
+
* @minItems 1
|
|
396
|
+
*/
|
|
397
|
+
prerequisites?: (OptionSkillSelfPrerequisite | OptionOptionPrerequisite)[];
|
|
388
398
|
}[];
|
|
389
|
-
/**
|
|
390
|
-
* Generate prerequisites for each entry of the category.
|
|
391
|
-
* @minItems 1
|
|
392
|
-
*/
|
|
393
|
-
prerequisites?: (OptionSkillSelfPrerequisite | OptionOptionPrerequisite)[];
|
|
394
399
|
/**
|
|
395
400
|
* Generate AP values for each entry.
|
|
396
401
|
*/
|
|
397
402
|
ap_value?: OptionSkillDeriveAdventurePointsValue<CombatTechniqueIdentifier>;
|
|
398
403
|
};
|
|
399
404
|
};
|
|
405
|
+
declare enum SkillWithEnhancementsCategory {
|
|
406
|
+
spells = "spells",
|
|
407
|
+
Rituals = "Rituals",
|
|
408
|
+
LiturgicalChants = "LiturgicalChants",
|
|
409
|
+
Ceremonies = "Ceremonies"
|
|
410
|
+
}
|
|
411
|
+
declare enum CombatTechniqueCategory {
|
|
412
|
+
CloseCombatTechniques = "CloseCombatTechniques",
|
|
413
|
+
RangedCombatTechniques = "RangedCombatTechniques"
|
|
414
|
+
}
|
|
400
415
|
declare type OptionSkillSelfPrerequisite = {
|
|
401
416
|
tag: "Self";
|
|
402
417
|
/**
|
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
* General type specifications used by multiple activatable entries.
|
|
3
3
|
* @title Activatable
|
|
4
4
|
*/
|
|
5
|
+
var SkillWithEnhancementsCategory;
|
|
6
|
+
(function (SkillWithEnhancementsCategory) {
|
|
7
|
+
SkillWithEnhancementsCategory["spells"] = "spells";
|
|
8
|
+
SkillWithEnhancementsCategory["Rituals"] = "Rituals";
|
|
9
|
+
SkillWithEnhancementsCategory["LiturgicalChants"] = "LiturgicalChants";
|
|
10
|
+
SkillWithEnhancementsCategory["Ceremonies"] = "Ceremonies";
|
|
11
|
+
})(SkillWithEnhancementsCategory || (SkillWithEnhancementsCategory = {}));
|
|
12
|
+
var CombatTechniqueCategory;
|
|
13
|
+
(function (CombatTechniqueCategory) {
|
|
14
|
+
CombatTechniqueCategory["CloseCombatTechniques"] = "CloseCombatTechniques";
|
|
15
|
+
CombatTechniqueCategory["RangedCombatTechniques"] = "RangedCombatTechniques";
|
|
16
|
+
})(CombatTechniqueCategory || (CombatTechniqueCategory = {}));
|
|
5
17
|
export {};
|
|
6
18
|
// "Input": {
|
|
7
19
|
// "description": "A string that is used as a placeholder text for an input field.",
|
|
@@ -124,7 +124,7 @@ declare enum VolumePointsOptionReferenceTag {
|
|
|
124
124
|
General = "General",
|
|
125
125
|
AnimalShapeSize = "AnimalShapeSize"
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
declare enum CombatTechniqueTag {
|
|
128
128
|
CloseCombatTechnique = "CloseCombatTechnique",
|
|
129
129
|
RangedCombatTechnique = "RangedCombatTechnique"
|
|
130
130
|
}
|
|
@@ -138,7 +138,7 @@ declare enum ExtensionRuleTag {
|
|
|
138
138
|
FocusRule = "FocusRule",
|
|
139
139
|
OptionalRule = "OptionalRule"
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
declare enum SkillWithEnhancementsTag {
|
|
142
142
|
Spell = "Spell",
|
|
143
143
|
Ritual = "Ritual",
|
|
144
144
|
LiturgicalChant = "LiturgicalChant",
|
package/lib/types/_Identifier.js
CHANGED
|
@@ -131,7 +131,7 @@ var VolumePointsOptionReferenceTag;
|
|
|
131
131
|
VolumePointsOptionReferenceTag["General"] = "General";
|
|
132
132
|
VolumePointsOptionReferenceTag["AnimalShapeSize"] = "AnimalShapeSize";
|
|
133
133
|
})(VolumePointsOptionReferenceTag || (VolumePointsOptionReferenceTag = {}));
|
|
134
|
-
|
|
134
|
+
var CombatTechniqueTag;
|
|
135
135
|
(function (CombatTechniqueTag) {
|
|
136
136
|
CombatTechniqueTag["CloseCombatTechnique"] = "CloseCombatTechnique";
|
|
137
137
|
CombatTechniqueTag["RangedCombatTechnique"] = "RangedCombatTechnique";
|
|
@@ -149,7 +149,7 @@ var ExtensionRuleTag;
|
|
|
149
149
|
ExtensionRuleTag["FocusRule"] = "FocusRule";
|
|
150
150
|
ExtensionRuleTag["OptionalRule"] = "OptionalRule";
|
|
151
151
|
})(ExtensionRuleTag || (ExtensionRuleTag = {}));
|
|
152
|
-
|
|
152
|
+
var SkillWithEnhancementsTag;
|
|
153
153
|
(function (SkillWithEnhancementsTag) {
|
|
154
154
|
SkillWithEnhancementsTag["Spell"] = "Spell";
|
|
155
155
|
SkillWithEnhancementsTag["Ritual"] = "Ritual";
|
|
@@ -194,3 +194,4 @@ var CoreRuleDerivableContentTag;
|
|
|
194
194
|
CoreRuleDerivableContentTag["MagicalSpecialAbility"] = "MagicalSpecialAbility";
|
|
195
195
|
CoreRuleDerivableContentTag["BlessedTradition"] = "BlessedTradition";
|
|
196
196
|
})(CoreRuleDerivableContentTag || (CoreRuleDerivableContentTag = {}));
|
|
197
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optolith-database-schema",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
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",
|
|
@@ -527,6 +527,21 @@
|
|
|
527
527
|
"additionalProperties": false
|
|
528
528
|
},
|
|
529
529
|
"minItems": 1
|
|
530
|
+
},
|
|
531
|
+
"prerequisites": {
|
|
532
|
+
"description": "Generate prerequisites for each entry of the category.",
|
|
533
|
+
"type": "array",
|
|
534
|
+
"items": {
|
|
535
|
+
"oneOf": [
|
|
536
|
+
{
|
|
537
|
+
"$ref": "#/definitions/OptionSkillSelfPrerequisite"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"$ref": "#/definitions/OptionOptionPrerequisite"
|
|
541
|
+
}
|
|
542
|
+
]
|
|
543
|
+
},
|
|
544
|
+
"minItems": 1
|
|
530
545
|
}
|
|
531
546
|
},
|
|
532
547
|
"required": [
|
|
@@ -538,7 +553,7 @@
|
|
|
538
553
|
"type": "object",
|
|
539
554
|
"properties": {
|
|
540
555
|
"tag": {
|
|
541
|
-
"$ref": "
|
|
556
|
+
"$ref": "#/definitions/SkillWithEnhancementsCategory"
|
|
542
557
|
},
|
|
543
558
|
"specific": {
|
|
544
559
|
"description": "Only include (`Intersection`) or exclude (`Difference`) specific\nentries.",
|
|
@@ -599,6 +614,21 @@
|
|
|
599
614
|
"list"
|
|
600
615
|
],
|
|
601
616
|
"additionalProperties": false
|
|
617
|
+
},
|
|
618
|
+
"prerequisites": {
|
|
619
|
+
"description": "Generate prerequisites for each entry of the category.",
|
|
620
|
+
"type": "array",
|
|
621
|
+
"items": {
|
|
622
|
+
"oneOf": [
|
|
623
|
+
{
|
|
624
|
+
"$ref": "#/definitions/OptionSkillSelfPrerequisite"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"$ref": "#/definitions/OptionOptionPrerequisite"
|
|
628
|
+
}
|
|
629
|
+
]
|
|
630
|
+
},
|
|
631
|
+
"minItems": 1
|
|
602
632
|
}
|
|
603
633
|
},
|
|
604
634
|
"required": [
|
|
@@ -610,21 +640,6 @@
|
|
|
610
640
|
},
|
|
611
641
|
"minItems": 1
|
|
612
642
|
},
|
|
613
|
-
"prerequisites": {
|
|
614
|
-
"description": "Generate prerequisites for each entry of the category.",
|
|
615
|
-
"type": "array",
|
|
616
|
-
"items": {
|
|
617
|
-
"oneOf": [
|
|
618
|
-
{
|
|
619
|
-
"$ref": "#/definitions/OptionSkillSelfPrerequisite"
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"$ref": "#/definitions/OptionOptionPrerequisite"
|
|
623
|
-
}
|
|
624
|
-
]
|
|
625
|
-
},
|
|
626
|
-
"minItems": 1
|
|
627
|
-
},
|
|
628
643
|
"ap_value": {
|
|
629
644
|
"description": "Generate AP values for each entry.",
|
|
630
645
|
"oneOf": [
|
|
@@ -704,7 +719,7 @@
|
|
|
704
719
|
"type": "object",
|
|
705
720
|
"properties": {
|
|
706
721
|
"tag": {
|
|
707
|
-
"$ref": "
|
|
722
|
+
"$ref": "#/definitions/CombatTechniqueCategory"
|
|
708
723
|
},
|
|
709
724
|
"specific": {
|
|
710
725
|
"description": "Only include (`Intersection`) or exclude (`Difference`) specific\nentries.",
|
|
@@ -765,6 +780,21 @@
|
|
|
765
780
|
"list"
|
|
766
781
|
],
|
|
767
782
|
"additionalProperties": false
|
|
783
|
+
},
|
|
784
|
+
"prerequisites": {
|
|
785
|
+
"description": "Generate prerequisites for each entry of the category.",
|
|
786
|
+
"type": "array",
|
|
787
|
+
"items": {
|
|
788
|
+
"oneOf": [
|
|
789
|
+
{
|
|
790
|
+
"$ref": "#/definitions/OptionSkillSelfPrerequisite"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"$ref": "#/definitions/OptionOptionPrerequisite"
|
|
794
|
+
}
|
|
795
|
+
]
|
|
796
|
+
},
|
|
797
|
+
"minItems": 1
|
|
768
798
|
}
|
|
769
799
|
},
|
|
770
800
|
"required": [
|
|
@@ -774,21 +804,6 @@
|
|
|
774
804
|
},
|
|
775
805
|
"minItems": 1
|
|
776
806
|
},
|
|
777
|
-
"prerequisites": {
|
|
778
|
-
"description": "Generate prerequisites for each entry of the category.",
|
|
779
|
-
"type": "array",
|
|
780
|
-
"items": {
|
|
781
|
-
"oneOf": [
|
|
782
|
-
{
|
|
783
|
-
"$ref": "#/definitions/OptionSkillSelfPrerequisite"
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
"$ref": "#/definitions/OptionOptionPrerequisite"
|
|
787
|
-
}
|
|
788
|
-
]
|
|
789
|
-
},
|
|
790
|
-
"minItems": 1
|
|
791
|
-
},
|
|
792
807
|
"ap_value": {
|
|
793
808
|
"description": "Generate AP values for each entry.",
|
|
794
809
|
"oneOf": [
|
|
@@ -870,6 +885,20 @@
|
|
|
870
885
|
}
|
|
871
886
|
]
|
|
872
887
|
},
|
|
888
|
+
"SkillWithEnhancementsCategory": {
|
|
889
|
+
"enum": [
|
|
890
|
+
"spells",
|
|
891
|
+
"Rituals",
|
|
892
|
+
"LiturgicalChants",
|
|
893
|
+
"Ceremonies"
|
|
894
|
+
]
|
|
895
|
+
},
|
|
896
|
+
"CombatTechniqueCategory": {
|
|
897
|
+
"enum": [
|
|
898
|
+
"CloseCombatTechniques",
|
|
899
|
+
"RangedCombatTechniques"
|
|
900
|
+
]
|
|
901
|
+
},
|
|
873
902
|
"OptionSkillSelfPrerequisite": {
|
|
874
903
|
"type": "object",
|
|
875
904
|
"properties": {
|