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.
Files changed (129) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/config.d.ts +4 -4
  3. package/lib/config.js +4 -4
  4. package/lib/types/Blessing.d.ts +3 -0
  5. package/lib/types/Cantrip.d.ts +3 -0
  6. package/lib/types/Culture.d.ts +18 -22
  7. package/lib/types/Culture.js +38 -0
  8. package/lib/types/Lessons_Curriculum.d.ts +4 -0
  9. package/lib/types/Patron.d.ts +12 -18
  10. package/lib/types/Patron.js +20 -0
  11. package/lib/types/Profession.d.ts +8 -11
  12. package/lib/types/Profession.js +6 -0
  13. package/lib/types/Race.d.ts +5 -7
  14. package/lib/types/Race.js +11 -0
  15. package/lib/types/Service.d.ts +4 -5
  16. package/lib/types/Service.js +5 -0
  17. package/lib/types/Skill.d.ts +10 -14
  18. package/lib/types/Skill.js +19 -0
  19. package/lib/types/Talisman.d.ts +7 -11
  20. package/lib/types/Talisman.js +8 -0
  21. package/lib/types/_Activatable.d.ts +41 -25
  22. package/lib/types/_Activatable.js +44 -1
  23. package/lib/types/_ActivatableSelectOptionCategory.d.ts +21 -18
  24. package/lib/types/_ActivatableSelectOptionCategory.js +8 -1
  25. package/lib/types/_ActivatableSkillCheckResultBased.d.ts +8 -10
  26. package/lib/types/_ActivatableSkillCheckResultBased.js +16 -1
  27. package/lib/types/_ActivatableSkillRange.d.ts +8 -4
  28. package/lib/types/_ActivatableSkillTargetCategory.d.ts +4 -0
  29. package/lib/types/_DiseasePoison.d.ts +5 -7
  30. package/lib/types/_DiseasePoison.js +11 -1
  31. package/lib/types/_Sex.d.ts +4 -5
  32. package/lib/types/_Sex.js +8 -1
  33. package/lib/types/_SkillCheck.d.ts +6 -9
  34. package/lib/types/_SkillCheck.js +11 -1
  35. package/lib/types/_Spellwork.d.ts +1 -0
  36. package/lib/types/equipment/item/Armor.d.ts +4 -4
  37. package/lib/types/equipment/item/BandageOrRemedy.d.ts +33 -3
  38. package/lib/types/equipment/item/CeremonialItem.d.ts +38 -3
  39. package/lib/types/equipment/item/EquipmentOfBlessedOnes.d.ts +1 -14
  40. package/lib/types/equipment/item/IlluminationLightSource.d.ts +62 -0
  41. package/lib/types/equipment/item/IlluminationLightSource.js +9 -0
  42. package/lib/types/equipment/item/{HealingHerb.d.ts → IlluminationRefillsOrSupplies.d.ts} +2 -2
  43. package/lib/types/equipment/item/{HealingHerb.js → IlluminationRefillsOrSupplies.js} +1 -1
  44. package/lib/types/equipment/item/LuxuryGood.d.ts +33 -3
  45. package/lib/types/equipment/item/MusicalInstrument.d.ts +3 -8
  46. package/lib/types/equipment/item/Poison.d.ts +11 -9
  47. package/lib/types/equipment/item/Poison.js +7 -0
  48. package/lib/types/equipment/item/ToolOfTheTrade.d.ts +1 -1
  49. package/lib/types/equipment/item/Weapon.d.ts +1 -1
  50. package/lib/types/equipment/item/_Item.d.ts +9 -3
  51. package/lib/types/equipment/item/_MeleeWeapon.d.ts +2 -0
  52. package/lib/types/equipment/item/_RangedWeapon.d.ts +2 -0
  53. package/lib/types/magicalActions/AnimistPower.d.ts +2 -0
  54. package/lib/types/magicalActions/Curse.d.ts +1 -0
  55. package/lib/types/magicalActions/GeodeRitual.d.ts +2 -0
  56. package/lib/types/magicalActions/JesterTrick.d.ts +3 -0
  57. package/lib/types/magicalActions/_MusicTradition.d.ts +8 -10
  58. package/lib/types/magicalActions/_MusicTradition.js +10 -1
  59. package/lib/types/prerequisites/DisplayOption.d.ts +1 -0
  60. package/lib/types/prerequisites/PrerequisiteGroups.d.ts +1 -0
  61. package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.d.ts +4 -5
  62. package/lib/types/prerequisites/single/PrimaryAttributePrerequisite.js +5 -1
  63. package/lib/types/prerequisites/single/TextPrerequisite.d.ts +4 -5
  64. package/lib/types/prerequisites/single/TextPrerequisite.js +5 -1
  65. package/lib/types/prerequisites/single/TraditionPrerequisite.d.ts +8 -10
  66. package/lib/types/prerequisites/single/TraditionPrerequisite.js +18 -1
  67. package/lib/types/rule/CoreRule.d.ts +63 -5
  68. package/lib/types/rule/CoreRule.js +5 -0
  69. package/lib/types/rule/_Rule.d.ts +1 -0
  70. package/lib/types/source/Publication.d.ts +6 -9
  71. package/lib/types/source/Publication.js +10 -0
  72. package/lib/types/source/_PublicationRef.d.ts +2 -0
  73. package/lib/types/specialAbility/BlessedTradition.d.ts +3 -0
  74. package/lib/types/specialAbility/PactGift.d.ts +8 -10
  75. package/lib/types/specialAbility/PactGift.js +10 -0
  76. package/package.json +2 -2
  77. package/schema/Blessing.schema.json +24 -3
  78. package/schema/Cantrip.schema.json +24 -3
  79. package/schema/Culture.schema.json +21 -113
  80. package/schema/Lessons_Curriculum.schema.json +32 -4
  81. package/schema/Patron.schema.json +10 -98
  82. package/schema/Profession.schema.json +70 -47
  83. package/schema/Race.schema.json +4 -37
  84. package/schema/Service.schema.json +3 -25
  85. package/schema/Skill.schema.json +8 -74
  86. package/schema/Talisman.schema.json +6 -61
  87. package/schema/_Activatable.schema.json +183 -146
  88. package/schema/_ActivatableSelectOptionCategory.schema.json +97 -49
  89. package/schema/_ActivatableSkillCheckResultBased.schema.json +6 -50
  90. package/schema/_ActivatableSkillRange.schema.json +24 -4
  91. package/schema/_ActivatableSkillTargetCategory.schema.json +32 -4
  92. package/schema/_DiseasePoison.schema.json +4 -37
  93. package/schema/_Sex.schema.json +3 -25
  94. package/schema/_SkillCheck.schema.json +5 -49
  95. package/schema/_Spellwork.schema.json +8 -1
  96. package/schema/equipment/item/Armor.schema.json +26 -5
  97. package/schema/equipment/item/BandageOrRemedy.schema.json +44 -1
  98. package/schema/equipment/item/CeremonialItem.schema.json +50 -1
  99. package/schema/equipment/item/EquipmentOfBlessedOnes.schema.json +0 -13
  100. package/schema/equipment/item/IlluminationLightSource.schema.json +122 -0
  101. package/schema/equipment/item/IlluminationRefillsOrSupplies.schema.json +10 -0
  102. package/schema/equipment/item/LuxuryGood.schema.json +44 -1
  103. package/schema/equipment/item/MusicalInstrument.schema.json +4 -9
  104. package/schema/equipment/item/Poison.schema.json +45 -54
  105. package/schema/equipment/item/ToolOfTheTrade.schema.json +0 -1
  106. package/schema/equipment/item/Weapon.schema.json +1 -1
  107. package/schema/equipment/item/_Item.schema.json +52 -10
  108. package/schema/equipment/item/_MeleeWeapon.schema.json +16 -2
  109. package/schema/equipment/item/_RangedWeapon.schema.json +16 -2
  110. package/schema/magicalActions/AnimistPower.schema.json +16 -2
  111. package/schema/magicalActions/Curse.schema.json +8 -1
  112. package/schema/magicalActions/GeodeRitual.schema.json +16 -2
  113. package/schema/magicalActions/JesterTrick.schema.json +24 -3
  114. package/schema/magicalActions/_MusicTradition.schema.json +6 -50
  115. package/schema/prerequisites/DisplayOption.schema.json +8 -1
  116. package/schema/prerequisites/PrerequisiteGroups.schema.json +8 -1
  117. package/schema/prerequisites/single/PrimaryAttributePrerequisite.schema.json +3 -25
  118. package/schema/prerequisites/single/TextPrerequisite.schema.json +3 -25
  119. package/schema/prerequisites/single/TraditionPrerequisite.schema.json +6 -50
  120. package/schema/rule/CoreRule.schema.json +475 -84
  121. package/schema/rule/_Rule.schema.json +8 -1
  122. package/schema/source/Publication.schema.json +5 -49
  123. package/schema/source/_PublicationRef.schema.json +16 -2
  124. package/schema/specialAbility/BlessedTradition.schema.json +24 -3
  125. package/schema/specialAbility/PactGift.schema.json +6 -50
  126. package/lib/types/equipment/item/Illumination.d.ts +0 -6
  127. package/lib/types/equipment/item/Illumination.js +0 -5
  128. package/schema/equipment/item/HealingHerb.schema.json +0 -10
  129. package/schema/equipment/item/Illumination.schema.json +0 -10
