optolith-database-schema 0.0.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/AUTHORS +1 -0
- package/CHANGELOG.md +27 -0
- package/CODEOWNERS +1 -0
- package/LICENSE +378 -0
- package/README.md +17 -0
- package/lib/main.d.ts +1 -0
- package/lib/main.js +1 -0
- package/lib/types/ArcaneBardTradition.d.ts +32 -0
- package/lib/types/ArcaneBardTradition.js +4 -0
- package/lib/types/ArcaneDancerTradition.d.ts +32 -0
- package/lib/types/ArcaneDancerTradition.js +4 -0
- package/lib/types/Aspect.d.ts +36 -0
- package/lib/types/Aspect.js +4 -0
- package/lib/types/Attribute.d.ts +42 -0
- package/lib/types/Attribute.js +5 -0
- package/lib/types/CombatTechnique_Close.d.ts +80 -0
- package/lib/types/CombatTechnique_Close.js +4 -0
- package/lib/types/CombatTechnique_Ranged.d.ts +62 -0
- package/lib/types/CombatTechnique_Ranged.js +4 -0
- package/lib/types/Condition.d.ts +51 -0
- package/lib/types/Condition.js +4 -0
- package/lib/types/Culture.d.ts +494 -0
- package/lib/types/Culture.js +4 -0
- package/lib/types/DerivedCharacteristic.d.ts +65 -0
- package/lib/types/DerivedCharacteristic.js +4 -0
- package/lib/types/Element.d.ts +30 -0
- package/lib/types/Element.js +4 -0
- package/lib/types/ExperienceLevel.d.ts +68 -0
- package/lib/types/ExperienceLevel.js +4 -0
- package/lib/types/EyeColor.d.ts +30 -0
- package/lib/types/EyeColor.js +4 -0
- package/lib/types/HairColor.d.ts +30 -0
- package/lib/types/HairColor.js +4 -0
- package/lib/types/Lessons_Curriculum.d.ts +297 -0
- package/lib/types/Lessons_Curriculum.js +4 -0
- package/lib/types/Lessons_Guideline.d.ts +36 -0
- package/lib/types/Lessons_Guideline.js +4 -0
- package/lib/types/Locale.d.ts +38 -0
- package/lib/types/Locale.js +4 -0
- package/lib/types/MetaCondition.d.ts +54 -0
- package/lib/types/MetaCondition.js +4 -0
- package/lib/types/Property.d.ts +36 -0
- package/lib/types/Property.js +4 -0
- package/lib/types/Race.d.ts +524 -0
- package/lib/types/Race.js +13 -0
- package/lib/types/Region.d.ts +30 -0
- package/lib/types/Region.js +4 -0
- package/lib/types/Service.d.ts +40 -0
- package/lib/types/Service.js +4 -0
- package/lib/types/SexPractice.d.ts +53 -0
- package/lib/types/SexPractice.js +4 -0
- package/lib/types/Skill.d.ts +169 -0
- package/lib/types/Skill.js +4 -0
- package/lib/types/SkillGroup.d.ts +40 -0
- package/lib/types/SkillGroup.js +4 -0
- package/lib/types/SkillModificationIncrement.d.ts +82 -0
- package/lib/types/SkillModificationIncrement.js +4 -0
- package/lib/types/SocialStatus.d.ts +30 -0
- package/lib/types/SocialStatus.js +4 -0
- package/lib/types/State.d.ts +40 -0
- package/lib/types/State.js +4 -0
- package/lib/types/TargetCategory.d.ts +36 -0
- package/lib/types/TargetCategory.js +4 -0
- package/lib/types/_ActivatableSkill.d.ts +919 -0
- package/lib/types/_ActivatableSkill.js +38 -0
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +12 -0
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.js +1 -0
- package/lib/types/_ImprovementCost.d.ts +9 -0
- package/lib/types/_ImprovementCost.js +10 -0
- package/lib/types/_Prerequisite.d.ts +274 -0
- package/lib/types/_Prerequisite.js +4 -0
- package/lib/types/_Sex.d.ts +11 -0
- package/lib/types/_Sex.js +4 -0
- package/lib/types/_SkillCheck.d.ts +28 -0
- package/lib/types/_SkillCheck.js +1 -0
- package/lib/types/magicalActions/AnimistPower.d.ts +227 -0
- package/lib/types/magicalActions/AnimistPower.js +4 -0
- package/lib/types/magicalActions/AnimistPower_Tribe.d.ts +30 -0
- package/lib/types/magicalActions/AnimistPower_Tribe.js +4 -0
- package/lib/types/magicalActions/Curse.d.ts +228 -0
- package/lib/types/magicalActions/Curse.js +4 -0
- package/lib/types/magicalActions/DominationRitual.d.ts +181 -0
- package/lib/types/magicalActions/DominationRitual.js +4 -0
- package/lib/types/magicalActions/ElvenMagicalSong.d.ts +149 -0
- package/lib/types/magicalActions/ElvenMagicalSong.js +4 -0
- package/lib/types/magicalActions/GeodeRitual.d.ts +162 -0
- package/lib/types/magicalActions/GeodeRitual.js +4 -0
- package/lib/types/magicalActions/JesterTrick.d.ts +167 -0
- package/lib/types/magicalActions/JesterTrick.js +4 -0
- package/lib/types/magicalActions/MagicalDance.d.ts +184 -0
- package/lib/types/magicalActions/MagicalDance.js +4 -0
- package/lib/types/magicalActions/MagicalMelody.d.ts +132 -0
- package/lib/types/magicalActions/MagicalMelody.js +4 -0
- package/lib/types/magicalActions/MagicalRune.d.ts +241 -0
- package/lib/types/magicalActions/MagicalRune.js +4 -0
- package/lib/types/magicalActions/ZibiljaRitual.d.ts +101 -0
- package/lib/types/magicalActions/ZibiljaRitual.js +4 -0
- package/lib/types/magicalActions/_MusicTradition.d.ts +28 -0
- package/lib/types/magicalActions/_MusicTradition.js +1 -0
- package/lib/types/magicalActions/_SkillReference.d.ts +13 -0
- package/lib/types/magicalActions/_SkillReference.js +5 -0
- package/lib/types/rule/FocusRule.d.ts +53 -0
- package/lib/types/rule/FocusRule.js +4 -0
- package/lib/types/rule/FocusRule_Subject.d.ts +31 -0
- package/lib/types/rule/FocusRule_Subject.js +4 -0
- package/lib/types/rule/OptionalRule.d.ts +65 -0
- package/lib/types/rule/OptionalRule.js +4 -0
- package/lib/types/source/Publication.d.ts +4 -0
- package/lib/types/source/Publication.js +4 -0
- package/lib/types/source/_Erratum.d.ts +25 -0
- package/lib/types/source/_Erratum.js +4 -0
- package/lib/types/source/_PublicationRef.d.ts +146 -0
- package/lib/types/source/_PublicationRef.js +4 -0
- package/lib/validation/integrity.d.ts +16 -0
- package/lib/validation/integrity.js +3 -0
- package/package.json +37 -0
- package/schema/ArcaneBardTradition.schema.json +49 -0
- package/schema/ArcaneDancerTradition.schema.json +49 -0
- package/schema/Aspect.schema.json +50 -0
- package/schema/Attribute.schema.json +57 -0
- package/schema/CombatTechnique_Close.schema.json +127 -0
- package/schema/CombatTechnique_Ranged.schema.json +83 -0
- package/schema/Condition.schema.json +84 -0
- package/schema/Culture.schema.json +858 -0
- package/schema/DerivedCharacteristic.schema.json +90 -0
- package/schema/Element.schema.json +45 -0
- package/schema/ExperienceLevel.schema.json +84 -0
- package/schema/EyeColor.schema.json +45 -0
- package/schema/HairColor.schema.json +45 -0
- package/schema/Lessons_Curriculum.schema.json +500 -0
- package/schema/Lessons_Guideline.schema.json +51 -0
- package/schema/Locale.schema.json +45 -0
- package/schema/MetaCondition.schema.json +85 -0
- package/schema/Property.schema.json +49 -0
- package/schema/Race.schema.json +724 -0
- package/schema/Region.schema.json +45 -0
- package/schema/Service.schema.json +58 -0
- package/schema/SexPractice.schema.json +72 -0
- package/schema/Skill.schema.json +278 -0
- package/schema/SkillGroup.schema.json +56 -0
- package/schema/SkillModificationIncrement.schema.json +98 -0
- package/schema/SocialStatus.schema.json +45 -0
- package/schema/State.schema.json +58 -0
- package/schema/TargetCategory.schema.json +51 -0
- package/schema/_ActivatableSkill.schema.json +1534 -0
- package/schema/_CommonnessRatedAdvantageDisadvantage.schema.json +22 -0
- package/schema/_ImprovementCost.schema.json +15 -0
- package/schema/_Prerequisite.schema.json +519 -0
- package/schema/_Sex.schema.json +36 -0
- package/schema/_SkillCheck.schema.json +94 -0
- package/schema/magicalActions/AnimistPower.schema.json +411 -0
- package/schema/magicalActions/AnimistPower_Tribe.schema.json +45 -0
- package/schema/magicalActions/Curse.schema.json +378 -0
- package/schema/magicalActions/DominationRitual.schema.json +288 -0
- package/schema/magicalActions/ElvenMagicalSong.schema.json +194 -0
- package/schema/magicalActions/GeodeRitual.schema.json +303 -0
- package/schema/magicalActions/JesterTrick.schema.json +292 -0
- package/schema/magicalActions/MagicalDance.schema.json +328 -0
- package/schema/magicalActions/MagicalMelody.schema.json +254 -0
- package/schema/magicalActions/MagicalRune.schema.json +426 -0
- package/schema/magicalActions/ZibiljaRitual.schema.json +159 -0
- package/schema/magicalActions/_MusicTradition.schema.json +44 -0
- package/schema/magicalActions/_SkillReference.schema.json +26 -0
- package/schema/rule/FocusRule.schema.json +71 -0
- package/schema/rule/FocusRule_Subject.schema.json +46 -0
- package/schema/rule/OptionalRule.schema.json +96 -0
- package/schema/source/Publication.schema.json +165 -0
- package/schema/source/_Erratum.schema.json +37 -0
- package/schema/source/_PublicationRef.schema.json +242 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @main Property
|
|
3
|
+
*/
|
|
4
|
+
import { SkillCheck } from "./_SkillCheck";
|
|
5
|
+
/**
|
|
6
|
+
* @title Property
|
|
7
|
+
*/
|
|
8
|
+
export declare type Property = {
|
|
9
|
+
/**
|
|
10
|
+
* The property's identifier. An unique, increasing integer.
|
|
11
|
+
* @integer
|
|
12
|
+
* @minimum 1
|
|
13
|
+
*/
|
|
14
|
+
id: number;
|
|
15
|
+
/**
|
|
16
|
+
* The property check's attributes. Only the properties from the Core Rules
|
|
17
|
+
* have defined property checks.
|
|
18
|
+
*/
|
|
19
|
+
check?: SkillCheck;
|
|
20
|
+
/**
|
|
21
|
+
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
22
|
+
* @minProperties 1
|
|
23
|
+
*/
|
|
24
|
+
translations: {
|
|
25
|
+
/**
|
|
26
|
+
* @patternProperties ^[a-z]{2}-[A-Z]{2}$
|
|
27
|
+
*/
|
|
28
|
+
[localeId: string]: {
|
|
29
|
+
/**
|
|
30
|
+
* The property's name.
|
|
31
|
+
* @minLength 1
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @main Race
|
|
3
|
+
*/
|
|
4
|
+
import { Errata } from "./source/_Erratum";
|
|
5
|
+
import { PublicationRefs } from "./source/_PublicationRef";
|
|
6
|
+
import { CommonnessRatedAdvantageDisadvantage } from "./_CommonnessRatedAdvantageDisadvantage";
|
|
7
|
+
/**
|
|
8
|
+
* A playable race with stats and skills.
|
|
9
|
+
* @title Race
|
|
10
|
+
*/
|
|
11
|
+
export declare type Race = {
|
|
12
|
+
/**
|
|
13
|
+
* The race's identifier. An unique, increasing integer.
|
|
14
|
+
* @integer
|
|
15
|
+
* @minimum 1
|
|
16
|
+
*/
|
|
17
|
+
id: number;
|
|
18
|
+
/**
|
|
19
|
+
* How many Adventure Points does the race cost during character creation?
|
|
20
|
+
* @integer
|
|
21
|
+
* @minimum 0
|
|
22
|
+
*/
|
|
23
|
+
ap_value: number;
|
|
24
|
+
/**
|
|
25
|
+
* The race’s base values.
|
|
26
|
+
*/
|
|
27
|
+
base_values: BaseValues;
|
|
28
|
+
/**
|
|
29
|
+
* Describes how to raise or lower maximum attribute values during character
|
|
30
|
+
* creation.
|
|
31
|
+
*/
|
|
32
|
+
attribute_adjustments: AttributeAdjustments.Config;
|
|
33
|
+
/**
|
|
34
|
+
* A list of automatically applied advantages. This does only work for
|
|
35
|
+
* advantages with no further configuration such as level or special
|
|
36
|
+
* selection.
|
|
37
|
+
* @minItems 1
|
|
38
|
+
*/
|
|
39
|
+
automatic_advantages?: AutomaticAdvantage[];
|
|
40
|
+
/**
|
|
41
|
+
* A list of strongly recommended advantages.
|
|
42
|
+
* @minItems 1
|
|
43
|
+
*/
|
|
44
|
+
strongly_recommended_advantages?: CommonnessRatedAdvantageDisadvantage[];
|
|
45
|
+
/**
|
|
46
|
+
* A list of strongly recommended disadvantages.
|
|
47
|
+
* @minItems 1
|
|
48
|
+
*/
|
|
49
|
+
strongly_recommended_disadvantages?: CommonnessRatedAdvantageDisadvantage[];
|
|
50
|
+
/**
|
|
51
|
+
* A list of common advantages. If common advantages are defined by race
|
|
52
|
+
* variants, leave this field empty. It is overridden by the same field in
|
|
53
|
+
* race variants.
|
|
54
|
+
* @minItems 1
|
|
55
|
+
*/
|
|
56
|
+
common_advantages?: CommonnessRatedAdvantageDisadvantage[];
|
|
57
|
+
/**
|
|
58
|
+
* A list of common disadvantages. If common disadvantages are defined by race
|
|
59
|
+
* variants, leave this field empty. It is overridden by the same field in
|
|
60
|
+
* race variants.
|
|
61
|
+
* @minItems 1
|
|
62
|
+
*/
|
|
63
|
+
common_disadvantages?: CommonnessRatedAdvantageDisadvantage[];
|
|
64
|
+
/**
|
|
65
|
+
* A list of uncommon advantages. If uncommon advantages are defined by race
|
|
66
|
+
* variants, leave this field empty. It is overridden by the same field in
|
|
67
|
+
* race variants.
|
|
68
|
+
* @minItems 1
|
|
69
|
+
*/
|
|
70
|
+
uncommon_advantages?: CommonnessRatedAdvantageDisadvantage[];
|
|
71
|
+
/**
|
|
72
|
+
* A list of uncommon disadvantages. If uncommon disadvantages are defined by
|
|
73
|
+
* race variants, leave this field empty. It is overridden by the same field
|
|
74
|
+
* in race variants.
|
|
75
|
+
* @minItems 1
|
|
76
|
+
*/
|
|
77
|
+
uncommon_disadvantages?: CommonnessRatedAdvantageDisadvantage[];
|
|
78
|
+
/**
|
|
79
|
+
* Configuration for random weight generation.
|
|
80
|
+
*/
|
|
81
|
+
weight: Weight.Config;
|
|
82
|
+
/**
|
|
83
|
+
* Defines the starting ages for the race. It depends on the selected
|
|
84
|
+
* experience level.
|
|
85
|
+
* @minItems 7
|
|
86
|
+
* @maxItems 7
|
|
87
|
+
*/
|
|
88
|
+
starting_age: StartingAgeConfigForExperienceLevel[];
|
|
89
|
+
/**
|
|
90
|
+
* The race may have variants and associated configuration for each variant.
|
|
91
|
+
* If the race is plain (has no variants), the values that would otherwise be
|
|
92
|
+
* defined in the variant configuration need to be set for the whole race.
|
|
93
|
+
* This excludes common and uncommon advantages and disadvantages, since they
|
|
94
|
+
* may be defined for the whole race even if variants exist.
|
|
95
|
+
*/
|
|
96
|
+
variant_dependent: VariantDependent;
|
|
97
|
+
src: PublicationRefs;
|
|
98
|
+
/**
|
|
99
|
+
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
100
|
+
* @minProperties 1
|
|
101
|
+
*/
|
|
102
|
+
translations: {
|
|
103
|
+
/**
|
|
104
|
+
* @patternProperties ^[a-z]{2}-[A-Z]{2}$
|
|
105
|
+
*/
|
|
106
|
+
[localeId: string]: RaceTranslation;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* The race’s base values.
|
|
111
|
+
*/
|
|
112
|
+
declare type BaseValues = {
|
|
113
|
+
/**
|
|
114
|
+
* The race’s life point base value.
|
|
115
|
+
* @integer
|
|
116
|
+
*/
|
|
117
|
+
life_points: number;
|
|
118
|
+
/**
|
|
119
|
+
* The race’s Spirit base value.
|
|
120
|
+
* @integer
|
|
121
|
+
*/
|
|
122
|
+
spirit: number;
|
|
123
|
+
/**
|
|
124
|
+
* The race’s Toughness base value.
|
|
125
|
+
* @integer
|
|
126
|
+
*/
|
|
127
|
+
toughness: number;
|
|
128
|
+
/**
|
|
129
|
+
* The race’s tactical movement rate.
|
|
130
|
+
* @integer
|
|
131
|
+
* @minimum 1
|
|
132
|
+
*/
|
|
133
|
+
movement: number;
|
|
134
|
+
};
|
|
135
|
+
declare namespace AttributeAdjustments {
|
|
136
|
+
/**
|
|
137
|
+
* Describes how to raise or lower maximum attribute values during character
|
|
138
|
+
* creation.
|
|
139
|
+
*/
|
|
140
|
+
type Config = {
|
|
141
|
+
/**
|
|
142
|
+
* An array of attribute maximum modifiers. The value will be added to the
|
|
143
|
+
* current maximum of the ID-specified attribute (negative values will lower
|
|
144
|
+
* the maximum).
|
|
145
|
+
* @minItems 1
|
|
146
|
+
*/
|
|
147
|
+
fix?: Fix[];
|
|
148
|
+
/**
|
|
149
|
+
* Used if the player has to choose between different modifiers.
|
|
150
|
+
*/
|
|
151
|
+
selection: Selection;
|
|
152
|
+
};
|
|
153
|
+
type Fix = {
|
|
154
|
+
/**
|
|
155
|
+
* The attribute's identifier.
|
|
156
|
+
* @integer
|
|
157
|
+
* @minimum 1
|
|
158
|
+
* @maximum 8
|
|
159
|
+
*/
|
|
160
|
+
id: number;
|
|
161
|
+
/**
|
|
162
|
+
* The value by which the attribute's maximum is modified (negative values
|
|
163
|
+
* will lower the maximum).
|
|
164
|
+
* @integer
|
|
165
|
+
*/
|
|
166
|
+
value: number;
|
|
167
|
+
};
|
|
168
|
+
type Selection = {
|
|
169
|
+
/**
|
|
170
|
+
* The value by which the selected attribute's maximum is modified
|
|
171
|
+
* (negative values will lower the maximum).
|
|
172
|
+
* @integer
|
|
173
|
+
*/
|
|
174
|
+
value: number;
|
|
175
|
+
/**
|
|
176
|
+
* A list of attributes the player has to choose from.
|
|
177
|
+
* @minItems 2
|
|
178
|
+
*/
|
|
179
|
+
list: SelectionItem[];
|
|
180
|
+
};
|
|
181
|
+
type SelectionItem = {
|
|
182
|
+
/**
|
|
183
|
+
* The attribute's identifier.
|
|
184
|
+
* @integer
|
|
185
|
+
* @minimum 1
|
|
186
|
+
* @maximum 8
|
|
187
|
+
*/
|
|
188
|
+
id: number;
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
declare type AutomaticAdvantage = {
|
|
192
|
+
/**
|
|
193
|
+
* The advantage's identifier.
|
|
194
|
+
* @integer
|
|
195
|
+
* @minimum 1
|
|
196
|
+
*/
|
|
197
|
+
id: number;
|
|
198
|
+
};
|
|
199
|
+
declare namespace Weight {
|
|
200
|
+
/**
|
|
201
|
+
* Configuration for random weight generation.
|
|
202
|
+
*/
|
|
203
|
+
export type Config = {
|
|
204
|
+
/**
|
|
205
|
+
* The base value used for random weight. The height subtrahend; in case of
|
|
206
|
+
* `Height - 110 + 2D6` it is `110`.
|
|
207
|
+
* @integer
|
|
208
|
+
* @minimum 1
|
|
209
|
+
*/
|
|
210
|
+
base: number;
|
|
211
|
+
/**
|
|
212
|
+
* The dice used for random weight.
|
|
213
|
+
* @minItems 1
|
|
214
|
+
*/
|
|
215
|
+
random: Die[];
|
|
216
|
+
};
|
|
217
|
+
type Die = {
|
|
218
|
+
/**
|
|
219
|
+
* Number of dice of the same type. Example: 2 in 2D6.
|
|
220
|
+
* @integer
|
|
221
|
+
* @minimum 1
|
|
222
|
+
*/
|
|
223
|
+
number: number;
|
|
224
|
+
/**
|
|
225
|
+
* Number of sides on every die. Example: 6 in 2D6.
|
|
226
|
+
*/
|
|
227
|
+
sides: DieType;
|
|
228
|
+
/**
|
|
229
|
+
* The strategy how to offset the randomly generated values against the
|
|
230
|
+
* base value. Either they are all added or subtracted or even results are
|
|
231
|
+
* added and odd results are subtracted.
|
|
232
|
+
*/
|
|
233
|
+
offset_strategy: OffsetStrategy;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* The strategy how to offset the randomly generated values against the
|
|
237
|
+
* base value. Either they are all added or subtracted or even results are
|
|
238
|
+
* added and odd results are subtracted.
|
|
239
|
+
*/
|
|
240
|
+
type OffsetStrategy = {
|
|
241
|
+
tag: "Add";
|
|
242
|
+
} | {
|
|
243
|
+
tag: "Subtract";
|
|
244
|
+
} | {
|
|
245
|
+
tag: "AddEvenSubtractOdd";
|
|
246
|
+
};
|
|
247
|
+
export {};
|
|
248
|
+
}
|
|
249
|
+
declare type StartingAgeConfigForExperienceLevel = {
|
|
250
|
+
/**
|
|
251
|
+
* The selected experience level's identifier.
|
|
252
|
+
* @integer
|
|
253
|
+
* @minimum 1
|
|
254
|
+
* @maximum 7
|
|
255
|
+
*/
|
|
256
|
+
experience_level_id: number;
|
|
257
|
+
/**
|
|
258
|
+
* The base value for the selected experience level.
|
|
259
|
+
* @integer
|
|
260
|
+
* @minimum 1
|
|
261
|
+
*/
|
|
262
|
+
base: number;
|
|
263
|
+
/**
|
|
264
|
+
* The random value for the selected experience level. It is going to be
|
|
265
|
+
* added to the base value.
|
|
266
|
+
*/
|
|
267
|
+
random: Die;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* The race may have variants and associated configuration for each variant.
|
|
271
|
+
* If the race is plain (has no variants), the values that would otherwise be
|
|
272
|
+
* defined in the variant configuration need to be set for the whole race.
|
|
273
|
+
* This excludes common and uncommon advantages and disadvantages, since they
|
|
274
|
+
* may be defined for the whole race even if variants exist.
|
|
275
|
+
*/
|
|
276
|
+
declare type VariantDependent = {
|
|
277
|
+
tag: "HasVariants";
|
|
278
|
+
/**
|
|
279
|
+
* A list of available race variants.
|
|
280
|
+
* @minItems 1
|
|
281
|
+
*/
|
|
282
|
+
variants: RaceVariant[];
|
|
283
|
+
} | {
|
|
284
|
+
tag: "Plain";
|
|
285
|
+
/**
|
|
286
|
+
* The list of common cultures.
|
|
287
|
+
* @minItems 1
|
|
288
|
+
*/
|
|
289
|
+
common_cultures: CommonCulture[];
|
|
290
|
+
/**
|
|
291
|
+
* An array containing 20 (numeric) hair color identifiers. The array also represents the 20-sided die for a random hair color.
|
|
292
|
+
* @minItems 20
|
|
293
|
+
* @maxItems 20
|
|
294
|
+
*/
|
|
295
|
+
hair_color: HairColor[];
|
|
296
|
+
/**
|
|
297
|
+
* An array containing 20 (numeric) eye color identifiers. The array also represents the 20-sided die for a random eye color.
|
|
298
|
+
* @minItems 20
|
|
299
|
+
* @maxItems 20
|
|
300
|
+
*/
|
|
301
|
+
eye_color: EyeColor[];
|
|
302
|
+
/**
|
|
303
|
+
* Configuration for random height generation.
|
|
304
|
+
*/
|
|
305
|
+
height: Height;
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* @title Race Variant
|
|
309
|
+
*/
|
|
310
|
+
declare type RaceVariant = {
|
|
311
|
+
/**
|
|
312
|
+
* An unique, increasing integer.
|
|
313
|
+
* @integer
|
|
314
|
+
* @minimum 1
|
|
315
|
+
*/
|
|
316
|
+
id: number;
|
|
317
|
+
/**
|
|
318
|
+
* The list of common cultures.
|
|
319
|
+
* @minItems 1
|
|
320
|
+
*/
|
|
321
|
+
common_cultures: CommonCulture[];
|
|
322
|
+
/**
|
|
323
|
+
* A list of common advantages. If common advantages are defined by the base race, leave this field empty. This field overrides the same field of the base race, if both are defined.
|
|
324
|
+
* @minItems 1
|
|
325
|
+
*/
|
|
326
|
+
common_advantages?: CommonnessRatedAdvantageDisadvantage[];
|
|
327
|
+
/**
|
|
328
|
+
* A list of common disadvantages. If common disadvantages are defined by the base race, leave this field empty. This field overrides the same field of the base race, if both are defined.
|
|
329
|
+
* @minItems 1
|
|
330
|
+
*/
|
|
331
|
+
common_disadvantages?: CommonnessRatedAdvantageDisadvantage[];
|
|
332
|
+
/**
|
|
333
|
+
* A list of uncommon advantages. If uncommon advantages are defined by the base race, leave this field empty. This field overrides the same field of the base race, if both are defined.
|
|
334
|
+
* @minItems 1
|
|
335
|
+
*/
|
|
336
|
+
uncommon_advantages?: CommonnessRatedAdvantageDisadvantage[];
|
|
337
|
+
/**
|
|
338
|
+
* A list of uncommon disadvantages. If uncommon disadvantages are defined by the base race, leave this field empty. This field overrides the same field of the base race, if both are defined.
|
|
339
|
+
* @minItems 1
|
|
340
|
+
*/
|
|
341
|
+
uncommon_disadvantages?: CommonnessRatedAdvantageDisadvantage[];
|
|
342
|
+
/**
|
|
343
|
+
* An array containing 20 (numeric) hair color identifiers. The array also represents the 20-sided die for a random hair color.
|
|
344
|
+
* @minItems 20
|
|
345
|
+
* @maxItems 20
|
|
346
|
+
*/
|
|
347
|
+
hair_color: HairColor[];
|
|
348
|
+
/**
|
|
349
|
+
* An array containing 20 (numeric) eye color identifiers. The array also represents the 20-sided die for a random eye color.
|
|
350
|
+
* @minItems 20
|
|
351
|
+
* @maxItems 20
|
|
352
|
+
*/
|
|
353
|
+
eye_color: EyeColor[];
|
|
354
|
+
/**
|
|
355
|
+
* Configuration for random height generation.
|
|
356
|
+
*/
|
|
357
|
+
height: Height;
|
|
358
|
+
/**
|
|
359
|
+
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
360
|
+
* @minProperties 1
|
|
361
|
+
*/
|
|
362
|
+
translations: {
|
|
363
|
+
/**
|
|
364
|
+
* @patternProperties ^[a-z]{2}-[A-Z]{2}$
|
|
365
|
+
*/
|
|
366
|
+
[localeId: string]: RaceVariantTranslation;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
declare type CommonCulture = {
|
|
370
|
+
/**
|
|
371
|
+
* The culture's identifier.
|
|
372
|
+
* @integer
|
|
373
|
+
* @minimum 1
|
|
374
|
+
*/
|
|
375
|
+
id: number;
|
|
376
|
+
};
|
|
377
|
+
declare type HairColor = {
|
|
378
|
+
/**
|
|
379
|
+
* The hair color's identifier.
|
|
380
|
+
* @integer
|
|
381
|
+
* @minimum 1
|
|
382
|
+
*/
|
|
383
|
+
id: number;
|
|
384
|
+
};
|
|
385
|
+
declare type EyeColor = {
|
|
386
|
+
/**
|
|
387
|
+
* The hair color's identifier.
|
|
388
|
+
* @integer
|
|
389
|
+
* @minimum 1
|
|
390
|
+
*/
|
|
391
|
+
id: number;
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* Configuration for random height generation.
|
|
395
|
+
*/
|
|
396
|
+
declare type Height = {
|
|
397
|
+
/**
|
|
398
|
+
* The base value used for random height.
|
|
399
|
+
* @integer
|
|
400
|
+
* @minimum 1
|
|
401
|
+
*/
|
|
402
|
+
base: number;
|
|
403
|
+
/**
|
|
404
|
+
* The dice used for random height.
|
|
405
|
+
* @minItems 1
|
|
406
|
+
*/
|
|
407
|
+
random: Die[];
|
|
408
|
+
};
|
|
409
|
+
declare type RaceVariantTranslation = {
|
|
410
|
+
/**
|
|
411
|
+
* The race variant's name.
|
|
412
|
+
* @minLength 1
|
|
413
|
+
*/
|
|
414
|
+
name: string;
|
|
415
|
+
/**
|
|
416
|
+
* The respective common advantages text from the source book. If common
|
|
417
|
+
* advantages are defined by the base race, leave this field empty. This field
|
|
418
|
+
* overrides the same field of the base race, if both are defined.
|
|
419
|
+
* @minLength 1
|
|
420
|
+
*/
|
|
421
|
+
common_advantages?: string;
|
|
422
|
+
/**
|
|
423
|
+
* The respective common disadvantages text from the source book. If common
|
|
424
|
+
* disadvantages are defined by the base race, leave this field empty. This
|
|
425
|
+
* field overrides the same field of the base race, if both are defined.
|
|
426
|
+
* @minLength 1
|
|
427
|
+
*/
|
|
428
|
+
common_disadvantages?: string;
|
|
429
|
+
/**
|
|
430
|
+
* The respective uncommon advantages text from the source book. If uncommon
|
|
431
|
+
* advantages are defined by the base race, leave this field empty. This field
|
|
432
|
+
* overrides the same field of the base race, if both are defined.
|
|
433
|
+
* @minLength 1
|
|
434
|
+
*/
|
|
435
|
+
uncommon_advantages?: string;
|
|
436
|
+
/**
|
|
437
|
+
* The respective uncommon disadvantages text from the source book. If
|
|
438
|
+
* uncommon disadvantages are defined by the base race, leave this field
|
|
439
|
+
* empty. This field overrides the same field of the base race, if both are
|
|
440
|
+
* defined.
|
|
441
|
+
* @minLength 1
|
|
442
|
+
*/
|
|
443
|
+
uncommon_disadvantages?: string;
|
|
444
|
+
};
|
|
445
|
+
declare type RaceTranslation = {
|
|
446
|
+
/**
|
|
447
|
+
* The race's name.
|
|
448
|
+
* @minLength 1
|
|
449
|
+
*/
|
|
450
|
+
name: string;
|
|
451
|
+
/**
|
|
452
|
+
* The respective attribute adjustments text from the source book.
|
|
453
|
+
* @minLength 1
|
|
454
|
+
*/
|
|
455
|
+
attribute_adjustments: string;
|
|
456
|
+
/**
|
|
457
|
+
* The respective automatic advantages text from the source book.
|
|
458
|
+
* @minLength 1
|
|
459
|
+
*/
|
|
460
|
+
automatic_advantages?: string;
|
|
461
|
+
/**
|
|
462
|
+
* The respective strongly recommended advantages text from the source book.
|
|
463
|
+
* @minLength 1
|
|
464
|
+
*/
|
|
465
|
+
strongly_recommended_advantages?: string;
|
|
466
|
+
/**
|
|
467
|
+
* The respective strongly recommended disadvantages text from the source book.
|
|
468
|
+
* @minLength 1
|
|
469
|
+
*/
|
|
470
|
+
strongly_recommended_disadvantages?: string;
|
|
471
|
+
/**
|
|
472
|
+
* The respective common advantages text from the source book. If common
|
|
473
|
+
* advantages are defined by race variants, leave this field empty. It is
|
|
474
|
+
* overridden by the same field in race variants.
|
|
475
|
+
* @minLength 1
|
|
476
|
+
*/
|
|
477
|
+
common_advantages?: string;
|
|
478
|
+
/**
|
|
479
|
+
* The respective common disadvantages text from the source book. If common
|
|
480
|
+
* disadvantages are defined by race variants, leave this field empty. It is
|
|
481
|
+
* overridden by the same field in race variants.
|
|
482
|
+
* @minLength 1
|
|
483
|
+
*/
|
|
484
|
+
common_disadvantages?: string;
|
|
485
|
+
/**
|
|
486
|
+
* The respective uncommon advantages text from the source book. If uncommon
|
|
487
|
+
* advantages are defined by race variants, leave this field empty. It is
|
|
488
|
+
* overridden by the same field in race variants.
|
|
489
|
+
* @minLength 1
|
|
490
|
+
*/
|
|
491
|
+
uncommon_advantages?: string;
|
|
492
|
+
/**
|
|
493
|
+
* The respective uncommon disadvantages text from the source book. If
|
|
494
|
+
* uncommon disadvantages are defined by race variants, leave this field
|
|
495
|
+
* empty. It is overridden by the same field in race variants.
|
|
496
|
+
* @minLength 1
|
|
497
|
+
*/
|
|
498
|
+
uncommon_disadvantages?: string;
|
|
499
|
+
errata?: Errata;
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* @title Die
|
|
503
|
+
*/
|
|
504
|
+
declare type Die = {
|
|
505
|
+
/**
|
|
506
|
+
* Number of dice of the same type. Example: 2 in 2D6.
|
|
507
|
+
* @integer
|
|
508
|
+
* @minimum 1
|
|
509
|
+
*/
|
|
510
|
+
number: number;
|
|
511
|
+
/**
|
|
512
|
+
* Number of sides on every die. Example: 6 in 2D6.
|
|
513
|
+
*/
|
|
514
|
+
sides: DieType;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* Number of sides on every dice. Example: 6 in 2D6.
|
|
518
|
+
*/
|
|
519
|
+
declare enum DieType {
|
|
520
|
+
D3 = 3,
|
|
521
|
+
D6 = 6,
|
|
522
|
+
D20 = 20
|
|
523
|
+
}
|
|
524
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @main Race
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Number of sides on every dice. Example: 6 in 2D6.
|
|
6
|
+
*/
|
|
7
|
+
var DieType;
|
|
8
|
+
(function (DieType) {
|
|
9
|
+
DieType[DieType["D3"] = 3] = "D3";
|
|
10
|
+
DieType[DieType["D6"] = 6] = "D6";
|
|
11
|
+
DieType[DieType["D20"] = 20] = "D20";
|
|
12
|
+
})(DieType || (DieType = {}));
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @main Region
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @title Region
|
|
6
|
+
*/
|
|
7
|
+
export declare type Region = {
|
|
8
|
+
/**
|
|
9
|
+
* The region's identifier. An unique, increasing integer.
|
|
10
|
+
* @integer
|
|
11
|
+
* @minimum 1
|
|
12
|
+
*/
|
|
13
|
+
id: number;
|
|
14
|
+
/**
|
|
15
|
+
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
16
|
+
* @minProperties 1
|
|
17
|
+
*/
|
|
18
|
+
translations: {
|
|
19
|
+
/**
|
|
20
|
+
* @patternProperties ^[a-z]{2}-[A-Z]{2}$
|
|
21
|
+
*/
|
|
22
|
+
[localeId: string]: {
|
|
23
|
+
/**
|
|
24
|
+
* The region name.
|
|
25
|
+
* @minLength 1
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @main Service
|
|
3
|
+
*/
|
|
4
|
+
import { Errata } from "./source/_Erratum";
|
|
5
|
+
import { PublicationRefs } from "./source/_PublicationRef";
|
|
6
|
+
/**
|
|
7
|
+
* @title Service of Summoned Creatures
|
|
8
|
+
*/
|
|
9
|
+
export declare type Service = {
|
|
10
|
+
/**
|
|
11
|
+
* The service's identifier. An unique, increasing integer.
|
|
12
|
+
* @integer
|
|
13
|
+
* @minimum 1
|
|
14
|
+
*/
|
|
15
|
+
id: number;
|
|
16
|
+
src: PublicationRefs;
|
|
17
|
+
/**
|
|
18
|
+
* All translations for the entry, identified by IETF language tag (BCP47).
|
|
19
|
+
* @minProperties 1
|
|
20
|
+
*/
|
|
21
|
+
translations: {
|
|
22
|
+
/**
|
|
23
|
+
* @patternProperties ^[a-z]{2}-[A-Z]{2}$
|
|
24
|
+
*/
|
|
25
|
+
[localeId: string]: {
|
|
26
|
+
/**
|
|
27
|
+
* The name of the service.
|
|
28
|
+
* @minLength 1
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* The description of the service.
|
|
33
|
+
* @markdown
|
|
34
|
+
* @minLength 1
|
|
35
|
+
*/
|
|
36
|
+
description: string;
|
|
37
|
+
errata?: Errata;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|