optolith-database-schema 0.3.0 → 0.4.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.
- package/CHANGELOG.md +14 -0
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/types/Blessing.d.ts +3 -0
- package/lib/types/Cantrip.d.ts +3 -0
- package/lib/types/Culture.d.ts +18 -22
- package/lib/types/Culture.js +38 -0
- package/lib/types/Lessons_Curriculum.d.ts +4 -0
- package/lib/types/Patron.d.ts +12 -18
- package/lib/types/Patron.js +20 -0
- package/lib/types/Profession.d.ts +8 -11
- package/lib/types/Profession.js +6 -0
- package/lib/types/Race.d.ts +5 -7
- package/lib/types/Race.js +11 -0
- package/lib/types/Service.d.ts +4 -5
- package/lib/types/Service.js +5 -0
- package/lib/types/Skill.d.ts +10 -14
- package/lib/types/Skill.js +19 -0
- package/lib/types/Talisman.d.ts +7 -11
- package/lib/types/Talisman.js +8 -0
- package/lib/types/_Activatable.d.ts +41 -25
- package/lib/types/_Activatable.js +44 -1
- package/lib/types/_ActivatableSelectOptionCategory.d.ts +21 -18
- package/lib/types/_ActivatableSelectOptionCategory.js +8 -1
- package/lib/types/_ActivatableSkillCheckResultBased.d.ts +8 -10
- package/lib/types/_ActivatableSkillCheckResultBased.js +16 -1
- package/lib/types/_ActivatableSkillRange.d.ts +8 -4
- package/lib/types/_ActivatableSkillTargetCategory.d.ts +4 -0
- package/lib/types/_DiseasePoison.d.ts +5 -7
- package/lib/types/_DiseasePoison.js +11 -1
- package/lib/types/_Sex.d.ts +4 -5
- package/lib/types/_Sex.js +8 -1
- package/lib/types/_SkillCheck.d.ts +6 -9
- package/lib/types/_SkillCheck.js +11 -1
- package/lib/types/_Spellwork.d.ts +1 -0
- package/lib/types/equipment/item/Armor.d.ts +4 -4
- package/lib/types/equipment/item/BandageOrRemedy.d.ts +33 -3
- package/lib/types/equipment/item/CeremonialItem.d.ts +38 -3
- package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +1 -14
- package/lib/types/equipment/item/IlluminationLightSource.d.ts +62 -0
- package/lib/types/equipment/item/IlluminationLightSource.js +9 -0
- package/lib/types/equipment/item/{HealingHerb.d.ts → IlluminationRefillsOrSupplies.d.ts} +2 -2
- package/lib/types/equipment/item/{HealingHerb.js → IlluminationRefillsOrSupplies.js} +1 -1
- package/lib/types/equipment/item/LuxuryGood.d.ts +33 -3
- package/lib/types/equipment/item/MusicalInstrument.d.ts +3 -8
- package/lib/types/equipment/item/Poison.d.ts +11 -9
- package/lib/types/equipment/item/Poison.js +7 -0
- package/lib/types/equipment/item/ToolOfTheTrade.d.ts +1 -1
- package/lib/types/equipment/item/Weapon.d.ts +1 -1
- package/lib/types/equipment/item/_Item.d.ts +9 -3
- package/lib/types/equipment/item/_MeleeWeapon.d.ts +2 -0
- package/lib/types/equipment/item/_RangedWeapon.d.ts +2 -0
- package/lib/types/magicalActions/AnimistPower.d.ts +2 -0
- package/lib/types/magicalActions/Curse.d.ts +1 -0
- package/lib/types/magicalActions/GeodeRitual.d.ts +2 -0
- package/lib/types/magicalActions/JesterTrick.d.ts +3 -0
- package/lib/types/magicalActions/_MusicTradition.d.ts +8 -10
- package/lib/types/magicalActions/_MusicTradition.js +10 -1
- package/lib/types/prerequisites/DisplayOption.d.ts +1 -0
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +1 -0
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +4 -5
- package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +5 -1
- package/lib/types/prerequisites/single/TextPrerequisite.d.ts +4 -5
- package/lib/types/prerequisites/single/TextPrerequisite.js +5 -1
- package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +8 -10
- package/lib/types/prerequisites/single/TraditionPrerequisite.js +18 -1
- package/lib/types/rule/CoreRule.d.ts +63 -5
- package/lib/types/rule/CoreRule.js +5 -0
- package/lib/types/rule/_Rule.d.ts +1 -0
- package/lib/types/source/Publication.d.ts +6 -9
- package/lib/types/source/Publication.js +10 -0
- package/lib/types/source/_PublicationRef.d.ts +2 -0
- package/lib/types/specialAbility/BlessedTradition.d.ts +3 -0
- package/lib/types/specialAbility/PactGift.d.ts +8 -10
- package/lib/types/specialAbility/PactGift.js +10 -0
- package/package.json +2 -2
- package/schema/Blessing.schema.json +24 -3
- package/schema/Cantrip.schema.json +24 -3
- package/schema/Culture.schema.json +21 -113
- package/schema/Lessons_Curriculum.schema.json +32 -4
- package/schema/Patron.schema.json +10 -98
- package/schema/Profession.schema.json +70 -47
- package/schema/Race.schema.json +4 -37
- package/schema/Service.schema.json +3 -25
- package/schema/Skill.schema.json +8 -74
- package/schema/Talisman.schema.json +6 -61
- package/schema/_Activatable.schema.json +183 -146
- package/schema/_ActivatableSelectOptionCategory.schema.json +97 -49
- package/schema/_ActivatableSkillCheckResultBased.schema.json +6 -50
- package/schema/_ActivatableSkillRange.schema.json +24 -4
- package/schema/_ActivatableSkillTargetCategory.schema.json +32 -4
- package/schema/_DiseasePoison.schema.json +4 -37
- package/schema/_Sex.schema.json +3 -25
- package/schema/_SkillCheck.schema.json +5 -49
- package/schema/_Spellwork.schema.json +8 -1
- package/schema/equipment/item/Armor.schema.json +26 -5
- package/schema/equipment/item/BandageOrRemedy.schema.json +44 -1
- package/schema/equipment/item/CeremonialItem.schema.json +50 -1
- package/schema/equipment/item/EquipmentOfBlessedOnes.schema.json +0 -13
- package/schema/equipment/item/IlluminationLightSource.schema.json +122 -0
- package/schema/equipment/item/IlluminationRefillsOrSupplies.schema.json +10 -0
- package/schema/equipment/item/LuxuryGood.schema.json +44 -1
- package/schema/equipment/item/MusicalInstrument.schema.json +4 -9
- package/schema/equipment/item/Poison.schema.json +45 -54
- package/schema/equipment/item/ToolOfTheTrade.schema.json +0 -1
- package/schema/equipment/item/Weapon.schema.json +1 -1
- package/schema/equipment/item/_Item.schema.json +52 -10
- package/schema/equipment/item/_MeleeWeapon.schema.json +16 -2
- package/schema/equipment/item/_RangedWeapon.schema.json +16 -2
- package/schema/magicalActions/AnimistPower.schema.json +16 -2
- package/schema/magicalActions/Curse.schema.json +8 -1
- package/schema/magicalActions/GeodeRitual.schema.json +16 -2
- package/schema/magicalActions/JesterTrick.schema.json +24 -3
- package/schema/magicalActions/_MusicTradition.schema.json +6 -50
- package/schema/prerequisites/DisplayOption.schema.json +8 -1
- package/schema/prerequisites/PrerequisiteGroups.schema.json +8 -1
- package/schema/prerequisites/single/PrimaryAttributePrerequisite.schema.json +3 -25
- package/schema/prerequisites/single/TextPrerequisite.schema.json +3 -25
- package/schema/prerequisites/single/TraditionPrerequisite.schema.json +6 -50
- package/schema/rule/CoreRule.schema.json +475 -84
- package/schema/rule/_Rule.schema.json +8 -1
- package/schema/source/Publication.schema.json +5 -49
- package/schema/source/_PublicationRef.schema.json +16 -2
- package/schema/specialAbility/BlessedTradition.schema.json +24 -3
- package/schema/specialAbility/PactGift.schema.json +6 -50
- package/lib/types/equipment/item/Illumination.d.ts +0 -6
- package/lib/types/equipment/item/Illumination.js +0 -5
- package/schema/equipment/item/HealingHerb.schema.json +0 -10
- package/schema/equipment/item/Illumination.schema.json +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.4.0](https://github.com/elyukai/optolith-database-schema/compare/v0.3.0...v0.4.0) (2022-08-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* streamline enums with and without associated values
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* adjust equipment item schemes based on example files ([a7344f2](https://github.com/elyukai/optolith-database-schema/commit/a7344f2faa8a414ca62586b884e7eb5892645fef))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
* streamline enums with and without associated values ([a4685e3](https://github.com/elyukai/optolith-database-schema/commit/a4685e34999ada051117834fc17d19b41f5f3304))
|
|
18
|
+
|
|
5
19
|
## [0.3.0](https://github.com/elyukai/optolith-database-schema/compare/v0.2.4...v0.3.0) (2022-07-23)
|
|
6
20
|
|
|
7
21
|
|
package/lib/config.d.ts
CHANGED
|
@@ -30,8 +30,8 @@ import * as Clothes from "./types/equipment/item/Clothes.js";
|
|
|
30
30
|
import * as Container from "./types/equipment/item/Container.js";
|
|
31
31
|
import * as EquipmentOfBlessedOnes from "./types/equipment/item/EquipmentOfBlessedOnes.js";
|
|
32
32
|
import * as GemOrPreciousStone from "./types/equipment/item/GemOrPreciousStone.js";
|
|
33
|
-
import * as
|
|
34
|
-
import * as
|
|
33
|
+
import * as IlluminationLightSource from "./types/equipment/item/IlluminationLightSource.js";
|
|
34
|
+
import * as IlluminationRefillsOrSupplies from "./types/equipment/item/IlluminationRefillsOrSupplies.js";
|
|
35
35
|
import * as Jewelry from "./types/equipment/item/Jewelry.js";
|
|
36
36
|
import * as Liebesspielzeug from "./types/equipment/item/Liebesspielzeug.js";
|
|
37
37
|
import * as LuxuryGood from "./types/equipment/item/LuxuryGood.js";
|
|
@@ -222,8 +222,8 @@ export declare type TypeMap = {
|
|
|
222
222
|
generalSpecialAbilities: GeneralSpecialAbility.GeneralSpecialAbility;
|
|
223
223
|
geodeRituals: GeodeRitual.GeodeRitual;
|
|
224
224
|
hairColors: HairColor.HairColor;
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
illuminationLightSources: IlluminationLightSource.IlluminationLightSource;
|
|
226
|
+
illuminationRefillsAndSupplies: IlluminationRefillsOrSupplies.IlluminationRefillsOrSupplies;
|
|
227
227
|
instrumentEnchantments: InstrumentEnchantment.InstrumentEnchantment;
|
|
228
228
|
jesterTricks: JesterTrick.JesterTrick;
|
|
229
229
|
jewelry: Jewelry.Jewelry;
|
package/lib/config.js
CHANGED
|
@@ -30,8 +30,8 @@ import * as Clothes from "./types/equipment/item/Clothes.js";
|
|
|
30
30
|
import * as Container from "./types/equipment/item/Container.js";
|
|
31
31
|
import * as EquipmentOfBlessedOnes from "./types/equipment/item/EquipmentOfBlessedOnes.js";
|
|
32
32
|
import * as GemOrPreciousStone from "./types/equipment/item/GemOrPreciousStone.js";
|
|
33
|
-
import * as
|
|
34
|
-
import * as
|
|
33
|
+
import * as IlluminationLightSource from "./types/equipment/item/IlluminationLightSource.js";
|
|
34
|
+
import * as IlluminationRefillsOrSupplies from "./types/equipment/item/IlluminationRefillsOrSupplies.js";
|
|
35
35
|
import * as Jewelry from "./types/equipment/item/Jewelry.js";
|
|
36
36
|
import * as Liebesspielzeug from "./types/equipment/item/Liebesspielzeug.js";
|
|
37
37
|
import * as LuxuryGood from "./types/equipment/item/LuxuryGood.js";
|
|
@@ -221,8 +221,8 @@ export const typeValidatorMap = {
|
|
|
221
221
|
generalSpecialAbilities: GeneralSpecialAbility.validateSchema,
|
|
222
222
|
geodeRituals: GeodeRitual.validateSchema,
|
|
223
223
|
hairColors: HairColor.validateSchema,
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
illuminationLightSources: IlluminationLightSource.validateSchema,
|
|
225
|
+
illuminationRefillsAndSupplies: IlluminationRefillsOrSupplies.validateSchema,
|
|
226
226
|
instrumentEnchantments: InstrumentEnchantment.validateSchema,
|
|
227
227
|
jesterTricks: JesterTrick.validateSchema,
|
|
228
228
|
jewelry: Jewelry.validateSchema,
|
package/lib/types/Blessing.d.ts
CHANGED
|
@@ -66,14 +66,17 @@ export declare type BlessingPerformanceParameters = {
|
|
|
66
66
|
};
|
|
67
67
|
export declare type BlessingRange = {
|
|
68
68
|
tag: "Self";
|
|
69
|
+
self: {};
|
|
69
70
|
} | {
|
|
70
71
|
tag: "Touch";
|
|
72
|
+
touch: {};
|
|
71
73
|
} | {
|
|
72
74
|
tag: "Fixed";
|
|
73
75
|
fixed: FixedRange;
|
|
74
76
|
};
|
|
75
77
|
export declare type BlessingDuration = {
|
|
76
78
|
tag: "Immediate";
|
|
79
|
+
immediate: {};
|
|
77
80
|
} | {
|
|
78
81
|
tag: "Fixed";
|
|
79
82
|
fixed: FixedBlessingDuration;
|
package/lib/types/Cantrip.d.ts
CHANGED
|
@@ -131,14 +131,17 @@ export declare type CantripPerformanceParameters = {
|
|
|
131
131
|
};
|
|
132
132
|
export declare type CantripRange = {
|
|
133
133
|
tag: "Self";
|
|
134
|
+
self: {};
|
|
134
135
|
} | {
|
|
135
136
|
tag: "Touch";
|
|
137
|
+
touch: {};
|
|
136
138
|
} | {
|
|
137
139
|
tag: "Fixed";
|
|
138
140
|
fixed: FixedRange;
|
|
139
141
|
};
|
|
140
142
|
export declare type CantripDuration = {
|
|
141
143
|
tag: "Immediate";
|
|
144
|
+
immediate: {};
|
|
142
145
|
} | {
|
|
143
146
|
tag: "Fixed";
|
|
144
147
|
fixed: FixedCantripDuration;
|
package/lib/types/Culture.d.ts
CHANGED
|
@@ -101,11 +101,10 @@ export declare type AreaKnowledge = {
|
|
|
101
101
|
* Some professions or profession variants are simply more common (Mostly), but
|
|
102
102
|
* sometimes only specific elements are used (Only).
|
|
103
103
|
*/
|
|
104
|
-
export declare
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
};
|
|
104
|
+
export declare enum Weight {
|
|
105
|
+
Mostly = "Mostly",
|
|
106
|
+
Only = "Only"
|
|
107
|
+
}
|
|
109
108
|
/**
|
|
110
109
|
* Some professions or profession variants are more common than others. There
|
|
111
110
|
* may be cultures where some professions or profession variants are not
|
|
@@ -130,11 +129,10 @@ export declare type Weighted<ProfessionOrVariant> = {
|
|
|
130
129
|
* that intersect with the constraints (include) or only the professions
|
|
131
130
|
* are kept that are different from the constraints (exclude).
|
|
132
131
|
*/
|
|
133
|
-
export declare
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
};
|
|
132
|
+
export declare enum CommonProfessionConstraintsOperation {
|
|
133
|
+
Intersection = "Intersection",
|
|
134
|
+
Difference = "Difference"
|
|
135
|
+
}
|
|
138
136
|
/**
|
|
139
137
|
* A list of professions. The filter specifies how the list is applied to
|
|
140
138
|
* all mundane professions.
|
|
@@ -156,11 +154,10 @@ export declare type CommonProfessionConstraints<Constraint> = {
|
|
|
156
154
|
/**
|
|
157
155
|
* Some professions may be found in a culture, but are not that common.
|
|
158
156
|
*/
|
|
159
|
-
export declare
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
};
|
|
157
|
+
export declare enum Rarity {
|
|
158
|
+
Rare = "Rare",
|
|
159
|
+
VeryRare = "VeryRare"
|
|
160
|
+
}
|
|
164
161
|
export declare type ProfessionConstraint = {
|
|
165
162
|
/**
|
|
166
163
|
* The profession's identifier.
|
|
@@ -182,13 +179,11 @@ export declare type ProfessionConstraint = {
|
|
|
182
179
|
/**
|
|
183
180
|
* Some professions may be found in a culture, but are not that common.
|
|
184
181
|
*/
|
|
185
|
-
export declare
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
tag: "Religious";
|
|
191
|
-
};
|
|
182
|
+
export declare enum MundaneProfessionSubgroupConstraint {
|
|
183
|
+
Profane = "Profane",
|
|
184
|
+
Fighter = "Fighter",
|
|
185
|
+
Religious = "Religious"
|
|
186
|
+
}
|
|
192
187
|
export declare type TraditionConstraint = {
|
|
193
188
|
/**
|
|
194
189
|
* The magical tradition's identifier.
|
|
@@ -218,6 +213,7 @@ export declare type MagicCommonProfessionConstraint = {
|
|
|
218
213
|
tradition: TraditionConstraint;
|
|
219
214
|
} | {
|
|
220
215
|
tag: "MagicDilettante";
|
|
216
|
+
magic_dilettante: {};
|
|
221
217
|
} | {
|
|
222
218
|
tag: "Profession";
|
|
223
219
|
profession: ProfessionConstraint;
|
package/lib/types/Culture.js
CHANGED
|
@@ -2,4 +2,42 @@
|
|
|
2
2
|
* @main Culture
|
|
3
3
|
*/
|
|
4
4
|
import { validateSchemaCreator } from "../validation/schema.js";
|
|
5
|
+
/**
|
|
6
|
+
* The "weight" difference compared to other professions or profession variants.
|
|
7
|
+
* Some professions or profession variants are simply more common (Mostly), but
|
|
8
|
+
* sometimes only specific elements are used (Only).
|
|
9
|
+
*/
|
|
10
|
+
export var Weight;
|
|
11
|
+
(function (Weight) {
|
|
12
|
+
Weight["Mostly"] = "Mostly";
|
|
13
|
+
Weight["Only"] = "Only";
|
|
14
|
+
})(Weight || (Weight = {}));
|
|
15
|
+
/**
|
|
16
|
+
* This defines how the list of constraints should be offset against the
|
|
17
|
+
* list of all mundane professions: Either only the professions are kept
|
|
18
|
+
* that intersect with the constraints (include) or only the professions
|
|
19
|
+
* are kept that are different from the constraints (exclude).
|
|
20
|
+
*/
|
|
21
|
+
export var CommonProfessionConstraintsOperation;
|
|
22
|
+
(function (CommonProfessionConstraintsOperation) {
|
|
23
|
+
CommonProfessionConstraintsOperation["Intersection"] = "Intersection";
|
|
24
|
+
CommonProfessionConstraintsOperation["Difference"] = "Difference";
|
|
25
|
+
})(CommonProfessionConstraintsOperation || (CommonProfessionConstraintsOperation = {}));
|
|
26
|
+
/**
|
|
27
|
+
* Some professions may be found in a culture, but are not that common.
|
|
28
|
+
*/
|
|
29
|
+
export var Rarity;
|
|
30
|
+
(function (Rarity) {
|
|
31
|
+
Rarity["Rare"] = "Rare";
|
|
32
|
+
Rarity["VeryRare"] = "VeryRare";
|
|
33
|
+
})(Rarity || (Rarity = {}));
|
|
34
|
+
/**
|
|
35
|
+
* Some professions may be found in a culture, but are not that common.
|
|
36
|
+
*/
|
|
37
|
+
export var MundaneProfessionSubgroupConstraint;
|
|
38
|
+
(function (MundaneProfessionSubgroupConstraint) {
|
|
39
|
+
MundaneProfessionSubgroupConstraint["Profane"] = "Profane";
|
|
40
|
+
MundaneProfessionSubgroupConstraint["Fighter"] = "Fighter";
|
|
41
|
+
MundaneProfessionSubgroupConstraint["Religious"] = "Religious";
|
|
42
|
+
})(MundaneProfessionSubgroupConstraint || (MundaneProfessionSubgroupConstraint = {}));
|
|
5
43
|
export const validateSchema = validateSchemaCreator(import.meta.url);
|
|
@@ -54,6 +54,7 @@ export declare type CurriculumTranslation = {
|
|
|
54
54
|
*/
|
|
55
55
|
declare type ElectiveSpellworks = {
|
|
56
56
|
tag: "DefinedByGameMaster";
|
|
57
|
+
defined_by_game_master: {};
|
|
57
58
|
} | {
|
|
58
59
|
tag: "Specific";
|
|
59
60
|
specific: SpecificElectiveSpellworks;
|
|
@@ -106,10 +107,13 @@ export declare type RestrictedSpellwork = {
|
|
|
106
107
|
spellwork: SpellworkIdentifier;
|
|
107
108
|
} | {
|
|
108
109
|
tag: "DemonSummoning";
|
|
110
|
+
demon_summoning: {};
|
|
109
111
|
} | {
|
|
110
112
|
tag: "Borbaradian";
|
|
113
|
+
borbaradian: {};
|
|
111
114
|
} | {
|
|
112
115
|
tag: "DamageIntelligent";
|
|
116
|
+
damage_intelligent: {};
|
|
113
117
|
};
|
|
114
118
|
export declare type RestrictedProperty = {
|
|
115
119
|
/**
|
package/lib/types/Patron.d.ts
CHANGED
|
@@ -80,11 +80,10 @@ export declare type PatronCulture = {
|
|
|
80
80
|
* only part of the given cultures. If they should differ, the patron is only
|
|
81
81
|
* part of the cultures that are not given.
|
|
82
82
|
*/
|
|
83
|
-
export declare
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
};
|
|
83
|
+
export declare enum PatronCultureOperation {
|
|
84
|
+
Intersection = "Intersection",
|
|
85
|
+
Difference = "Difference"
|
|
86
|
+
}
|
|
88
87
|
export declare type AdvantageAnimalPower = {
|
|
89
88
|
/**
|
|
90
89
|
* The advantage's identifier.
|
|
@@ -142,19 +141,14 @@ export declare type CombatAnimalPower = {
|
|
|
142
141
|
*/
|
|
143
142
|
value: number;
|
|
144
143
|
};
|
|
145
|
-
export declare
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
} | {
|
|
154
|
-
tag: "DamagePoints";
|
|
155
|
-
} | {
|
|
156
|
-
tag: "Protection";
|
|
157
|
-
};
|
|
144
|
+
export declare enum CombatAnimalPowerType {
|
|
145
|
+
Attack = "Attack",
|
|
146
|
+
Parry = "Parry",
|
|
147
|
+
RangedCombat = "RangedCombat",
|
|
148
|
+
Dodge = "Dodge",
|
|
149
|
+
DamagePoints = "DamagePoints",
|
|
150
|
+
Protection = "Protection"
|
|
151
|
+
}
|
|
158
152
|
export declare type AnimalPowerLevel2 = {
|
|
159
153
|
tag: "Combat";
|
|
160
154
|
combat: CombatAnimalPower;
|
package/lib/types/Patron.js
CHANGED
|
@@ -2,4 +2,24 @@
|
|
|
2
2
|
* @main Patron
|
|
3
3
|
*/
|
|
4
4
|
import { validateSchemaCreator } from "../validation/schema.js";
|
|
5
|
+
/**
|
|
6
|
+
* The set operation to combine the set of all patron cultures with the
|
|
7
|
+
* specified set of patron cultures: If they should intersect, the patron is
|
|
8
|
+
* only part of the given cultures. If they should differ, the patron is only
|
|
9
|
+
* part of the cultures that are not given.
|
|
10
|
+
*/
|
|
11
|
+
export var PatronCultureOperation;
|
|
12
|
+
(function (PatronCultureOperation) {
|
|
13
|
+
PatronCultureOperation["Intersection"] = "Intersection";
|
|
14
|
+
PatronCultureOperation["Difference"] = "Difference";
|
|
15
|
+
})(PatronCultureOperation || (PatronCultureOperation = {}));
|
|
16
|
+
export var CombatAnimalPowerType;
|
|
17
|
+
(function (CombatAnimalPowerType) {
|
|
18
|
+
CombatAnimalPowerType["Attack"] = "Attack";
|
|
19
|
+
CombatAnimalPowerType["Parry"] = "Parry";
|
|
20
|
+
CombatAnimalPowerType["RangedCombat"] = "RangedCombat";
|
|
21
|
+
CombatAnimalPowerType["Dodge"] = "Dodge";
|
|
22
|
+
CombatAnimalPowerType["DamagePoints"] = "DamagePoints";
|
|
23
|
+
CombatAnimalPowerType["Protection"] = "Protection";
|
|
24
|
+
})(CombatAnimalPowerType || (CombatAnimalPowerType = {}));
|
|
5
25
|
export const validateSchema = validateSchemaCreator(import.meta.url);
|
|
@@ -44,20 +44,16 @@ export declare type ProfessionGroup = {
|
|
|
44
44
|
mundane: MundaneProfessionGroup;
|
|
45
45
|
} | {
|
|
46
46
|
tag: "Magical";
|
|
47
|
-
magical
|
|
47
|
+
magical: MagicalProfessionGroup;
|
|
48
48
|
} | {
|
|
49
49
|
tag: "Blessed";
|
|
50
|
+
blessed: {};
|
|
50
51
|
};
|
|
51
|
-
export declare
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
tag: "Religious";
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* @minProperties 1
|
|
60
|
-
*/
|
|
52
|
+
export declare enum MundaneProfessionGroup {
|
|
53
|
+
Profane = "Profane",
|
|
54
|
+
Fighter = "Fighter",
|
|
55
|
+
Religious = "Religious"
|
|
56
|
+
}
|
|
61
57
|
export declare type MagicalProfessionGroup = {
|
|
62
58
|
/**
|
|
63
59
|
* The curriculum/academy associated with this magical profession, if any.
|
|
@@ -482,6 +478,7 @@ export declare type ProfessionVariantPackageOptions = {
|
|
|
482
478
|
};
|
|
483
479
|
export declare type VariantOptionAction<T> = {
|
|
484
480
|
tag: "Remove";
|
|
481
|
+
remove: {};
|
|
485
482
|
} | {
|
|
486
483
|
tag: "Override";
|
|
487
484
|
override: T;
|
package/lib/types/Profession.js
CHANGED
|
@@ -2,4 +2,10 @@
|
|
|
2
2
|
* @main Profession
|
|
3
3
|
*/
|
|
4
4
|
import { validateSchemaCreator } from "../validation/schema.js";
|
|
5
|
+
export var MundaneProfessionGroup;
|
|
6
|
+
(function (MundaneProfessionGroup) {
|
|
7
|
+
MundaneProfessionGroup["Profane"] = "Profane";
|
|
8
|
+
MundaneProfessionGroup["Fighter"] = "Fighter";
|
|
9
|
+
MundaneProfessionGroup["Religious"] = "Religious";
|
|
10
|
+
})(MundaneProfessionGroup || (MundaneProfessionGroup = {}));
|
|
5
11
|
export const validateSchema = validateSchemaCreator(import.meta.url);
|
package/lib/types/Race.d.ts
CHANGED
|
@@ -185,13 +185,11 @@ export declare type WeightDice = Dice & {
|
|
|
185
185
|
* base value. Either they are all added or subtracted or even results are
|
|
186
186
|
* added and odd results are subtracted.
|
|
187
187
|
*/
|
|
188
|
-
export declare
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
tag: "AddEvenSubtractOdd";
|
|
194
|
-
};
|
|
188
|
+
export declare enum WeightDiceOffsetStrategy {
|
|
189
|
+
Add = "Add",
|
|
190
|
+
Subtract = "Subtract",
|
|
191
|
+
AddEvenSubtractOdd = "AddEvenSubtractOdd"
|
|
192
|
+
}
|
|
195
193
|
export declare type StartingAgeConfigForExperienceLevel = {
|
|
196
194
|
/**
|
|
197
195
|
* The selected experience level's identifier.
|
package/lib/types/Race.js
CHANGED
|
@@ -2,4 +2,15 @@
|
|
|
2
2
|
* @main Race
|
|
3
3
|
*/
|
|
4
4
|
import { validateSchemaCreator } from "../validation/schema.js";
|
|
5
|
+
/**
|
|
6
|
+
* The strategy how to offset the randomly generated values against the
|
|
7
|
+
* base value. Either they are all added or subtracted or even results are
|
|
8
|
+
* added and odd results are subtracted.
|
|
9
|
+
*/
|
|
10
|
+
export var WeightDiceOffsetStrategy;
|
|
11
|
+
(function (WeightDiceOffsetStrategy) {
|
|
12
|
+
WeightDiceOffsetStrategy["Add"] = "Add";
|
|
13
|
+
WeightDiceOffsetStrategy["Subtract"] = "Subtract";
|
|
14
|
+
WeightDiceOffsetStrategy["AddEvenSubtractOdd"] = "AddEvenSubtractOdd";
|
|
15
|
+
})(WeightDiceOffsetStrategy || (WeightDiceOffsetStrategy = {}));
|
|
5
16
|
export const validateSchema = validateSchemaCreator(import.meta.url);
|
package/lib/types/Service.d.ts
CHANGED
|
@@ -27,11 +27,10 @@ export declare type Service = {
|
|
|
27
27
|
*/
|
|
28
28
|
translations: LocaleMap<ServiceTranslation>;
|
|
29
29
|
};
|
|
30
|
-
export declare
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
30
|
+
export declare enum ServiceAvailability {
|
|
31
|
+
SummonedCreatures = "SummonedCreatures",
|
|
32
|
+
Monstrosities = "Monstrosities"
|
|
33
|
+
}
|
|
35
34
|
export declare type ServiceTranslation = {
|
|
36
35
|
/**
|
|
37
36
|
* The name of the service.
|
package/lib/types/Service.js
CHANGED
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
* @main Service
|
|
3
3
|
*/
|
|
4
4
|
import { validateSchemaCreator } from "../validation/schema.js";
|
|
5
|
+
export var ServiceAvailability;
|
|
6
|
+
(function (ServiceAvailability) {
|
|
7
|
+
ServiceAvailability["SummonedCreatures"] = "SummonedCreatures";
|
|
8
|
+
ServiceAvailability["Monstrosities"] = "Monstrosities";
|
|
9
|
+
})(ServiceAvailability || (ServiceAvailability = {}));
|
|
5
10
|
export const validateSchema = validateSchemaCreator(import.meta.url);
|
package/lib/types/Skill.d.ts
CHANGED
|
@@ -90,13 +90,11 @@ export declare type SkillTranslation = {
|
|
|
90
90
|
* A category. All available entries from the specified category will be
|
|
91
91
|
* included as separate applications.
|
|
92
92
|
*/
|
|
93
|
-
export declare
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
tag: "Regions";
|
|
99
|
-
};
|
|
93
|
+
export declare enum ApplicationCategory {
|
|
94
|
+
BlessedTraditions = "BlessedTraditions",
|
|
95
|
+
Diseases = "Diseases",
|
|
96
|
+
Regions = "Regions"
|
|
97
|
+
}
|
|
100
98
|
/**
|
|
101
99
|
* The skill's applications.
|
|
102
100
|
*/
|
|
@@ -135,11 +133,9 @@ export declare type ApplicationTranslation = {
|
|
|
135
133
|
/**
|
|
136
134
|
* Indicates whether encumbrance gives a penalty for checks with the skill.
|
|
137
135
|
*/
|
|
138
|
-
export declare
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
tag: "Maybe";
|
|
144
|
-
};
|
|
136
|
+
export declare enum Encumbrance {
|
|
137
|
+
True = "True",
|
|
138
|
+
False = "False",
|
|
139
|
+
Maybe = "Maybe"
|
|
140
|
+
}
|
|
145
141
|
export declare const validateSchema: import("../validation/schema.js").TypeValidator<Skill>;
|
package/lib/types/Skill.js
CHANGED
|
@@ -2,4 +2,23 @@
|
|
|
2
2
|
* @main Skill
|
|
3
3
|
*/
|
|
4
4
|
import { validateSchemaCreator } from "../validation/schema.js";
|
|
5
|
+
/**
|
|
6
|
+
* A category. All available entries from the specified category will be
|
|
7
|
+
* included as separate applications.
|
|
8
|
+
*/
|
|
9
|
+
export var ApplicationCategory;
|
|
10
|
+
(function (ApplicationCategory) {
|
|
11
|
+
ApplicationCategory["BlessedTraditions"] = "BlessedTraditions";
|
|
12
|
+
ApplicationCategory["Diseases"] = "Diseases";
|
|
13
|
+
ApplicationCategory["Regions"] = "Regions";
|
|
14
|
+
})(ApplicationCategory || (ApplicationCategory = {}));
|
|
15
|
+
/**
|
|
16
|
+
* Indicates whether encumbrance gives a penalty for checks with the skill.
|
|
17
|
+
*/
|
|
18
|
+
export var Encumbrance;
|
|
19
|
+
(function (Encumbrance) {
|
|
20
|
+
Encumbrance["True"] = "True";
|
|
21
|
+
Encumbrance["False"] = "False";
|
|
22
|
+
Encumbrance["Maybe"] = "Maybe";
|
|
23
|
+
})(Encumbrance || (Encumbrance = {}));
|
|
5
24
|
export const validateSchema = validateSchemaCreator(import.meta.url);
|
package/lib/types/Talisman.d.ts
CHANGED
|
@@ -38,17 +38,13 @@ export declare type Talisman = {
|
|
|
38
38
|
*/
|
|
39
39
|
translations: LocaleMap<TalismanTranslation>;
|
|
40
40
|
};
|
|
41
|
-
export declare
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
tag: "Regalia";
|
|
49
|
-
} | {
|
|
50
|
-
tag: "PowerfulTalisman";
|
|
51
|
-
};
|
|
41
|
+
export declare enum TalismanType {
|
|
42
|
+
MainTalisman = "MainTalisman",
|
|
43
|
+
Talisman = "Talisman",
|
|
44
|
+
MinorTalisman = "MinorTalisman",
|
|
45
|
+
Regalia = "Regalia",
|
|
46
|
+
PowerfulTalisman = "PowerfulTalisman"
|
|
47
|
+
}
|
|
52
48
|
export declare type TalismanTranslation = {
|
|
53
49
|
/**
|
|
54
50
|
* The name of the talisman.
|
package/lib/types/Talisman.js
CHANGED
|
@@ -2,4 +2,12 @@
|
|
|
2
2
|
* @main Talisman
|
|
3
3
|
*/
|
|
4
4
|
import { validateSchemaCreator } from "../validation/schema.js";
|
|
5
|
+
export var TalismanType;
|
|
6
|
+
(function (TalismanType) {
|
|
7
|
+
TalismanType["MainTalisman"] = "MainTalisman";
|
|
8
|
+
TalismanType["Talisman"] = "Talisman";
|
|
9
|
+
TalismanType["MinorTalisman"] = "MinorTalisman";
|
|
10
|
+
TalismanType["Regalia"] = "Regalia";
|
|
11
|
+
TalismanType["PowerfulTalisman"] = "PowerfulTalisman";
|
|
12
|
+
})(TalismanType || (TalismanType = {}));
|
|
5
13
|
export const validateSchema = validateSchemaCreator(import.meta.url);
|