@@ -233,22 +233,19 @@ export declare type Effect = NonEmptyMarkdown;
233
233
  /**
234
234
  * The definition of how the combat special ability can be used in combat.
235
235
  */
236
- export declare type CombatSpecialAbilityUsageType = {
237
- tag: "Passive";
238
- } | {
239
- tag: "BasicManeuver";
240
- } | {
241
- tag: "SpecialManeuver";
242
- };
236
+ export declare enum CombatSpecialAbilityUsageType {
237
+ Passive = "Passive",
238
+ BasicManeuver = "BasicManeuver",
239
+ SpecialManeuver = "SpecialManeuver"
240
+ }
243
241
  /**
244
242
  * The definition of if the combat special ability can be used when armed or
245
243
  * when unarmed.
246
244
  */
247
- export declare type CombatSpecialAbilityType = {
248
- tag: "Armed";
249
- } | {
250
- tag: "Unarmed";
251
- };
245
+ export declare enum CombatSpecialAbilityType {
246
+ Armed = "Armed",
247
+ Unarmed = "Unarmed"
248
+ }
252
249
  /**
253
250
  * Registers new skill applications, which get enabled once this entry is
254
251
  * activated. It specifies an entry-unique identifier and the skill it belongs
@@ -367,6 +364,7 @@ export declare type Penalty = {
367
364
  by_attack: PenaltyByAttack;
368
365
  } | {
369
366
  tag: "DependsOnHitZone";
367
+ depends_on_hit_zone: {};
370
368
  };
371
369
  export declare type SinglePenalty = {
372
370
  /**
@@ -512,9 +510,9 @@ export declare type PenaltyByAttackOrderItem = {
512
510
  * Set if a predefined different word should be used instead of the word
513
511
  * `attack` for display purposes.
514
512
  */
