optolith-database-schema 0.21.1 → 0.22.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 +30 -0
- package/gen/types.d.ts +67 -4
- package/lib/types/Advantage.d.ts +136 -1
- package/lib/types/Advantage.js +6 -1
- package/lib/types/Disadvantage.d.ts +66 -1
- package/lib/types/Disadvantage.js +4 -1
- package/lib/types/Locale.d.ts +2 -2
- package/lib/types/Profession.js +10 -12
- package/lib/types/SkillModificationLevel.js +3 -3
- package/lib/types/_Activatable.d.ts +1 -1900
- package/lib/types/_Activatable.js +1 -1392
- package/lib/types/_ActivatableAdvanced.d.ts +50 -0
- package/lib/types/_ActivatableAdvanced.js +97 -0
- package/lib/types/_ActivatableAdventurePointsValue.d.ts +152 -0
- package/lib/types/_ActivatableAdventurePointsValue.js +141 -0
- package/lib/types/_ActivatableAutomatic.d.ts +71 -0
- package/lib/types/_ActivatableAutomatic.js +64 -0
- package/lib/types/_ActivatableCombat.d.ts +124 -0
- package/lib/types/_ActivatableCombat.js +359 -0
- package/lib/types/_ActivatableNonMundane.d.ts +399 -0
- package/lib/types/_ActivatableNonMundane.js +492 -0
- package/lib/types/_ActivatableSelectOptions.d.ts +1197 -0
- package/lib/types/_ActivatableSelectOptions.js +272 -0
- package/lib/types/_ActivatableSkillApplicationsAndUses.d.ts +109 -0
- package/lib/types/_ActivatableSkillApplicationsAndUses.js +78 -0
- package/lib/types/_Enhancements.js +2 -2
- package/lib/types/_Identifier.js +2 -1
- package/lib/types/_MathExpression.d.ts +1 -1
- package/lib/types/_SizeCategory.d.ts +15 -0
- package/lib/types/_SizeCategory.js +24 -0
- package/lib/types/equipment/item/_Item.js +1 -1
- package/lib/types/magicalActions/_MusicTradition.d.ts +1 -1
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +67 -1
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.js +5 -1
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/AdvancedKarmaSpecialAbility.js +4 -1
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/AdvancedMagicalSpecialAbility.js +4 -1
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/AdvancedSkillSpecialAbility.js +4 -1
- package/lib/types/specialAbility/AncestorGlyph.d.ts +66 -1
- package/lib/types/specialAbility/AncestorGlyph.js +3 -1
- package/lib/types/specialAbility/BlessedTradition.d.ts +66 -1
- package/lib/types/specialAbility/BlessedTradition.js +4 -1
- package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +67 -1
- package/lib/types/specialAbility/BrawlingSpecialAbility.js +4 -1
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/CeremonialItemSpecialAbility.js +6 -2
- package/lib/types/specialAbility/CombatSpecialAbility.d.ts +67 -1
- package/lib/types/specialAbility/CombatSpecialAbility.js +5 -1
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +67 -1
- package/lib/types/specialAbility/CombatStyleSpecialAbility.js +6 -1
- package/lib/types/specialAbility/CommandSpecialAbility.d.ts +67 -1
- package/lib/types/specialAbility/CommandSpecialAbility.js +4 -1
- package/lib/types/specialAbility/FamiliarSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/FamiliarSpecialAbility.js +3 -1
- package/lib/types/specialAbility/FatePointSexSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/FatePointSexSpecialAbility.js +3 -1
- package/lib/types/specialAbility/FatePointSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/FatePointSpecialAbility.js +4 -1
- package/lib/types/specialAbility/GeneralSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/GeneralSpecialAbility.js +4 -1
- package/lib/types/specialAbility/KarmaSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/KarmaSpecialAbility.js +3 -1
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.js +5 -1
- package/lib/types/specialAbility/LycantropicGift.d.ts +66 -1
- package/lib/types/specialAbility/LycantropicGift.js +3 -1
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/MagicStyleSpecialAbility.js +5 -1
- package/lib/types/specialAbility/MagicalSign.d.ts +2 -1
- package/lib/types/specialAbility/MagicalSign.js +8 -2
- package/lib/types/specialAbility/MagicalSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/MagicalSpecialAbility.js +4 -1
- package/lib/types/specialAbility/MagicalTradition.d.ts +66 -1
- package/lib/types/specialAbility/MagicalTradition.js +4 -1
- package/lib/types/specialAbility/PactGift.d.ts +128 -62
- package/lib/types/specialAbility/PactGift.js +6 -61
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/ProtectiveWardingCircleSpecialAbility.js +3 -1
- package/lib/types/specialAbility/Sermon.d.ts +66 -1
- package/lib/types/specialAbility/Sermon.js +3 -1
- package/lib/types/specialAbility/SexSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/SexSpecialAbility.js +4 -1
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/SikaryanDrainSpecialAbility.js +3 -1
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +66 -1
- package/lib/types/specialAbility/SkillStyleSpecialAbility.js +4 -1
- package/lib/types/specialAbility/VampiricGift.d.ts +66 -1
- package/lib/types/specialAbility/VampiricGift.js +3 -1
- package/lib/types/specialAbility/Vision.d.ts +66 -1
- package/lib/types/specialAbility/Vision.js +3 -1
- package/lib/types/specialAbility/sub/TradeSecret.js +2 -1
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/ArcaneOrbEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/AttireEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/AttireEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/BowlEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/BowlEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/CauldronEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/CauldronEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/ChronicleEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/ChronicleEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/DaggerRitual.d.ts +66 -1
- package/lib/types/traditionArtifacts/DaggerRitual.js +5 -2
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/FoolsHatEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/InstrumentEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/InstrumentEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/Krallenkettenzauber.d.ts +66 -1
- package/lib/types/traditionArtifacts/Krallenkettenzauber.js +5 -2
- package/lib/types/traditionArtifacts/OrbEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/OrbEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/RingEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/RingEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/SickleRitual.d.ts +66 -1
- package/lib/types/traditionArtifacts/SickleRitual.js +5 -2
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/SpellSwordEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/StaffEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/StaffEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/ToyEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/ToyEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/Trinkhornzauber.d.ts +66 -1
- package/lib/types/traditionArtifacts/Trinkhornzauber.js +5 -2
- package/lib/types/traditionArtifacts/WandEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/WandEnchantment.js +5 -2
- package/lib/types/traditionArtifacts/WeaponEnchantment.d.ts +66 -1
- package/lib/types/traditionArtifacts/WeaponEnchantment.js +5 -2
- package/package.json +12 -4
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Array, Boolean, Enum, EnumCase, IncludeIdentifier, Integer, Object, String, TypeAlias, TypeArgument } from "tsondb/schema/def";
|
|
2
|
+
export declare const usage_type: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"CombatSpecialAbilityUsageType", {
|
|
3
|
+
Passive: EnumCase<null>;
|
|
4
|
+
BasicManeuver: EnumCase<null>;
|
|
5
|
+
SpecialManeuver: EnumCase<null>;
|
|
6
|
+
}, []>>, true>;
|
|
7
|
+
export declare const type: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"CombatSpecialAbilityType", {
|
|
8
|
+
Armed: EnumCase<null>;
|
|
9
|
+
Unarmed: EnumCase<null>;
|
|
10
|
+
}, []>>, true>;
|
|
11
|
+
export declare const penalty: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"Penalty", {
|
|
12
|
+
Single: EnumCase<IncludeIdentifier<[], TypeAlias<"SinglePenalty", Object<{
|
|
13
|
+
value: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
14
|
+
applies_to_parry: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
15
|
+
}>, []>>>;
|
|
16
|
+
ByHandedness: EnumCase<IncludeIdentifier<[], TypeAlias<"PenaltyByHandedness", Object<{
|
|
17
|
+
one_handed: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
18
|
+
two_handed: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
19
|
+
applies_to_parry: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
20
|
+
}>, []>>>;
|
|
21
|
+
ByActivation: EnumCase<IncludeIdentifier<[], TypeAlias<"PenaltyByActivation", Object<{
|
|
22
|
+
active: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
23
|
+
inactive: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
24
|
+
applies_to_parry: import("tsondb/schema/def").MemberDecl<Boolean, false>;
|
|
25
|
+
}>, []>>>;
|
|
26
|
+
Selection: EnumCase<IncludeIdentifier<[], TypeAlias<"PenaltySelection", Object<{
|
|
27
|
+
options: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"PenaltySelectionOptions", {
|
|
28
|
+
Specific: EnumCase<IncludeIdentifier<[], TypeAlias<"SpecificPenaltySelectionOptions", Object<{
|
|
29
|
+
list: import("tsondb/schema/def").MemberDecl<Array<IncludeIdentifier<[], TypeAlias<"SpecificPenaltySelectionOption", Object<{
|
|
30
|
+
value: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
31
|
+
}>, []>>>, true>;
|
|
32
|
+
}>, []>>>;
|
|
33
|
+
Range: EnumCase<IncludeIdentifier<[], TypeAlias<"PenaltySelectionOptionsRange", Object<{
|
|
34
|
+
minimum: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
35
|
+
maximum: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
36
|
+
}>, []>>>;
|
|
37
|
+
}, []>>, true>;
|
|
38
|
+
}>, []>>>;
|
|
39
|
+
ByLevel: EnumCase<IncludeIdentifier<[], TypeAlias<"PenaltyByLevel", Object<{
|
|
40
|
+
levels: import("tsondb/schema/def").MemberDecl<Array<IncludeIdentifier<[], TypeAlias<"PenaltyByLevelLevel", Object<{
|
|
41
|
+
value: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
42
|
+
}>, []>>>, true>;
|
|
43
|
+
external: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], TypeAlias<"PenaltyByExternalLevel", Object<{
|
|
44
|
+
id: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"CombatRelatedSpecialAbilityIdentifier", {
|
|
45
|
+
CombatSpecialAbility: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
|
|
46
|
+
CombatStyleSpecialAbility: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
|
|
47
|
+
AdvancedCombatSpecialAbility: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
|
|
48
|
+
CommandSpecialAbility: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
|
|
49
|
+
}, []>>, true>;
|
|
50
|
+
}>, []>>, false>;
|
|
51
|
+
}>, []>>>;
|
|
52
|
+
ByAttack: EnumCase<IncludeIdentifier<[], TypeAlias<"PenaltyByAttack", Object<{
|
|
53
|
+
list: import("tsondb/schema/def").MemberDecl<Array<IncludeIdentifier<[], TypeAlias<"PenaltyByAttackOrderItem", Object<{
|
|
54
|
+
value: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
55
|
+
}>, []>>>, true>;
|
|
56
|
+
initial_order: import("tsondb/schema/def").MemberDecl<Integer, false>;
|
|
57
|
+
attack_replacement: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"PenaltyByAttackReplacement", {
|
|
58
|
+
Throw: EnumCase<null>;
|
|
59
|
+
}, []>>, false>;
|
|
60
|
+
}>, []>>>;
|
|
61
|
+
DependsOnHitZone: EnumCase<null>;
|
|
62
|
+
}, []>>, false>;
|
|
63
|
+
export declare const penalty_l10n: import("tsondb/schema/def").MemberDecl<String, false>;
|
|
64
|
+
export declare const combat_techniques: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"ApplicableCombatTechniques", {
|
|
65
|
+
None: EnumCase<null>;
|
|
66
|
+
DependingOnCombatStyle: EnumCase<null>;
|
|
67
|
+
All: EnumCase<IncludeIdentifier<[], TypeAlias<"AllApplicableCombatTechniques", Object<{
|
|
68
|
+
restrictions: import("tsondb/schema/def").MemberDecl<Array<IncludeIdentifier<[], Enum<"ApplicableAllCombatTechniquesRestriction", {
|
|
69
|
+
Improvised: EnumCase<null>;
|
|
70
|
+
PointedBlade: EnumCase<null>;
|
|
71
|
+
Mount: EnumCase<null>;
|
|
72
|
+
Race: EnumCase<IncludeIdentifier<[], TypeAlias<"ApplicableCombatTechniquesRaceRestriction", import("tsondb/schema/def").ReferenceIdentifierType, []>>>;
|
|
73
|
+
ExcludeCombatTechniques: EnumCase<IncludeIdentifier<import("tsondb/schema/def").TypeParameter<string, import("tsondb/schema/def").Type>[], TypeAlias<"ApplicableCombatTechniquesNegativeCombatTechniquesRestriction", Object<{
|
|
74
|
+
list: import("tsondb/schema/def").MemberDecl<Array<TypeArgument<import("tsondb/schema/def").TypeParameter<"Ref", import("tsondb/schema/def").Type>>>, true>;
|
|
75
|
+
}>, [Ref: import("tsondb/schema/def").TypeParameter<"Ref", import("tsondb/schema/def").Type>]>>>;
|
|
76
|
+
}, []>>>, false>;
|
|
77
|
+
}>, []>>>;
|
|
78
|
+
AllClose: EnumCase<IncludeIdentifier<[], TypeAlias<"AllApplicableCloseCombatTechniques", Object<{
|
|
79
|
+
restrictions: import("tsondb/schema/def").MemberDecl<Array<IncludeIdentifier<[], Enum<"ApplicableCloseCombatTechniquesRestriction", {
|
|
80
|
+
Improvised: EnumCase<null>;
|
|
81
|
+
PointedBlade: EnumCase<null>;
|
|
82
|
+
Mount: EnumCase<null>;
|
|
83
|
+
HasParry: EnumCase<null>;
|
|
84
|
+
OneHanded: EnumCase<null>;
|
|
85
|
+
TwoHanded: EnumCase<null>;
|
|
86
|
+
ParryingWeapon: EnumCase<null>;
|
|
87
|
+
Race: EnumCase<IncludeIdentifier<[], TypeAlias<"ApplicableCombatTechniquesRaceRestriction", import("tsondb/schema/def").ReferenceIdentifierType, []>>>;
|
|
88
|
+
ExcludeCombatTechniques: EnumCase<IncludeIdentifier<import("tsondb/schema/def").TypeParameter<string, import("tsondb/schema/def").Type>[], TypeAlias<"ApplicableCombatTechniquesNegativeCombatTechniquesRestriction", Object<{
|
|
89
|
+
list: import("tsondb/schema/def").MemberDecl<Array<TypeArgument<import("tsondb/schema/def").TypeParameter<"Ref", import("tsondb/schema/def").Type>>>, true>;
|
|
90
|
+
}>, [Ref: import("tsondb/schema/def").TypeParameter<"Ref", import("tsondb/schema/def").Type>]>>>;
|
|
91
|
+
}, []>>>, false>;
|
|
92
|
+
}>, []>>>;
|
|
93
|
+
AllRanged: EnumCase<IncludeIdentifier<[], TypeAlias<"AllApplicableRangedCombatTechniques", Object<{
|
|
94
|
+
restrictions: import("tsondb/schema/def").MemberDecl<Array<IncludeIdentifier<[], Enum<"ApplicableRangedCombatTechniquesRestriction", {
|
|
95
|
+
Improvised: EnumCase<null>;
|
|
96
|
+
PointedBlade: EnumCase<null>;
|
|
97
|
+
Mount: EnumCase<null>;
|
|
98
|
+
Race: EnumCase<IncludeIdentifier<[], TypeAlias<"ApplicableCombatTechniquesRaceRestriction", import("tsondb/schema/def").ReferenceIdentifierType, []>>>;
|
|
99
|
+
ExcludeCombatTechniques: EnumCase<IncludeIdentifier<import("tsondb/schema/def").TypeParameter<string, import("tsondb/schema/def").Type>[], TypeAlias<"ApplicableCombatTechniquesNegativeCombatTechniquesRestriction", Object<{
|
|
100
|
+
list: import("tsondb/schema/def").MemberDecl<Array<TypeArgument<import("tsondb/schema/def").TypeParameter<"Ref", import("tsondb/schema/def").Type>>>, true>;
|
|
101
|
+
}>, [Ref: import("tsondb/schema/def").TypeParameter<"Ref", import("tsondb/schema/def").Type>]>>>;
|
|
102
|
+
}, []>>>, false>;
|
|
103
|
+
}>, []>>>;
|
|
104
|
+
Specific: EnumCase<IncludeIdentifier<[], TypeAlias<"SpecificApplicableCombatTechniques", Object<{
|
|
105
|
+
list: import("tsondb/schema/def").MemberDecl<Array<IncludeIdentifier<[], TypeAlias<"SpecificApplicableCombatTechnique", Object<{
|
|
106
|
+
id: import("tsondb/schema/def").MemberDecl<IncludeIdentifier<[], Enum<"CombatTechniqueIdentifier", {
|
|
107
|
+
CloseCombatTechnique: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
|
|
108
|
+
RangedCombatTechnique: EnumCase<import("tsondb/schema/def").ReferenceIdentifierType>;
|
|
109
|
+
}, []>>, true>;
|
|
110
|
+
restrictions: import("tsondb/schema/def").MemberDecl<Array<IncludeIdentifier<[], Enum<"ApplicableSpecificCombatTechniquesRestriction", {
|
|
111
|
+
Improvised: EnumCase<null>;
|
|
112
|
+
PointedBlade: EnumCase<null>;
|
|
113
|
+
Mount: EnumCase<null>;
|
|
114
|
+
Race: EnumCase<IncludeIdentifier<[], TypeAlias<"ApplicableCombatTechniquesRaceRestriction", import("tsondb/schema/def").ReferenceIdentifierType, []>>>;
|
|
115
|
+
Level: EnumCase<IncludeIdentifier<[], TypeAlias<"ApplicableCombatTechniquesLevelRestriction", Object<{
|
|
116
|
+
level: import("tsondb/schema/def").MemberDecl<Integer, true>;
|
|
117
|
+
}>, []>>>;
|
|
118
|
+
Weapons: EnumCase<IncludeIdentifier<[], TypeAlias<"ApplicableCombatTechniquesWeaponRestriction", Object<{
|
|
119
|
+
list: import("tsondb/schema/def").MemberDecl<Array<import("tsondb/schema/def").ReferenceIdentifierType>, true>;
|
|
120
|
+
}>, []>>>;
|
|
121
|
+
}, []>>>, false>;
|
|
122
|
+
}>, []>>>, true>;
|
|
123
|
+
}>, []>>>;
|
|
124
|
+
}, []>>, true>;
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { Array, Boolean, Enum, EnumCase, GenIncludeIdentifier, GenTypeAlias, IncludeIdentifier, Integer, Object, Optional, Param, Required, String, TypeAlias, TypeArgument, } from "tsondb/schema/def";
|
|
2
|
+
import { CloseCombatTechniqueIdentifier, RaceIdentifier, RangedCombatTechniqueIdentifier, WeaponIdentifier, } from "./_Identifier.js";
|
|
3
|
+
import { CombatRelatedSpecialAbilityIdentifier, CombatTechniqueIdentifier, } from "./_IdentifierGroup.js";
|
|
4
|
+
const CombatSpecialAbilityUsageType = Enum(import.meta.url, {
|
|
5
|
+
name: "CombatSpecialAbilityUsageType",
|
|
6
|
+
comment: "The definition of how the combat special ability can be used in combat.",
|
|
7
|
+
values: () => ({
|
|
8
|
+
Passive: EnumCase({ type: null }),
|
|
9
|
+
BasicManeuver: EnumCase({ type: null }),
|
|
10
|
+
SpecialManeuver: EnumCase({ type: null }),
|
|
11
|
+
}),
|
|
12
|
+
});
|
|
13
|
+
export const usage_type = Required({
|
|
14
|
+
comment: "The definition of how the combat special ability can be used in combat.",
|
|
15
|
+
type: IncludeIdentifier(CombatSpecialAbilityUsageType),
|
|
16
|
+
});
|
|
17
|
+
const CombatSpecialAbilityType = Enum(import.meta.url, {
|
|
18
|
+
name: "CombatSpecialAbilityType",
|
|
19
|
+
comment: "The definition of if the combat special ability can be used when armed or when unarmed.",
|
|
20
|
+
values: () => ({
|
|
21
|
+
Armed: EnumCase({ type: null }),
|
|
22
|
+
Unarmed: EnumCase({ type: null }),
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
25
|
+
export const type = Required({
|
|
26
|
+
comment: "The definition of if the combat special ability can be used when armed or when unarmed.",
|
|
27
|
+
type: IncludeIdentifier(CombatSpecialAbilityType),
|
|
28
|
+
});
|
|
29
|
+
const Penalty = Enum(import.meta.url, {
|
|
30
|
+
name: "Penalty",
|
|
31
|
+
comment: "The penalty the special ability gives when used.",
|
|
32
|
+
values: () => ({
|
|
33
|
+
Single: EnumCase({ type: IncludeIdentifier(SinglePenalty) }),
|
|
34
|
+
ByHandedness: EnumCase({ type: IncludeIdentifier(PenaltyByHandedness) }),
|
|
35
|
+
ByActivation: EnumCase({ type: IncludeIdentifier(PenaltyByActivation) }),
|
|
36
|
+
Selection: EnumCase({ type: IncludeIdentifier(PenaltySelection) }),
|
|
37
|
+
ByLevel: EnumCase({ type: IncludeIdentifier(PenaltyByLevel) }),
|
|
38
|
+
ByAttack: EnumCase({ type: IncludeIdentifier(PenaltyByAttack) }),
|
|
39
|
+
DependsOnHitZone: EnumCase({ type: null }),
|
|
40
|
+
}),
|
|
41
|
+
});
|
|
42
|
+
export const penalty = Optional({
|
|
43
|
+
comment: "The penalty the special ability gives when used.",
|
|
44
|
+
type: IncludeIdentifier(Penalty),
|
|
45
|
+
});
|
|
46
|
+
export const penalty_l10n = Optional({
|
|
47
|
+
comment: "The penalty the special ability gives when used.",
|
|
48
|
+
isDeprecated: true,
|
|
49
|
+
type: String({ minLength: 1 }),
|
|
50
|
+
});
|
|
51
|
+
const SinglePenalty = TypeAlias(import.meta.url, {
|
|
52
|
+
name: "SinglePenalty",
|
|
53
|
+
type: () => Object({
|
|
54
|
+
value: Required({
|
|
55
|
+
comment: "The penalty value.",
|
|
56
|
+
type: Integer(),
|
|
57
|
+
}),
|
|
58
|
+
applies_to_parry: Optional({
|
|
59
|
+
comment: "Set to `true` if the penalty applies to the parry instead of the attack.",
|
|
60
|
+
type: Boolean(),
|
|
61
|
+
}),
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
const PenaltyByHandedness = TypeAlias(import.meta.url, {
|
|
65
|
+
name: "PenaltyByHandedness",
|
|
66
|
+
type: () => Object({
|
|
67
|
+
one_handed: Required({
|
|
68
|
+
comment: "The penalty value for one-handed weapons.",
|
|
69
|
+
type: Integer(),
|
|
70
|
+
}),
|
|
71
|
+
two_handed: Required({
|
|
72
|
+
comment: "The penalty value for two-handed weapons.",
|
|
73
|
+
type: Integer(),
|
|
74
|
+
}),
|
|
75
|
+
applies_to_parry: Optional({
|
|
76
|
+
comment: "Set to `true` if the penalty applies to the parry instead of the attack.",
|
|
77
|
+
type: Boolean(),
|
|
78
|
+
}),
|
|
79
|
+
}),
|
|
80
|
+
});
|
|
81
|
+
const PenaltyByActivation = TypeAlias(import.meta.url, {
|
|
82
|
+
name: "PenaltyByActivation",
|
|
83
|
+
type: () => Object({
|
|
84
|
+
active: Required({
|
|
85
|
+
comment: "The penalty value if the entry has been bought by the character.",
|
|
86
|
+
type: Integer(),
|
|
87
|
+
}),
|
|
88
|
+
inactive: Required({
|
|
89
|
+
comment: "The penalty value if the entry has not been bought by the character.",
|
|
90
|
+
type: Integer(),
|
|
91
|
+
}),
|
|
92
|
+
applies_to_parry: Optional({
|
|
93
|
+
comment: "Set to `true` if the penalty applies to the parry instead of the attack.",
|
|
94
|
+
type: Boolean(),
|
|
95
|
+
}),
|
|
96
|
+
}),
|
|
97
|
+
});
|
|
98
|
+
const PenaltySelection = TypeAlias(import.meta.url, {
|
|
99
|
+
name: "PenaltySelection",
|
|
100
|
+
type: () => Object({
|
|
101
|
+
options: Required({
|
|
102
|
+
type: IncludeIdentifier(PenaltySelectionOptions),
|
|
103
|
+
}),
|
|
104
|
+
}),
|
|
105
|
+
});
|
|
106
|
+
const PenaltySelectionOptions = Enum(import.meta.url, {
|
|
107
|
+
name: "PenaltySelectionOptions",
|
|
108
|
+
values: () => ({
|
|
109
|
+
Specific: EnumCase({ type: IncludeIdentifier(SpecificPenaltySelectionOptions) }),
|
|
110
|
+
Range: EnumCase({ type: IncludeIdentifier(PenaltySelectionOptionsRange) }),
|
|
111
|
+
}),
|
|
112
|
+
});
|
|
113
|
+
const SpecificPenaltySelectionOptions = TypeAlias(import.meta.url, {
|
|
114
|
+
name: "SpecificPenaltySelectionOptions",
|
|
115
|
+
type: () => Object({
|
|
116
|
+
list: Required({
|
|
117
|
+
comment: "The list of specific penalty options.",
|
|
118
|
+
type: Array(IncludeIdentifier(SpecificPenaltySelectionOption), { minItems: 2 }),
|
|
119
|
+
}),
|
|
120
|
+
}),
|
|
121
|
+
});
|
|
122
|
+
const SpecificPenaltySelectionOption = TypeAlias(import.meta.url, {
|
|
123
|
+
name: "SpecificPenaltySelectionOption",
|
|
124
|
+
type: () => Object({
|
|
125
|
+
value: Required({
|
|
126
|
+
comment: "The penalty value.",
|
|
127
|
+
type: Integer(),
|
|
128
|
+
}),
|
|
129
|
+
}),
|
|
130
|
+
});
|
|
131
|
+
const PenaltySelectionOptionsRange = TypeAlias(import.meta.url, {
|
|
132
|
+
name: "PenaltySelectionOptionsRange",
|
|
133
|
+
type: () => Object({
|
|
134
|
+
minimum: Required({
|
|
135
|
+
comment: "The minimum penalty value.",
|
|
136
|
+
type: Integer(),
|
|
137
|
+
}),
|
|
138
|
+
maximum: Required({
|
|
139
|
+
comment: "The maximum penalty value.",
|
|
140
|
+
type: Integer(),
|
|
141
|
+
}),
|
|
142
|
+
}),
|
|
143
|
+
});
|
|
144
|
+
const PenaltyByLevel = TypeAlias(import.meta.url, {
|
|
145
|
+
name: "PenaltyByLevel",
|
|
146
|
+
type: () => Object({
|
|
147
|
+
levels: Required({
|
|
148
|
+
comment: "A continuous range of penalties for each level. The first element is the penalty for the first level, the second element is the penalty for the second level, and so on.",
|
|
149
|
+
type: Array(IncludeIdentifier(PenaltyByLevelLevel), { minItems: 2 }),
|
|
150
|
+
}),
|
|
151
|
+
external: Optional({
|
|
152
|
+
comment: "The combat-related special ability of which the level defines the penalty instead.",
|
|
153
|
+
type: IncludeIdentifier(PenaltyByExternalLevel),
|
|
154
|
+
}),
|
|
155
|
+
}),
|
|
156
|
+
});
|
|
157
|
+
const PenaltyByLevelLevel = TypeAlias(import.meta.url, {
|
|
158
|
+
name: "PenaltyByLevelLevel",
|
|
159
|
+
type: () => Object({
|
|
160
|
+
value: Required({
|
|
161
|
+
comment: "The penalty value for this level.",
|
|
162
|
+
type: Integer(),
|
|
163
|
+
}),
|
|
164
|
+
}),
|
|
165
|
+
});
|
|
166
|
+
const PenaltyByExternalLevel = TypeAlias(import.meta.url, {
|
|
167
|
+
name: "PenaltyByExternalLevel",
|
|
168
|
+
comment: "The combat-related special ability of which the level defines the penalty instead.",
|
|
169
|
+
type: () => Object({
|
|
170
|
+
id: Required({
|
|
171
|
+
comment: "The identifier of the combat-related special ability of which the level defines the penalty instead.",
|
|
172
|
+
type: IncludeIdentifier(CombatRelatedSpecialAbilityIdentifier),
|
|
173
|
+
}),
|
|
174
|
+
}),
|
|
175
|
+
});
|
|
176
|
+
const PenaltyByAttack = TypeAlias(import.meta.url, {
|
|
177
|
+
name: "PenaltyByAttack",
|
|
178
|
+
type: () => Object({
|
|
179
|
+
list: Required({
|
|
180
|
+
comment: "A list of penalties for subsequent attacks. The first element is the penalty for the first attack, the second element is the penalty for the second attack, and so on. The order of the first element may be changed using `initial_order`, so that e.g. if set to `2`, the first element is the penalty for the second attack, the second element is the penalty for the third attack, and so on.",
|
|
181
|
+
type: Array(IncludeIdentifier(PenaltyByAttackOrderItem), { minItems: 1 }),
|
|
182
|
+
}),
|
|
183
|
+
initial_order: Optional({
|
|
184
|
+
comment: "The order of the first element in the `list` of penalties.",
|
|
185
|
+
type: Integer(),
|
|
186
|
+
}),
|
|
187
|
+
attack_replacement: Optional({
|
|
188
|
+
comment: "Set if a predefined different word should be used instead of the word `attack` for display purposes.",
|
|
189
|
+
type: IncludeIdentifier(PenaltyByAttackReplacement),
|
|
190
|
+
}),
|
|
191
|
+
}),
|
|
192
|
+
});
|
|
193
|
+
const PenaltyByAttackOrderItem = TypeAlias(import.meta.url, {
|
|
194
|
+
name: "PenaltyByAttackOrderItem",
|
|
195
|
+
type: () => Object({
|
|
196
|
+
value: Required({
|
|
197
|
+
comment: "The penalty value for this order.",
|
|
198
|
+
type: Integer(),
|
|
199
|
+
}),
|
|
200
|
+
}),
|
|
201
|
+
});
|
|
202
|
+
const PenaltyByAttackReplacement = Enum(import.meta.url, {
|
|
203
|
+
name: "PenaltyByAttackReplacement",
|
|
204
|
+
comment: "Set if a predefined different word should be used instead of the word `attack` for display purposes.",
|
|
205
|
+
values: () => ({
|
|
206
|
+
Throw: EnumCase({ type: null }),
|
|
207
|
+
}),
|
|
208
|
+
});
|
|
209
|
+
const ApplicableCombatTechniques = Enum(import.meta.url, {
|
|
210
|
+
name: "ApplicableCombatTechniques",
|
|
211
|
+
values: () => ({
|
|
212
|
+
None: EnumCase({ type: null }),
|
|
213
|
+
DependingOnCombatStyle: EnumCase({ type: null }),
|
|
214
|
+
All: EnumCase({ type: IncludeIdentifier(AllApplicableCombatTechniques) }),
|
|
215
|
+
AllClose: EnumCase({ type: IncludeIdentifier(AllApplicableCloseCombatTechniques) }),
|
|
216
|
+
AllRanged: EnumCase({ type: IncludeIdentifier(AllApplicableRangedCombatTechniques) }),
|
|
217
|
+
Specific: EnumCase({ type: IncludeIdentifier(SpecificApplicableCombatTechniques) }),
|
|
218
|
+
}),
|
|
219
|
+
});
|
|
220
|
+
export const combat_techniques = Required({
|
|
221
|
+
comment: "The combat techniques the special ability is applicable to.",
|
|
222
|
+
type: IncludeIdentifier(ApplicableCombatTechniques),
|
|
223
|
+
});
|
|
224
|
+
const AllApplicableCombatTechniques = TypeAlias(import.meta.url, {
|
|
225
|
+
name: "AllApplicableCombatTechniques",
|
|
226
|
+
type: () => Object({
|
|
227
|
+
restrictions: Optional({
|
|
228
|
+
type: Array(IncludeIdentifier(ApplicableAllCombatTechniquesRestriction), { minItems: 1 }),
|
|
229
|
+
}),
|
|
230
|
+
}),
|
|
231
|
+
});
|
|
232
|
+
const AllApplicableCloseCombatTechniques = TypeAlias(import.meta.url, {
|
|
233
|
+
name: "AllApplicableCloseCombatTechniques",
|
|
234
|
+
type: () => Object({
|
|
235
|
+
restrictions: Optional({
|
|
236
|
+
type: Array(IncludeIdentifier(ApplicableCloseCombatTechniquesRestriction), { minItems: 1 }),
|
|
237
|
+
}),
|
|
238
|
+
}),
|
|
239
|
+
});
|
|
240
|
+
const AllApplicableRangedCombatTechniques = TypeAlias(import.meta.url, {
|
|
241
|
+
name: "AllApplicableRangedCombatTechniques",
|
|
242
|
+
type: () => Object({
|
|
243
|
+
restrictions: Optional({
|
|
244
|
+
type: Array(IncludeIdentifier(ApplicableRangedCombatTechniquesRestriction), {
|
|
245
|
+
minItems: 1,
|
|
246
|
+
}),
|
|
247
|
+
}),
|
|
248
|
+
}),
|
|
249
|
+
});
|
|
250
|
+
const SpecificApplicableCombatTechniques = TypeAlias(import.meta.url, {
|
|
251
|
+
name: "SpecificApplicableCombatTechniques",
|
|
252
|
+
type: () => Object({
|
|
253
|
+
list: Required({
|
|
254
|
+
type: Array(IncludeIdentifier(SpecificApplicableCombatTechnique), { minItems: 1 }),
|
|
255
|
+
}),
|
|
256
|
+
}),
|
|
257
|
+
});
|
|
258
|
+
const SpecificApplicableCombatTechnique = TypeAlias(import.meta.url, {
|
|
259
|
+
name: "SpecificApplicableCombatTechnique",
|
|
260
|
+
type: () => Object({
|
|
261
|
+
id: Required({
|
|
262
|
+
type: IncludeIdentifier(CombatTechniqueIdentifier),
|
|
263
|
+
}),
|
|
264
|
+
restrictions: Optional({
|
|
265
|
+
type: Array(IncludeIdentifier(ApplicableSpecificCombatTechniquesRestriction), {
|
|
266
|
+
minItems: 1,
|
|
267
|
+
}),
|
|
268
|
+
}),
|
|
269
|
+
}),
|
|
270
|
+
});
|
|
271
|
+
const ApplicableAllCombatTechniquesRestriction = Enum(import.meta.url, {
|
|
272
|
+
name: "ApplicableAllCombatTechniquesRestriction",
|
|
273
|
+
values: () => ({
|
|
274
|
+
Improvised: EnumCase({ type: null }),
|
|
275
|
+
PointedBlade: EnumCase({ type: null }),
|
|
276
|
+
Mount: EnumCase({ type: null }),
|
|
277
|
+
Race: EnumCase({ type: IncludeIdentifier(ApplicableCombatTechniquesRaceRestriction) }),
|
|
278
|
+
ExcludeCombatTechniques: EnumCase({
|
|
279
|
+
type: GenIncludeIdentifier(ApplicableCombatTechniquesNegativeCombatTechniquesRestriction, [
|
|
280
|
+
IncludeIdentifier(CombatTechniqueIdentifier),
|
|
281
|
+
]),
|
|
282
|
+
}),
|
|
283
|
+
}),
|
|
284
|
+
});
|
|
285
|
+
const ApplicableCloseCombatTechniquesRestriction = Enum(import.meta.url, {
|
|
286
|
+
name: "ApplicableCloseCombatTechniquesRestriction",
|
|
287
|
+
values: () => ({
|
|
288
|
+
Improvised: EnumCase({ type: null }),
|
|
289
|
+
PointedBlade: EnumCase({ type: null }),
|
|
290
|
+
Mount: EnumCase({ type: null }),
|
|
291
|
+
HasParry: EnumCase({ type: null }),
|
|
292
|
+
OneHanded: EnumCase({ type: null }),
|
|
293
|
+
TwoHanded: EnumCase({ type: null }),
|
|
294
|
+
ParryingWeapon: EnumCase({ type: null }),
|
|
295
|
+
Race: EnumCase({ type: IncludeIdentifier(ApplicableCombatTechniquesRaceRestriction) }),
|
|
296
|
+
ExcludeCombatTechniques: EnumCase({
|
|
297
|
+
type: GenIncludeIdentifier(ApplicableCombatTechniquesNegativeCombatTechniquesRestriction, [
|
|
298
|
+
CloseCombatTechniqueIdentifier(),
|
|
299
|
+
]),
|
|
300
|
+
}),
|
|
301
|
+
}),
|
|
302
|
+
});
|
|
303
|
+
const ApplicableRangedCombatTechniquesRestriction = Enum(import.meta.url, {
|
|
304
|
+
name: "ApplicableRangedCombatTechniquesRestriction",
|
|
305
|
+
values: () => ({
|
|
306
|
+
Improvised: EnumCase({ type: null }),
|
|
307
|
+
PointedBlade: EnumCase({ type: null }),
|
|
308
|
+
Mount: EnumCase({ type: null }),
|
|
309
|
+
Race: EnumCase({ type: IncludeIdentifier(ApplicableCombatTechniquesRaceRestriction) }),
|
|
310
|
+
ExcludeCombatTechniques: EnumCase({
|
|
311
|
+
type: GenIncludeIdentifier(ApplicableCombatTechniquesNegativeCombatTechniquesRestriction, [
|
|
312
|
+
RangedCombatTechniqueIdentifier(),
|
|
313
|
+
]),
|
|
314
|
+
}),
|
|
315
|
+
}),
|
|
316
|
+
});
|
|
317
|
+
const ApplicableSpecificCombatTechniquesRestriction = Enum(import.meta.url, {
|
|
318
|
+
name: "ApplicableSpecificCombatTechniquesRestriction",
|
|
319
|
+
values: () => ({
|
|
320
|
+
Improvised: EnumCase({ type: null }),
|
|
321
|
+
PointedBlade: EnumCase({ type: null }),
|
|
322
|
+
Mount: EnumCase({ type: null }),
|
|
323
|
+
Race: EnumCase({ type: IncludeIdentifier(ApplicableCombatTechniquesRaceRestriction) }),
|
|
324
|
+
Level: EnumCase({ type: IncludeIdentifier(ApplicableCombatTechniquesLevelRestriction) }),
|
|
325
|
+
Weapons: EnumCase({ type: IncludeIdentifier(ApplicableCombatTechniquesWeaponRestriction) }),
|
|
326
|
+
}),
|
|
327
|
+
});
|
|
328
|
+
const ApplicableCombatTechniquesNegativeCombatTechniquesRestriction = GenTypeAlias(import.meta.url, {
|
|
329
|
+
name: "ApplicableCombatTechniquesNegativeCombatTechniquesRestriction",
|
|
330
|
+
parameters: [Param("Ref")],
|
|
331
|
+
type: Ref => Object({
|
|
332
|
+
list: Required({
|
|
333
|
+
comment: "The combat techniques this combat special ability is **not** applicable to.",
|
|
334
|
+
type: Array(TypeArgument(Ref), { minItems: 1 }),
|
|
335
|
+
}),
|
|
336
|
+
}),
|
|
337
|
+
});
|
|
338
|
+
const ApplicableCombatTechniquesRaceRestriction = TypeAlias(import.meta.url, {
|
|
339
|
+
name: "ApplicableCombatTechniquesRaceRestriction",
|
|
340
|
+
type: () => RaceIdentifier(),
|
|
341
|
+
});
|
|
342
|
+
const ApplicableCombatTechniquesLevelRestriction = TypeAlias(import.meta.url, {
|
|
343
|
+
name: "ApplicableCombatTechniquesLevelRestriction",
|
|
344
|
+
type: () => Object({
|
|
345
|
+
level: Required({
|
|
346
|
+
comment: "The combat special ability is only applicable on a certain level.",
|
|
347
|
+
type: Integer({ minimum: 1 }),
|
|
348
|
+
}),
|
|
349
|
+
}),
|
|
350
|
+
});
|
|
351
|
+
const ApplicableCombatTechniquesWeaponRestriction = TypeAlias(import.meta.url, {
|
|
352
|
+
name: "ApplicableCombatTechniquesWeaponRestriction",
|
|
353
|
+
type: () => Object({
|
|
354
|
+
list: Required({
|
|
355
|
+
comment: "The specific weapons this combat special ability is only applicable to.",
|
|
356
|
+
type: Array(WeaponIdentifier(), { minItems: 1 }),
|
|
357
|
+
}),
|
|
358
|
+
}),
|
|
359
|
+
});
|