515
- export declare type PenaltyByAttackReplacement = {
516
- tag: "Throw";
517
- };
513
+ export declare enum PenaltyByAttackReplacement {
514
+ Throw = "Throw"
515
+ }
518
516
  export declare type EnchantmentCost = {
519
517
  tag: "ArcaneEnergyCost";
520
518
  arcane_energy_cost: ArcaneEnergyCost;
@@ -545,6 +543,7 @@ export declare type ArcaneEnergyCost = {
545
543
  none?: NoArcaneEnergyCost;
546
544
  } | {
547
545
  tag: "Variable";
546
+ variable: {};
548
547
  };
549
548
  export declare type FixedArcaneEnergyCost = {
550
549
  /**
@@ -579,11 +578,10 @@ export declare type FixedArcaneEnergyCost = {
579
578
  * in a compressed way (e.g. `1 AE per level`) or in a verbose way (e.g. `1
580
579
  * AE for level I; 2 AE for level II`).
581
580
  */
582
- export declare type FixedArcaneEnergyCostPerLevel = {
583
- tag: "Compressed";
584
- } | {
585
- tag: "Verbose";
586
- };
581
+ export declare enum FixedArcaneEnergyCostPerLevel {
582
+ Compressed = "Compressed",
583
+ Verbose = "Verbose"
584
+ }
587
585
  /**
588
586
  * @minProperties 1
589
587
  */
@@ -650,11 +648,10 @@ export declare type IndefiniteArcaneEnergyCost = {
650
648
  /**
651
649
  * Defines how the the `value` is set off against the check result.
652
650
  */
653
- export declare type IndefiniteArcaneEnergyCostArithmetic = {
654
- tag: "Add";
655
- } | {
656
- tag: "Subtract";
657
- };
651
+ export declare enum IndefiniteArcaneEnergyCostArithmetic {
652
+ Add = "Add",
653
+ Subtract = "Subtract"
654
+ }
658
655
  export declare type IndefiniteArcaneEnergyCostModifier = {
659
656
  /**
660
657
  * The arithmetic how to apply the `value` to the `base`.
@@ -1020,6 +1017,7 @@ export declare type BindingCostMapOptionTranslation = {
1020
1017
  */
1021
1018
  export declare type Property = {
1022
1019
  tag: "DependingOnSelection";
1020
+ depending_on_selection: {};
1023
1021
  } | {
1024
1022
  tag: "Fixed";
1025
1023
  fixed: PropertyReference;
@@ -1113,8 +1111,10 @@ export declare type AdvancedSpecialAbilities = [
1113
1111
  ];
1114
1112
  export declare type ApplicableCombatTechniques = {
1115
1113
  tag: "None";
1114
+ none: {};
1116
1115
  } | {
1117
1116
  tag: "DependingOnCombatStyle";
1117
+ depending_on_combat_style: {};
1118
1118
  } | {
1119
1119
  tag: "All";
1120
1120
  all: AllApplicableCombatTechniques;
@@ -1161,10 +1161,13 @@ export declare type SpecificApplicableCombatTechnique = {
1161
1161
  };
1162
1162
  export declare type ApplicableAllCombatTechniquesRestriction = {
1163
1163
  tag: "Improvised";
1164
+ improvised: {};
1164
1165
  } | {
1165
1166
  tag: "PointedBlade";
1167
+ pointed_blade: {};
1166
1168
  } | {
1167
1169
  tag: "Mount";
1170
+ mount: {};
1168
1171
  } | {
1169
1172
  tag: "Race";
1170
1173
  race: ApplicableCombatTechniquesRaceRestriction;
@@ -1174,16 +1177,22 @@ export declare type ApplicableAllCombatTechniquesRestriction = {
1174
1177
  };
1175
1178
  export declare type ApplicableCloseCombatTechniquesRestriction = {
1176
1179
  tag: "Improvised";
1180
+ improvised: {};
1177
1181
  } | {
1178
1182
  tag: "PointedBlade";
1183
+ pointed_blade: {};
1179
1184
  } | {
1180
1185
  tag: "Mount";
1186
+ mount: {};
1181
1187
  } | {
1182
1188
  tag: "HasParry";
1189
+ has_parry: {};
1183
1190
  } | {
1184
1191
  tag: "OneHanded";
1192
+ one_handed: {};
1185
1193
  } | {
1186
1194
  tag: "ParryingWeapon";
1195
+ parrying_weapon: {};
1187
1196
  } | {
1188
1197
  tag: "Race";
1189
1198
  race: ApplicableCombatTechniquesRaceRestriction;
@@ -1193,10 +1202,13 @@ export declare type ApplicableCloseCombatTechniquesRestriction = {
1193
1202
  };
1194
1203
  export declare type ApplicableRangedCombatTechniquesRestriction = {
1195
1204
  tag: "Improvised";
1205
+ improvised: {};
1196
1206
  } | {
1197
1207
  tag: "PointedBlade";
1208
+ pointed_blade: {};
1198
1209
  } | {
1199
1210
  tag: "Mount";
1211
+ mount: {};
1200
1212
  } | {
1201
1213
  tag: "Race";
1202
1214
  race: ApplicableCombatTechniquesRaceRestriction;
@@ -1206,10 +1218,13 @@ export declare type ApplicableRangedCombatTechniquesRestriction = {
1206
1218
  };
1207
1219
  export declare type ApplicableSpecificCombatTechniquesRestriction = {
1208
1220
  tag: "Improvised";
1221
+ improvised: {};
1209
1222
  } | {
1210
1223
  tag: "PointedBlade";
1224
+ pointed_blade: {};
1211
1225
  } | {
1212
1226
  tag: "Mount";
1227
+ mount: {};
1213
1228
  } | {
1214
1229
  tag: "Race";
1215
1230
  race: ApplicableCombatTechniquesRaceRestriction;
@@ -1253,6 +1268,7 @@ export declare type AdventurePointsValue = {
1253
1268
  by_level: AdventurePointsValueByLevel;
1254
1269
  } | {
1255
1270
  tag: "Indefinite";
1271
+ indefinite: {};
1256
1272
  };
1257
1273
  /**
1258
1274
  * A fixed adventure points value. If the entry has levels, this is the cost per
@@ -2,7 +2,50 @@
2
2
  * General type specifications used by multiple activatable entries.
3
3
  * @title Activatable
4
4
  */
5
- export {};
5
+ /**
6
+ * The definition of how the combat special ability can be used in combat.
7
+ */
8
+ export var CombatSpecialAbilityUsageType;
9
+ (function (CombatSpecialAbilityUsageType) {
10
+ CombatSpecialAbilityUsageType["Passive"] = "Passive";
11
+ CombatSpecialAbilityUsageType["BasicManeuver"] = "BasicManeuver";
12
+ CombatSpecialAbilityUsageType["SpecialManeuver"] = "SpecialManeuver";
13
+ })(CombatSpecialAbilityUsageType || (CombatSpecialAbilityUsageType = {}));
14
+ /**
15
+ * The definition of if the combat special ability can be used when armed or
16
+ * when unarmed.
17
+ */
18
+ export var CombatSpecialAbilityType;
19
+ (function (CombatSpecialAbilityType) {
20
+ CombatSpecialAbilityType["Armed"] = "Armed";
21
+ CombatSpecialAbilityType["Unarmed"] = "Unarmed";
22
+ })(CombatSpecialAbilityType || (CombatSpecialAbilityType = {}));
23
+ /**
24
+ * Set if a predefined different word should be used instead of the word
25
+ * `attack` for display purposes.
26
+ */
27
+ export var PenaltyByAttackReplacement;
28
+ (function (PenaltyByAttackReplacement) {
29
+ PenaltyByAttackReplacement["Throw"] = "Throw";
30
+ })(PenaltyByAttackReplacement || (PenaltyByAttackReplacement = {}));
31
+ /**
32
+ * The AE cost are per level of the enchantment. It may either be displayed
33
+ * in a compressed way (e.g. `1 AE per level`) or in a verbose way (e.g. `1
34
+ * AE for level I; 2 AE for level II`).
35
+ */
36
+ export var FixedArcaneEnergyCostPerLevel;
37
+ (function (FixedArcaneEnergyCostPerLevel) {
38
+ FixedArcaneEnergyCostPerLevel["Compressed"] = "Compressed";
39
+ FixedArcaneEnergyCostPerLevel["Verbose"] = "Verbose";
40
+ })(FixedArcaneEnergyCostPerLevel || (FixedArcaneEnergyCostPerLevel = {}));
41
+ /**
42
+ * Defines how the the `value` is set off against the check result.
43
+ */
44
+ export var IndefiniteArcaneEnergyCostArithmetic;
45
+ (function (IndefiniteArcaneEnergyCostArithmetic) {
46
+ IndefiniteArcaneEnergyCostArithmetic["Add"] = "Add";
47
+ IndefiniteArcaneEnergyCostArithmetic["Subtract"] = "Subtract";
48
+ })(IndefiniteArcaneEnergyCostArithmetic || (IndefiniteArcaneEnergyCostArithmetic = {}));
6
49
  // "Input": {
7
50
  // "description": "A string that is used as a placeholder text for an input field.",
8
51
  // "type": "string",
@@ -3,24 +3,34 @@ import { LocaleMap } from "./_LocaleMap.js";
3
3
  import { CeremonyReference, CloseCombatTechniqueReference, ElementReference, LiturgicalChantReference, RangedCombatTechniqueReference, RitualReference, SkillGroupReference, SpellReference } from "./_SimpleReferences.js";
4
4
  export declare type SelectOptionCategory = {
5
5
  tag: "Blessings";
6
+ blessings: {};
6
7
  } | {
7
8
  tag: "Cantrips";
9
+ cantrips: {};
8
10
  } | {
9
11
  tag: "TradeSecrets";
12
+ trade_secrets: {};
10
13
  } | {
11
14
  tag: "Scripts";
15
+ scripts: {};
12
16
  } | {
13
17
  tag: "AnimalShapes";
18
+ animal_shapes: {};
14
19
  } | {
15
20
  tag: "ArcaneBardTraditions";
21
+ arcane_bard_traditions: {};
16
22
  } | {
17
23
  tag: "ArcaneDancerTraditions";
24
+ arcane_dancer_traditions: {};
18
25
  } | {
19
26
  tag: "SexPractices";
27
+ sex_practices: {};
20
28
  } | {
21
29
  tag: "Races";
30
+ races: {};
22
31
  } | {
23
32
  tag: "Cultures";
33
+ cultures: {};
24
34
  } | {
25
35
  tag: "BlessedTraditions";
26
36
  blessed_traditions: BlessedTraditionsSelectOptionCategory;
@@ -143,23 +153,20 @@ export declare type SkillsSelectOptionCategory = {
143
153
  };
144
154
  export declare type SkillsSelectOptionCategoryCategory = {
145
155
  tag: "Skills";
146
- skills?: SkillSelectOptionCategoryCategory;
156
+ skills: SkillSelectOptionCategoryCategory;
147
157
  } | {
148
158
  tag: "Spells";
149
- spells?: GenericSkillsSelectOptionCategoryCategory<SpellReference>;
159
+ spells: GenericSkillsSelectOptionCategoryCategory<SpellReference>;
150
160
  } | {
151
161
  tag: "Rituals";
152
- rituals?: GenericSkillsSelectOptionCategoryCategory<RitualReference>;
162
+ rituals: GenericSkillsSelectOptionCategoryCategory<RitualReference>;
153
163
  } | {
154
164
  tag: "LiturgicalChants";
155
- liturgical_chants?: GenericSkillsSelectOptionCategoryCategory<LiturgicalChantReference>;
165
+ liturgical_chants: GenericSkillsSelectOptionCategoryCategory<LiturgicalChantReference>;
156
166
  } | {
157
167
  tag: "Ceremonies";
158
- ceremonies?: GenericSkillsSelectOptionCategoryCategory<CeremonyReference>;
168
+ ceremonies: GenericSkillsSelectOptionCategoryCategory<CeremonyReference>;
159
169
  };
160
- /**
161
- * @minProperties 1
162
- */
163
170
  export declare type SkillSelectOptionCategoryCategory = {
164
171
  /**
165
172
  * Only include entries of the specified groups.
@@ -208,10 +215,10 @@ export declare type CombatTechniquesSelectOptionCategory = {
208
215
  };
209
216
  export declare type CombatTechniquesSelectOptionCategoryCategory = {
210
217
  tag: "CloseCombatTechniques";
211
- close_combat_techniques?: GenericSkillsSelectOptionCategoryCategory<CloseCombatTechniqueReference>;
218
+ close_combat_techniques: GenericSkillsSelectOptionCategoryCategory<CloseCombatTechniqueReference>;
212
219
  } | {
213
220
  tag: "RangedCombatTechniques";
214
- ranged_combat_techniques?: GenericSkillsSelectOptionCategoryCategory<RangedCombatTechniqueReference>;
221
+ ranged_combat_techniques: GenericSkillsSelectOptionCategoryCategory<RangedCombatTechniqueReference>;
215
222
  };
216
223
  export declare type SkillApplicationOrUse = {
217
224
  /**
@@ -233,9 +240,6 @@ export declare type SkillApplicationOrUseTranslation = {
233
240
  */
234
241
  name: string;
235
242
  };
236
- /**
237
- * @minProperties 1
238
- */
239
243
  export declare type GenericSkillsSelectOptionCategoryCategory<Ref> = {
240
244
  /**
241
245
  * Only include (`Intersection`) or exclude (`Difference`) specific entries.
@@ -259,11 +263,10 @@ export declare type SpecificFromSkillSelectOptionCategoryCategory<Ref> = {
259
263
  /**
260
264
  * Only include (`Intersection`) or exclude (`Difference`) specific entries.
261
265
  */
262
- export declare type SpecificFromSkillSelectOptionCategoryCategoryOperation = {
263
- tag: "Intersection";
264
- } | {
265
- tag: "Difference";
266
- };
266
+ export declare enum SpecificFromSkillSelectOptionCategoryCategoryOperation {
267
+ Intersection = "Intersection",
268
+ Difference = "Difference"
269
+ }
267
270
  export declare type SkillSelectOptionCategoryPrerequisite = {
268
271
  tag: "Self";
269
272
  self: SelfPrerequisite;
@@ -1 +1,8 @@
1
- export {};
1
+ /**
2
+ * Only include (`Intersection`) or exclude (`Difference`) specific entries.
3
+ */
4
+ export var SpecificFromSkillSelectOptionCategoryCategoryOperation;
5
+ (function (SpecificFromSkillSelectOptionCategoryCategoryOperation) {
6
+ SpecificFromSkillSelectOptionCategoryCategoryOperation["Intersection"] = "Intersection";
7
+ SpecificFromSkillSelectOptionCategoryCategoryOperation["Difference"] = "Difference";
8
+ })(SpecificFromSkillSelectOptionCategoryCategoryOperation || (SpecificFromSkillSelectOptionCategoryCategoryOperation = {}));
@@ -1,19 +1,17 @@
1
1
  /**
2
2
  * Defines the derived (unitless) value.
3
3
  */
4
- export declare type CheckResultValue = {
5
- tag: "QualityLevels";
6
- } | {
7
- tag: "SkillPoints";
8
- };
4
+ export declare enum CheckResultValue {
5
+ QualityLevels = "QualityLevels",
6
+ SkillPoints = "SkillPoints"
7
+ }
9
8
  /**
10
9
  * Defines how the the `value` is set off against the check result.
11
10
  */
12
- export declare type CheckResultArithmetic = {
13
- tag: "Multiply";
14
- } | {
15
- tag: "Divide";
16
- };
11
+ export declare enum CheckResultArithmetic {
12
+ Multiply = "Multiply",
13
+ Divide = "Divide"
14
+ }
17
15
  export declare type CheckResultBasedModifier = {
18
16
  /**
19
17
  * The arithmetic how to apply the `value` to the `base`.
@@ -1 +1,16 @@
1
- export {};
1
+ /**
2
+ * Defines the derived (unitless) value.
3
+ */
4
+ export var CheckResultValue;
5
+ (function (CheckResultValue) {
6
+ CheckResultValue["QualityLevels"] = "QualityLevels";
7
+ CheckResultValue["SkillPoints"] = "SkillPoints";
8
+ })(CheckResultValue || (CheckResultValue = {}));
9
+ /**
10
+ * Defines how the the `value` is set off against the check result.
11
+ */
12
+ export var CheckResultArithmetic;
13
+ (function (CheckResultArithmetic) {
14
+ CheckResultArithmetic["Multiply"] = "Multiply";
15
+ CheckResultArithmetic["Divide"] = "Divide";
16
+ })(CheckResultArithmetic || (CheckResultArithmetic = {}));
@@ -13,13 +13,17 @@ export declare type RangeValue = {
13
13
  modifiable: ModifiableRange;
14
14
  } | {
15
15
  tag: "Sight";
16
+ sight: {};
16
17
  } | {
17
18
  tag: "Self";
18
- } | {
19
- /**
20
- * German: *dereumfassend*
21
- */
19
+ self: {};
20
+ }
21
+ /**
22
+ * German: *dereumfassend*
23
+ */
24
+ | {
22
25
  tag: "Global";
26
+ global: {};
23
27
  } | {
24
28
  tag: "Fixed";
25
29
  fixed: FixedRange;
@@ -23,12 +23,16 @@ export declare type SpecificTargetCategoryTranslation = {
23
23
  };
24
24
  export declare type TargetCategoryIdentifier = {
25
25
  tag: "Self";
26
+ self: {};
26
27
  } | {
27
28
  tag: "Zone";
29
+ zone: {};
28
30
  } | {
29
31
  tag: "LiturgicalChantsAndCeremonies";
32
+ liturgical_chants_and_ceremonies: {};
30
33
  } | {
31
34
  tag: "Cantrips";
35
+ cantrips: {};
32
36
  } | {
33
37
  tag: "Predefined";
34
38
  predefined: TargetCategoryReference;
@@ -11,13 +11,11 @@ import { NonEmptyMarkdown, NonEmptyString } from "./_NonEmptyString.js";
11
11
  * disease roll. It may also happen that the lower of both is applied as a
12
12
  * penalty.
13
13
  */
14
- export declare type Resistance = {
15
- tag: "Spirit";
16
- } | {
17
- tag: "Toughness";
18
- } | {
19
- tag: "LowerOfSpiritAndToughness";
20
- };
14
+ export declare enum Resistance {
15
+ Spirit = "Spirit",
16
+ Toughness = "Toughness",
17
+ LowerOfSpiritAndToughness = "LowerOfSpiritAndToughness"
18
+ }
21
19
  /**
22
20
  * What causes the disease? The GM rolls 1D20 to see if a character gets
23
21
  * infected. If the infection check succeeds, the GM makes a disease check to
@@ -2,4 +2,14 @@
2
2
  * This file defines some shared types for different diseases and poisons.
3
3
  * @title Disease (shared)
4
4
  */
5
- export {};
5
+ /**
6
+ * Depending on the disease, apply Spirit or Toughness as a penalty to the
7
+ * disease roll. It may also happen that the lower of both is applied as a
8
+ * penalty.
9
+ */
10
+ export var Resistance;
11
+ (function (Resistance) {
12
+ Resistance["Spirit"] = "Spirit";
13
+ Resistance["Toughness"] = "Toughness";
14
+ Resistance["LowerOfSpiritAndToughness"] = "LowerOfSpiritAndToughness";
15
+ })(Resistance || (Resistance = {}));
@@ -4,8 +4,7 @@
4
4
  /**
5
5
  * @title Binary Sex
6
6
  */
7
- export declare type BinarySex = {
8
- tag: "Male";
9
- } | {
10
- tag: "Female";
11
- };
7
+ export declare enum BinarySex {
8
+ Male = "Male",
9
+ Female = "Female"
10
+ }
package/lib/types/_Sex.js CHANGED
@@ -1,4 +1,11 @@
1
1
  /**
2
2
  * @main BinarySex
3
3
  */
4
- export {};
4
+ /**
5
+ * @title Binary Sex
6
+ */
7
+ export var BinarySex;
8
+ (function (BinarySex) {
9
+ BinarySex["Male"] = "Male";
10
+ BinarySex["Female"] = "Female";
11
+ })(BinarySex || (BinarySex = {}));
@@ -12,12 +12,9 @@ export declare type SkillCheck = [
12
12
  * A specific value that represents a penalty for the associated skill check.
13
13
  * @title Skill Check Penalty
14
14
  */
15
- export declare type SkillCheckPenalty = {
16
- tag: "SPI";
17
- } | {
18
- tag: "SPI/2";
19
- } | {
20
- tag: "TOU";
21
- } | {
22
- tag: "SPI/TOU";
23
- };
15
+ export declare enum SkillCheckPenalty {
16
+ Spirit = "Spirit",
17
+ HalfOfSpirit = "HalfOfSpirit",
18
+ Toughness = "Toughness",
19
+ HigherOfSpiritAndToughness = "HigherOfSpiritAndToughness"
20
+ }
@@ -1 +1,11 @@
1
- export {};
1
+ /**
2
+ * A specific value that represents a penalty for the associated skill check.
3
+ * @title Skill Check Penalty
4
+ */
5
+ export var SkillCheckPenalty;
6
+ (function (SkillCheckPenalty) {
7
+ SkillCheckPenalty["Spirit"] = "Spirit";
8
+ SkillCheckPenalty["HalfOfSpirit"] = "HalfOfSpirit";
9
+ SkillCheckPenalty["Toughness"] = "Toughness";
10
+ SkillCheckPenalty["HigherOfSpiritAndToughness"] = "HigherOfSpiritAndToughness";
11
+ })(SkillCheckPenalty || (SkillCheckPenalty = {}));
@@ -6,6 +6,7 @@ import { MagicalTraditionIdentifier } from "./_Identifier.js";
6
6
  */
7
7
  export declare type Traditions = {
8
8
  tag: "General";
9
+ general: {};
9
10
  } | {
10
11
  tag: "Specific";
11
12
  specific: SpecificTraditions;
@@ -150,17 +150,17 @@ export declare type ArmorType = {
150
150
  */
151
151
  export declare type HitZone = {
152
152
  tag: "Head";
153
- head?: HeadHitZone;
153
+ head: HeadHitZone;
154
154
  } | {
155
155
  tag: "Torso";
156
+ torso: {};
156
157
  } | {
157
158
  tag: "Arms";
159
+ arms: {};
158
160
  } | {
159
161
  tag: "Legs";
162
+ legs: {};
160
163
  };
161
- /**
162
- * @minProperties 1
163
- */
164
164
  export declare type HeadHitZone = {
165
165
  /**
166
166
  * In some cases, multiple armors for the same hit zone can be combined.
@@ -1,6 +1,36 @@
1
1
  /**
2
2
  * @main BandageOrRemedy
3
3
  */
4
- import { DefaultItem } from "./_Item.js";
5
- export declare type BandageOrRemedy = DefaultItem;
6
- export declare const validateSchema: import("../../../validation/schema.js").TypeValidator<DefaultItem>;
4
+ import { PublicationRefs } from "../../source/_PublicationRef.js";
5
+ import { LocaleMap } from "../../_LocaleMap.js";
6
+ import { CombatUse, Complexity, Cost, DefaultItemTranslation, StructurePoints, Weight } from "./_Item.js";
7
+ export declare type BandageOrRemedy = {
8
+ /**
9
+ * The cost in silverthalers.
10
+ */
11
+ cost: Cost;
12
+ /**
13
+ * The weight in kg.
14
+ */
15
+ weight: Weight;
16
+ /**
17
+ * The complexity of crafting the item.
18
+ */
19
+ complexity?: Complexity;
20
+ /**
21
+ * The structure points of the item. Use an array if the item consists of
22
+ * multiple components that have individual structure points.
23
+ */
24
+ structure_points?: StructurePoints;
25
+ /**
26
+ * The item can also be used either as an improvised weapon or as an armor,
27
+ * although this is not the primary use case of the item.
28
+ */
29
+ combat_use?: CombatUse;
30
+ src: PublicationRefs;
31
+ /**
32
+ * All translations for the entry, identified by IETF language tag (BCP47).
33
+ */
34
+ translations: LocaleMap<DefaultItemTranslation>;
35
+ };
36
+ export declare const validateSchema: import("../../../validation/schema.js").TypeValidator<BandageOrRemedy>;
@@ -1,6 +1,41 @@
1
1
  /**
2
2
  * @main CeremonialItem
3
3
  */
4
- import { DefaultItem } from "./_Item.js";
5
- export declare type CeremonialItem = DefaultItem;
6
- export declare const validateSchema: import("../../../validation/schema.js").TypeValidator<DefaultItem>;
4
+ import { PublicationRefs } from "../../source/_PublicationRef.js";
5
+ import { LocaleMap } from "../../_LocaleMap.js";
6
+ import { BlessedTraditionReference } from "../../_SimpleReferences.js";
7
+ import { CombatUse, Complexity, Cost, DefaultItemTranslation, StructurePoints, Weight } from "./_Item.js";
8
+ export declare type CeremonialItem = {
9
+ /**
10
+ * The cost in silverthalers.
11
+ */
12
+ cost: Cost;
13
+ /**
14
+ * The weight in kg.
15
+ */
16
+ weight: Weight;
17
+ /**
18
+ * The complexity of crafting the item.
19
+ */
20
+ complexity?: Complexity;
21
+ /**
22
+ * The structure points of the item. Use an array if the item consists of
23
+ * multiple components that have individual structure points.
24
+ */
25
+ structure_points: StructurePoints;
26
+ /**
27
+ * The deity associated with the equipment item.
28
+ */
29
+ associated_tradition: BlessedTraditionReference;
30
+ /**
31
+ * The item can also be used either as an improvised weapon or as an armor,
32
+ * although this is not the primary use case of the item.
33
+ */
34
+ combat_use?: CombatUse;
35
+ src: PublicationRefs;
36
+ /**
37
+ * All translations for the entry, identified by IETF language tag (BCP47).
38
+ */
39
+ translations: LocaleMap<DefaultItemTranslation>;
40
+ };
41
+ export declare const validateSchema: import("../../../validation/schema.js").TypeValidator<CeremonialItem>;