@alpaca-software/40kdc-data 0.1.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/README.md +78 -0
- package/dist/bundle-schemas.d.ts +3 -0
- package/dist/bundle-schemas.js +137 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +31 -0
- package/dist/codegen-data.d.ts +1 -0
- package/dist/codegen-data.js +128 -0
- package/dist/commands/translate.d.ts +7 -0
- package/dist/commands/translate.js +238 -0
- package/dist/commands/validate-all.d.ts +3 -0
- package/dist/commands/validate-all.js +20 -0
- package/dist/commands/validate-core.d.ts +3 -0
- package/dist/commands/validate-core.js +12 -0
- package/dist/commands/validate-enrichment.d.ts +3 -0
- package/dist/commands/validate-enrichment.js +12 -0
- package/dist/convert-faction.d.ts +45 -0
- package/dist/convert-faction.js +479 -0
- package/dist/converters/configs/adepta-sororitas.d.ts +3 -0
- package/dist/converters/configs/adepta-sororitas.js +70 -0
- package/dist/converters/configs/adeptus-astartes.d.ts +3 -0
- package/dist/converters/configs/adeptus-astartes.js +74 -0
- package/dist/converters/configs/adeptus-custodes.d.ts +3 -0
- package/dist/converters/configs/adeptus-custodes.js +14 -0
- package/dist/converters/configs/adeptus-mechanicus.d.ts +3 -0
- package/dist/converters/configs/adeptus-mechanicus.js +51 -0
- package/dist/converters/configs/aeldari.d.ts +3 -0
- package/dist/converters/configs/aeldari.js +79 -0
- package/dist/converters/configs/agents-of-the-imperium.d.ts +3 -0
- package/dist/converters/configs/agents-of-the-imperium.js +57 -0
- package/dist/converters/configs/astra-militarum.d.ts +3 -0
- package/dist/converters/configs/astra-militarum.js +80 -0
- package/dist/converters/configs/black-templars.d.ts +3 -0
- package/dist/converters/configs/black-templars.js +16 -0
- package/dist/converters/configs/blood-angels.d.ts +3 -0
- package/dist/converters/configs/blood-angels.js +16 -0
- package/dist/converters/configs/chaos-daemons.d.ts +3 -0
- package/dist/converters/configs/chaos-daemons.js +40 -0
- package/dist/converters/configs/chaos-knights.d.ts +3 -0
- package/dist/converters/configs/chaos-knights.js +14 -0
- package/dist/converters/configs/chaos-space-marines.d.ts +3 -0
- package/dist/converters/configs/chaos-space-marines.js +95 -0
- package/dist/converters/configs/crimson-fists.d.ts +3 -0
- package/dist/converters/configs/crimson-fists.js +16 -0
- package/dist/converters/configs/dark-angels.d.ts +3 -0
- package/dist/converters/configs/dark-angels.js +16 -0
- package/dist/converters/configs/death-guard.d.ts +3 -0
- package/dist/converters/configs/death-guard.js +30 -0
- package/dist/converters/configs/deathwatch.d.ts +3 -0
- package/dist/converters/configs/deathwatch.js +16 -0
- package/dist/converters/configs/drukhari.d.ts +3 -0
- package/dist/converters/configs/drukhari.js +51 -0
- package/dist/converters/configs/emperors-children.d.ts +3 -0
- package/dist/converters/configs/emperors-children.js +38 -0
- package/dist/converters/configs/genestealer-cults.d.ts +3 -0
- package/dist/converters/configs/genestealer-cults.js +36 -0
- package/dist/converters/configs/grey-knights.d.ts +3 -0
- package/dist/converters/configs/grey-knights.js +39 -0
- package/dist/converters/configs/imperial-fists.d.ts +3 -0
- package/dist/converters/configs/imperial-fists.js +16 -0
- package/dist/converters/configs/imperial-knights.d.ts +3 -0
- package/dist/converters/configs/imperial-knights.js +14 -0
- package/dist/converters/configs/iron-hands.d.ts +3 -0
- package/dist/converters/configs/iron-hands.js +16 -0
- package/dist/converters/configs/leagues-of-votann.d.ts +3 -0
- package/dist/converters/configs/leagues-of-votann.js +32 -0
- package/dist/converters/configs/necrons.d.ts +3 -0
- package/dist/converters/configs/necrons.js +19 -0
- package/dist/converters/configs/orks.d.ts +3 -0
- package/dist/converters/configs/orks.js +71 -0
- package/dist/converters/configs/raven-guard.d.ts +3 -0
- package/dist/converters/configs/raven-guard.js +16 -0
- package/dist/converters/configs/salamanders.d.ts +3 -0
- package/dist/converters/configs/salamanders.js +16 -0
- package/dist/converters/configs/space-wolves.d.ts +3 -0
- package/dist/converters/configs/space-wolves.js +16 -0
- package/dist/converters/configs/tau-empire.d.ts +3 -0
- package/dist/converters/configs/tau-empire.js +44 -0
- package/dist/converters/configs/thousand-sons.d.ts +3 -0
- package/dist/converters/configs/thousand-sons.js +30 -0
- package/dist/converters/configs/tyranids.d.ts +3 -0
- package/dist/converters/configs/tyranids.js +27 -0
- package/dist/converters/configs/ultramarines.d.ts +3 -0
- package/dist/converters/configs/ultramarines.js +16 -0
- package/dist/converters/configs/white-scars.d.ts +3 -0
- package/dist/converters/configs/white-scars.js +16 -0
- package/dist/converters/configs/world-eaters.d.ts +3 -0
- package/dist/converters/configs/world-eaters.js +43 -0
- package/dist/converters/faction-config.d.ts +53 -0
- package/dist/converters/faction-config.js +22 -0
- package/dist/converters/id-generator.d.ts +14 -0
- package/dist/converters/id-generator.js +65 -0
- package/dist/converters/keyword-filter.d.ts +26 -0
- package/dist/converters/keyword-filter.js +78 -0
- package/dist/converters/stat-parser.d.ts +22 -0
- package/dist/converters/stat-parser.js +84 -0
- package/dist/converters/view-selector.d.ts +54 -0
- package/dist/converters/view-selector.js +96 -0
- package/dist/converters/weapon-dedup.d.ts +60 -0
- package/dist/converters/weapon-dedup.js +120 -0
- package/dist/data/bundle.generated.d.ts +3 -0
- package/dist/data/bundle.generated.js +3 -0
- package/dist/data/collection.d.ts +64 -0
- package/dist/data/collection.js +118 -0
- package/dist/data/dataset.d.ts +50 -0
- package/dist/data/dataset.js +134 -0
- package/dist/data/entities.d.ts +80 -0
- package/dist/data/entities.js +133 -0
- package/dist/data/index.d.ts +59 -0
- package/dist/data/index.js +57 -0
- package/dist/data/normalize.d.ts +29 -0
- package/dist/data/normalize.js +37 -0
- package/dist/data/types.d.ts +43 -0
- package/dist/data/types.js +25 -0
- package/dist/generated.d.ts +1084 -0
- package/dist/generated.js +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +7 -0
- package/dist/known-support-10e.d.ts +31 -0
- package/dist/known-support-10e.js +113 -0
- package/dist/port-10e-faction.d.ts +52 -0
- package/dist/port-10e-faction.js +413 -0
- package/dist/report.d.ts +3 -0
- package/dist/report.js +31 -0
- package/dist/schema-loader.d.ts +15 -0
- package/dist/schema-loader.js +79 -0
- package/dist/validate.d.ts +21 -0
- package/dist/validate.js +124 -0
- package/package.json +77 -0
- package/schemas/$defs/common.schema.json +86 -0
- package/schemas/$defs/game-version-ref.schema.json +11 -0
- package/schemas/core/deployment-pattern.schema.json +102 -0
- package/schemas/core/detachment.schema.json +56 -0
- package/schemas/core/enhancement.schema.json +46 -0
- package/schemas/core/faction.schema.json +29 -0
- package/schemas/core/force-disposition.schema.json +22 -0
- package/schemas/core/game-version.schema.json +20 -0
- package/schemas/core/leader-attachment.schema.json +18 -0
- package/schemas/core/mission-matchup.schema.json +25 -0
- package/schemas/core/mission.schema.json +42 -0
- package/schemas/core/roster.schema.json +203 -0
- package/schemas/core/secondary-card.schema.json +195 -0
- package/schemas/core/stratagem.schema.json +58 -0
- package/schemas/core/terrain-layout.schema.json +135 -0
- package/schemas/core/unit-composition.schema.json +38 -0
- package/schemas/core/unit.schema.json +125 -0
- package/schemas/core/wargear-option.schema.json +47 -0
- package/schemas/core/weapon.schema.json +56 -0
- package/schemas/enrichment/ability-dsl/ability.schema.json +60 -0
- package/schemas/enrichment/ability-dsl/condition.schema.json +48 -0
- package/schemas/enrichment/ability-dsl/effect.schema.json +145 -0
- package/schemas/enrichment/ability-dsl/scope.schema.json +12 -0
- package/schemas/enrichment/interaction-flag.schema.json +17 -0
- package/schemas/enrichment/phase-mapping.schema.json +14 -0
- package/schemas/enrichment/resource-pool.schema.json +36 -0
- package/schemas/enrichment/timing-flag.schema.json +28 -0
|
@@ -0,0 +1,1084 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kebab-case identifier
|
|
3
|
+
*
|
|
4
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
5
|
+
* via the `definition` "entity-id".
|
|
6
|
+
*/
|
|
7
|
+
export type EntityId = string;
|
|
8
|
+
/**
|
|
9
|
+
* Game edition, e.g. '10th' or '11'
|
|
10
|
+
*
|
|
11
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
12
|
+
* via the `definition` "edition".
|
|
13
|
+
*/
|
|
14
|
+
export type Edition = string;
|
|
15
|
+
/**
|
|
16
|
+
* Dataslate version: a quarterly tag (e.g. '2025-q3') or a named kebab-case slug for non-quarterly slates (e.g. 'pre-launch-provisional')
|
|
17
|
+
*
|
|
18
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
19
|
+
* via the `definition` "dataslate-version".
|
|
20
|
+
*/
|
|
21
|
+
export type DataslateVersion = string;
|
|
22
|
+
/**
|
|
23
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
24
|
+
* via the `definition` "keyword".
|
|
25
|
+
*/
|
|
26
|
+
export type Keyword = string;
|
|
27
|
+
/**
|
|
28
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
29
|
+
* via the `definition` "keyword-list".
|
|
30
|
+
*/
|
|
31
|
+
export type KeywordList = Keyword[];
|
|
32
|
+
/**
|
|
33
|
+
* A stat that can be a fixed number or a dice expression
|
|
34
|
+
*
|
|
35
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
36
|
+
* via the `definition` "stat-value".
|
|
37
|
+
*/
|
|
38
|
+
export type StatValue = number | string;
|
|
39
|
+
/**
|
|
40
|
+
* GitHub handle or '40kdc-community'
|
|
41
|
+
*
|
|
42
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
43
|
+
* via the `definition` "contributor-ref".
|
|
44
|
+
*/
|
|
45
|
+
export type ContributorRef = string;
|
|
46
|
+
/**
|
|
47
|
+
* The five official game phases. Unchanged between 10th and 11th edition — 11e reorders Pile In timing within the Fight phase but adds no top-level phase.
|
|
48
|
+
*
|
|
49
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
50
|
+
* via the `definition` "phase".
|
|
51
|
+
*/
|
|
52
|
+
export type Phase = "command" | "movement" | "shooting" | "charge" | "fight";
|
|
53
|
+
/**
|
|
54
|
+
* @minItems 1
|
|
55
|
+
*
|
|
56
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
57
|
+
* via the `definition` "phase-list".
|
|
58
|
+
*/
|
|
59
|
+
export type PhaseList = [Phase, ...Phase[]];
|
|
60
|
+
/**
|
|
61
|
+
* Type of game element that is the source of an enrichment entry
|
|
62
|
+
*
|
|
63
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
64
|
+
* via the `definition` "source-type".
|
|
65
|
+
*/
|
|
66
|
+
export type SourceType = "ability" | "stratagem" | "enhancement" | "detachment-rule" | "faction-rule";
|
|
67
|
+
/**
|
|
68
|
+
* Which player's turn this applies during
|
|
69
|
+
*
|
|
70
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
71
|
+
* via the `definition` "player-turn".
|
|
72
|
+
*/
|
|
73
|
+
export type PlayerTurn = "your-turn" | "opponent-turn" | "either";
|
|
74
|
+
/**
|
|
75
|
+
* 11e battle size, which sets the army's points limit and detachment-point budget: 'incursion' = 1000 pts / 2 detachment points; 'strike-force' = 2000 pts / 3 detachment points.
|
|
76
|
+
*
|
|
77
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
78
|
+
* via the `definition` "battle-size".
|
|
79
|
+
*/
|
|
80
|
+
export type BattleSize = "incursion" | "strike-force";
|
|
81
|
+
/**
|
|
82
|
+
* One of the five confirmed 11e launch Force Dispositions. Shared by force-disposition entities and the mission-matchup matrix.
|
|
83
|
+
*
|
|
84
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
85
|
+
* via the `definition` "force-disposition-id".
|
|
86
|
+
*/
|
|
87
|
+
export type ForceDispositionId = "take-and-hold" | "disruption" | "purge-the-foe" | "priority-assets" | "reconnaissance";
|
|
88
|
+
/**
|
|
89
|
+
* A zone footprint, expressed as an axis-aligned rectangle or an explicit polygon. Vertices/extent are relative to the owning element's position.
|
|
90
|
+
*
|
|
91
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
92
|
+
* via the `definition` "zone-shape".
|
|
93
|
+
*/
|
|
94
|
+
export type ZoneShape = {
|
|
95
|
+
type: "rectangle";
|
|
96
|
+
width: number;
|
|
97
|
+
height: number;
|
|
98
|
+
} | {
|
|
99
|
+
type: "polygon";
|
|
100
|
+
/**
|
|
101
|
+
* @minItems 3
|
|
102
|
+
*/
|
|
103
|
+
points: [Vec2, Vec2, Vec2, ...Vec2[]];
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Which player a zone or territory belongs to.
|
|
107
|
+
*
|
|
108
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
109
|
+
* via the `definition` "side".
|
|
110
|
+
*/
|
|
111
|
+
export type Side = "attacker" | "defender";
|
|
112
|
+
/**
|
|
113
|
+
* Eligibility predicate for which units may perform the action.
|
|
114
|
+
*/
|
|
115
|
+
export type AbilityCondition = SimpleCondition | CompoundCondition;
|
|
116
|
+
/**
|
|
117
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
118
|
+
* via the `definition` "condition-node".
|
|
119
|
+
*/
|
|
120
|
+
export type ConditionNode = SimpleCondition | CompoundCondition;
|
|
121
|
+
/**
|
|
122
|
+
* Predicate for when the action is considered complete.
|
|
123
|
+
*/
|
|
124
|
+
export type AbilityCondition1 = SimpleCondition | CompoundCondition;
|
|
125
|
+
/**
|
|
126
|
+
* Effect applied when the action completes (e.g. terrain-area-tag to mark transient state on a terrain piece).
|
|
127
|
+
*/
|
|
128
|
+
export type AbilityEffect = SingleEffect | ChoiceEffect | SequenceEffect | DiceGatedEffect | ConditionalEffect | DicePoolAllocationEffect;
|
|
129
|
+
/**
|
|
130
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
131
|
+
* via the `definition` "effect-node".
|
|
132
|
+
*/
|
|
133
|
+
export type EffectNode = SingleEffect | ChoiceEffect | SequenceEffect | DiceGatedEffect | ConditionalEffect | DicePoolAllocationEffect;
|
|
134
|
+
export type AbilityCondition2 = SimpleCondition | CompoundCondition;
|
|
135
|
+
/**
|
|
136
|
+
* A terrain piece's 2D footprint, relative to the piece's `position`. Axis-aligned rectangle, right triangle (right angle at the local origin, legs along +x/+y), or an explicit polygon. GW's standard templates (e.g. 7"×11.5" rectangles, 8"×11.5" right triangles, 6"×4" rectangles, 10"×2.5" and 6"×2" lines) are all expressible here; lines are thin rectangles.
|
|
137
|
+
*
|
|
138
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
139
|
+
* via the `definition` "footprint".
|
|
140
|
+
*/
|
|
141
|
+
export type Footprint = {
|
|
142
|
+
type: "rectangle";
|
|
143
|
+
width: number;
|
|
144
|
+
height: number;
|
|
145
|
+
} | {
|
|
146
|
+
type: "right-triangle";
|
|
147
|
+
width: number;
|
|
148
|
+
height: number;
|
|
149
|
+
} | {
|
|
150
|
+
type: "polygon";
|
|
151
|
+
/**
|
|
152
|
+
* @minItems 3
|
|
153
|
+
*/
|
|
154
|
+
points: [Vec2, Vec2, Vec2, ...Vec2[]];
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* An 11e terrain-area keyword. Confirmed launch set; extend as further keywords publish on dataslate.
|
|
158
|
+
*
|
|
159
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
160
|
+
* via the `definition` "terrain-area-keyword".
|
|
161
|
+
*/
|
|
162
|
+
export type TerrainAreaKeyword = "obscuring" | "hidden" | "plunging-fire";
|
|
163
|
+
export type AbilityEffect1 = SingleEffect | ChoiceEffect | SequenceEffect | DiceGatedEffect | ConditionalEffect | DicePoolAllocationEffect;
|
|
164
|
+
/**
|
|
165
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
166
|
+
* via the `definition` "condition".
|
|
167
|
+
*/
|
|
168
|
+
export type AbilityCondition3 = SimpleCondition | CompoundCondition;
|
|
169
|
+
/**
|
|
170
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
171
|
+
* via the `definition` "effect".
|
|
172
|
+
*/
|
|
173
|
+
export type AbilityEffect2 = SingleEffect | ChoiceEffect | SequenceEffect | DiceGatedEffect | ConditionalEffect | DicePoolAllocationEffect;
|
|
174
|
+
/**
|
|
175
|
+
* Auto-generated by tools/src/bundle-schemas.ts. Single self-contained schema for Rust codegen — do not edit by hand.
|
|
176
|
+
*/
|
|
177
|
+
export interface KdcBundledSchemas {
|
|
178
|
+
[k: string]: unknown;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* A 2D point in board inches. Origin at a board corner; JSON uses y-down (downstream renderers may flip to y-up).
|
|
182
|
+
*
|
|
183
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
184
|
+
* via the `definition` "vec2".
|
|
185
|
+
*/
|
|
186
|
+
export interface Vec2 {
|
|
187
|
+
x: number;
|
|
188
|
+
y: number;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
192
|
+
* via the `definition` "game-version-ref".
|
|
193
|
+
*/
|
|
194
|
+
export interface GameVersionReference {
|
|
195
|
+
edition: Edition;
|
|
196
|
+
dataslate: DataslateVersion;
|
|
197
|
+
[k: string]: unknown;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* A deployment map: per-side deployment zones, objective positions, and (11e) per-side territory polygons. Pattern geometry carries forward unchanged from 10th edition; downstream tooling (e.g. bevy-deploy-helper) consumes this as the canonical encoding.
|
|
201
|
+
*
|
|
202
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
203
|
+
* via the `definition` "deployment-pattern".
|
|
204
|
+
*/
|
|
205
|
+
export interface DeploymentPattern {
|
|
206
|
+
id: EntityId;
|
|
207
|
+
name: string;
|
|
208
|
+
/**
|
|
209
|
+
* Mission pack or source the pattern originates from (e.g. 'leviathan').
|
|
210
|
+
*/
|
|
211
|
+
source?: string;
|
|
212
|
+
description?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Per-side deployment zones.
|
|
215
|
+
*
|
|
216
|
+
* @minItems 1
|
|
217
|
+
*/
|
|
218
|
+
zones: [
|
|
219
|
+
{
|
|
220
|
+
player: Side;
|
|
221
|
+
name?: string;
|
|
222
|
+
shape: ZoneShape;
|
|
223
|
+
position: Vec2;
|
|
224
|
+
/**
|
|
225
|
+
* Hex render color for the zone overlay.
|
|
226
|
+
*/
|
|
227
|
+
color?: string;
|
|
228
|
+
},
|
|
229
|
+
...{
|
|
230
|
+
player: Side;
|
|
231
|
+
name?: string;
|
|
232
|
+
shape: ZoneShape;
|
|
233
|
+
position: Vec2;
|
|
234
|
+
/**
|
|
235
|
+
* Hex render color for the zone overlay.
|
|
236
|
+
*/
|
|
237
|
+
color?: string;
|
|
238
|
+
}[]
|
|
239
|
+
];
|
|
240
|
+
/**
|
|
241
|
+
* 11e per-side territory polygons, mirroring the deployment-zone shape (e.g. the band between a deployment zone and the midline). Empty until authored.
|
|
242
|
+
*/
|
|
243
|
+
territories?: {
|
|
244
|
+
player: Side;
|
|
245
|
+
shape: ZoneShape;
|
|
246
|
+
position: Vec2;
|
|
247
|
+
}[];
|
|
248
|
+
/**
|
|
249
|
+
* Objective-marker positions on the board.
|
|
250
|
+
*/
|
|
251
|
+
objectives?: Vec2[];
|
|
252
|
+
/**
|
|
253
|
+
* Ids of recommended terrain-layout entities (resolved once terrain-layout data is authored).
|
|
254
|
+
*/
|
|
255
|
+
recommended_terrain_layout_ids?: EntityId[];
|
|
256
|
+
game_version: GameVersionReference;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* A detachment option within a faction, providing a detachment rule, enhancements, and stratagems.
|
|
260
|
+
*
|
|
261
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
262
|
+
* via the `definition` "detachment".
|
|
263
|
+
*/
|
|
264
|
+
export interface Detachment {
|
|
265
|
+
id: EntityId;
|
|
266
|
+
name: string;
|
|
267
|
+
faction_id: EntityId;
|
|
268
|
+
detachment_rule_id?: EntityId | null;
|
|
269
|
+
/**
|
|
270
|
+
* 11e: the detachment-point cost (1–3) charged against the army's detachment-point budget. null when not yet assigned.
|
|
271
|
+
*/
|
|
272
|
+
detachment_points?: number | null;
|
|
273
|
+
/**
|
|
274
|
+
* 11e: ids of the Force Disposition entities this detachment grants. Empty until assigned.
|
|
275
|
+
*/
|
|
276
|
+
force_dispositions?: EntityId[];
|
|
277
|
+
enhancement_ids?: EntityId[];
|
|
278
|
+
stratagem_ids?: EntityId[];
|
|
279
|
+
restrictions?: {
|
|
280
|
+
required_keywords?: KeywordList;
|
|
281
|
+
excluded_keywords?: KeywordList;
|
|
282
|
+
notes?: string;
|
|
283
|
+
} | null;
|
|
284
|
+
game_version: GameVersionReference;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* A purchasable upgrade for a character unit, provided by a detachment.
|
|
288
|
+
*
|
|
289
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
290
|
+
* via the `definition` "enhancement".
|
|
291
|
+
*/
|
|
292
|
+
export interface Enhancement {
|
|
293
|
+
id: EntityId;
|
|
294
|
+
name: string;
|
|
295
|
+
detachment_id: EntityId;
|
|
296
|
+
cost: number;
|
|
297
|
+
/**
|
|
298
|
+
* True when the cost is carried over provisionally (e.g. seeded from a prior edition during migration) and not yet confirmed against the current dataslate.
|
|
299
|
+
*/
|
|
300
|
+
points_provisional?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* 11e: when true, this enhancement applies to up to `max_targets` non-character units while counting as a single Enhancement choice.
|
|
303
|
+
*/
|
|
304
|
+
upgrade_tag?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Number of units this enhancement may be applied to. Only meaningful when `upgrade_tag` is true; defaults to 1.
|
|
307
|
+
*/
|
|
308
|
+
max_targets?: number;
|
|
309
|
+
keyword_restrictions?: KeywordList;
|
|
310
|
+
exclusion_keywords?: KeywordList | null;
|
|
311
|
+
ability_id?: EntityId | null;
|
|
312
|
+
is_unique?: boolean;
|
|
313
|
+
game_version: GameVersionReference;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* A playable faction or sub-faction.
|
|
317
|
+
*
|
|
318
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
319
|
+
* via the `definition` "faction".
|
|
320
|
+
*/
|
|
321
|
+
export interface Faction {
|
|
322
|
+
id: EntityId;
|
|
323
|
+
name: string;
|
|
324
|
+
parent_faction_id?: EntityId | null;
|
|
325
|
+
game_version: GameVersionReference;
|
|
326
|
+
keywords?: KeywordList;
|
|
327
|
+
aliases?: string[];
|
|
328
|
+
/**
|
|
329
|
+
* Reference to the faction-wide ability (e.g., Oath of Moment)
|
|
330
|
+
*/
|
|
331
|
+
faction_rule_id?: EntityId | null;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* A 11e strategic-intent tag granted by detachments. Players compare dispositions at game start to determine the shared mission; asymmetric primary objectives result.
|
|
335
|
+
*
|
|
336
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
337
|
+
* via the `definition` "force-disposition".
|
|
338
|
+
*/
|
|
339
|
+
export interface ForceDisposition {
|
|
340
|
+
/**
|
|
341
|
+
* One of the five confirmed launch Force Dispositions.
|
|
342
|
+
*/
|
|
343
|
+
id: "take-and-hold" | "disruption" | "purge-the-foe" | "priority-assets" | "reconnaissance";
|
|
344
|
+
name: string;
|
|
345
|
+
/**
|
|
346
|
+
* Community-authored description of the disposition's effect (original prose only — no reproduced rules text).
|
|
347
|
+
*/
|
|
348
|
+
text?: string;
|
|
349
|
+
game_version: GameVersionReference;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
353
|
+
* via the `definition` "game-version".
|
|
354
|
+
*/
|
|
355
|
+
export interface GameVersion {
|
|
356
|
+
edition: Edition;
|
|
357
|
+
dataslate: DataslateVersion;
|
|
358
|
+
effective_date: string;
|
|
359
|
+
label?: string;
|
|
360
|
+
supersedes?: DataslateVersion | null;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Defines which character units can attach to which bodyguard units.
|
|
364
|
+
*
|
|
365
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
366
|
+
* via the `definition` "leader-attachment".
|
|
367
|
+
*/
|
|
368
|
+
export interface LeaderAttachment {
|
|
369
|
+
leader_id: EntityId;
|
|
370
|
+
/**
|
|
371
|
+
* @minItems 1
|
|
372
|
+
*/
|
|
373
|
+
eligible_bodyguard_ids: [EntityId, ...EntityId[]];
|
|
374
|
+
game_version: GameVersionReference;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* One cell of the 11e Force Disposition matrix: given the player's own Force Disposition and their opponent's, the mission that player plays. Mirrors a single row on a physical Force Disposition card. The (disposition, opponent_disposition) pair is the conceptual key; compound uniqueness across entries is a data convention, not enforced by this schema.
|
|
378
|
+
*
|
|
379
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
380
|
+
* via the `definition` "mission-matchup".
|
|
381
|
+
*/
|
|
382
|
+
export interface MissionMatchup {
|
|
383
|
+
id: EntityId;
|
|
384
|
+
/**
|
|
385
|
+
* The player's own Force Disposition.
|
|
386
|
+
*/
|
|
387
|
+
disposition: "take-and-hold" | "disruption" | "purge-the-foe" | "priority-assets" | "reconnaissance";
|
|
388
|
+
/**
|
|
389
|
+
* The opponent's Force Disposition.
|
|
390
|
+
*/
|
|
391
|
+
opponent_disposition: "take-and-hold" | "disruption" | "purge-the-foe" | "priority-assets" | "reconnaissance";
|
|
392
|
+
/**
|
|
393
|
+
* Kebab-case identifier
|
|
394
|
+
*/
|
|
395
|
+
mission_id: string;
|
|
396
|
+
game_version: GameVersionReference;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* An 11e primary mission (the objective a player scores). Which mission a player plays is selected by the Force Disposition matchup matrix (see mission-matchup), keyed on the player's own disposition and their opponent's. Victory points are capped per game and per battle round.
|
|
400
|
+
*
|
|
401
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
402
|
+
* via the `definition` "mission".
|
|
403
|
+
*/
|
|
404
|
+
export interface Mission {
|
|
405
|
+
id: EntityId;
|
|
406
|
+
name: string;
|
|
407
|
+
/**
|
|
408
|
+
* Mission pack or source the mission originates from.
|
|
409
|
+
*/
|
|
410
|
+
source?: string;
|
|
411
|
+
/**
|
|
412
|
+
* Community-authored mission/objective summary (original prose only — no reproduced rules text).
|
|
413
|
+
*/
|
|
414
|
+
description?: string;
|
|
415
|
+
/**
|
|
416
|
+
* Maximum primary VP scorable across the whole game. 11e default is 45.
|
|
417
|
+
*/
|
|
418
|
+
vp_per_game_cap?: number;
|
|
419
|
+
/**
|
|
420
|
+
* Maximum primary VP scorable in a single battle round. 11e default is 15.
|
|
421
|
+
*/
|
|
422
|
+
vp_per_round_cap?: number;
|
|
423
|
+
/**
|
|
424
|
+
* Ids of the deployment-pattern entities (maps) this mission can be played on. Empty until the per-mission maps are confirmed.
|
|
425
|
+
*/
|
|
426
|
+
deployment_pattern_ids?: EntityId[];
|
|
427
|
+
game_version: GameVersionReference;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* A draw-time predicate over an army list (not runtime board state, so deliberately NOT the Ability DSL condition). Used to gate when_drawn operations such as redraws. Example: a card that is void unless the opponent fields a large unit (10e 'Cull the Horde' redrew when the opponent had no unit of 14+ models) is { subject: 'opponent', quantifier: 'none', unit_filter: { model_count_min: 14 } } with operation 'redraw'.
|
|
431
|
+
*
|
|
432
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
433
|
+
* via the `definition` "army-composition-predicate".
|
|
434
|
+
*/
|
|
435
|
+
export interface ArmyCompositionPredicate {
|
|
436
|
+
/**
|
|
437
|
+
* Whose army list the predicate inspects.
|
|
438
|
+
*/
|
|
439
|
+
subject: "self" | "opponent";
|
|
440
|
+
/**
|
|
441
|
+
* Whether the army must contain ('any') or lack ('none') a unit matching unit_filter for the predicate to hold.
|
|
442
|
+
*/
|
|
443
|
+
quantifier: "any" | "none";
|
|
444
|
+
/**
|
|
445
|
+
* Criteria a unit in the army must satisfy to match. All present criteria must hold (logical AND).
|
|
446
|
+
*/
|
|
447
|
+
unit_filter: {
|
|
448
|
+
model_count_min?: number;
|
|
449
|
+
model_count_max?: number;
|
|
450
|
+
wounds_min?: number;
|
|
451
|
+
keywords?: KeywordList;
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* An 11e mission card. The deck-level rule (draw 2 per turn, keep unscored cards) is separate and not modelled here. This is the per-card shape: an optional on-draw deck operation, an optional player action, and zero or more VP-award blocks. Primary mission cards reuse this shape via card_type. Mechanic blocks reference the Ability DSL; prose is community-authored (no reproduced rules text).
|
|
456
|
+
*
|
|
457
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
458
|
+
* via the `definition` "secondary-card".
|
|
459
|
+
*/
|
|
460
|
+
export interface SecondaryCard {
|
|
461
|
+
id: EntityId;
|
|
462
|
+
name: string;
|
|
463
|
+
/**
|
|
464
|
+
* Whether this is a secondary card or a primary mission card (which reuses this shape).
|
|
465
|
+
*/
|
|
466
|
+
card_type?: "secondary" | "primary";
|
|
467
|
+
/**
|
|
468
|
+
* Finer classification within the deck (e.g. a category or tactical/fixed split). Free-form — not enum-locked until 11e categories are confirmed.
|
|
469
|
+
*/
|
|
470
|
+
subtype?: string;
|
|
471
|
+
/**
|
|
472
|
+
* Optional deck operation performed when this card is drawn (e.g. redraw, swap). Distinct from combat effects — deck operations have no combat target, so they are not modelled via the Ability DSL effect language. If `condition` is present, the operation fires only when the predicate holds.
|
|
473
|
+
*/
|
|
474
|
+
when_drawn?: {
|
|
475
|
+
/**
|
|
476
|
+
* The deck manipulation this card triggers on draw.
|
|
477
|
+
*/
|
|
478
|
+
operation: "reshuffle" | "replace" | "redraw" | "draw-extra" | "swap";
|
|
479
|
+
/**
|
|
480
|
+
* Other cards this operation references, by id.
|
|
481
|
+
*/
|
|
482
|
+
card_ids?: EntityId[];
|
|
483
|
+
condition?: ArmyCompositionPredicate1;
|
|
484
|
+
};
|
|
485
|
+
/**
|
|
486
|
+
* Optional player action the card enables.
|
|
487
|
+
*/
|
|
488
|
+
action?: {
|
|
489
|
+
/**
|
|
490
|
+
* The five official game phases. Unchanged between 10th and 11th edition — 11e reorders Pile In timing within the Fight phase but adds no top-level phase.
|
|
491
|
+
*/
|
|
492
|
+
starts?: "command" | "movement" | "shooting" | "charge" | "fight";
|
|
493
|
+
player_turn?: PlayerTurn;
|
|
494
|
+
units?: AbilityCondition;
|
|
495
|
+
/**
|
|
496
|
+
* Maximum number of times the action may be performed.
|
|
497
|
+
*/
|
|
498
|
+
use_limit?: number;
|
|
499
|
+
completes?: AbilityCondition1;
|
|
500
|
+
effect?: AbilityEffect;
|
|
501
|
+
};
|
|
502
|
+
/**
|
|
503
|
+
* VP-award blocks: each scores when `trigger` fires and the optional `when` condition holds. An award scores either a flat `vp` or a count-scaled `vp_per` (VP per instance of the thing named by `per`). Awards accrue independently and sum; a card's '+ ... CUMULATIVE' rows are modelled as separate awards flagged `cumulative` for faithful round-trip.
|
|
504
|
+
*
|
|
505
|
+
* @minItems 1
|
|
506
|
+
*/
|
|
507
|
+
awards?: [
|
|
508
|
+
({
|
|
509
|
+
[k: string]: unknown;
|
|
510
|
+
} | {
|
|
511
|
+
[k: string]: unknown;
|
|
512
|
+
}),
|
|
513
|
+
...({
|
|
514
|
+
[k: string]: unknown;
|
|
515
|
+
} | {
|
|
516
|
+
[k: string]: unknown;
|
|
517
|
+
})[]
|
|
518
|
+
];
|
|
519
|
+
/**
|
|
520
|
+
* Community-authored card description (original prose only — no reproduced rules text).
|
|
521
|
+
*/
|
|
522
|
+
text?: string;
|
|
523
|
+
game_version: GameVersionReference;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Draw-time army-composition predicate gating the operation (e.g. redraw when the opponent lacks a qualifying unit).
|
|
527
|
+
*/
|
|
528
|
+
export interface ArmyCompositionPredicate1 {
|
|
529
|
+
/**
|
|
530
|
+
* Whose army list the predicate inspects.
|
|
531
|
+
*/
|
|
532
|
+
subject: "self" | "opponent";
|
|
533
|
+
/**
|
|
534
|
+
* Whether the army must contain ('any') or lack ('none') a unit matching unit_filter for the predicate to hold.
|
|
535
|
+
*/
|
|
536
|
+
quantifier: "any" | "none";
|
|
537
|
+
/**
|
|
538
|
+
* Criteria a unit in the army must satisfy to match. All present criteria must hold (logical AND).
|
|
539
|
+
*/
|
|
540
|
+
unit_filter: {
|
|
541
|
+
model_count_min?: number;
|
|
542
|
+
model_count_max?: number;
|
|
543
|
+
wounds_min?: number;
|
|
544
|
+
keywords?: KeywordList;
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
549
|
+
* via the `definition` "simple-condition".
|
|
550
|
+
*/
|
|
551
|
+
export interface SimpleCondition {
|
|
552
|
+
type: "phase-is" | "timing-is" | "player-turn-is" | "unit-below-starting-strength" | "unit-below-half-strength" | "unit-has-keyword" | "unit-within-range-of" | "model-is-leader" | "target-has-keyword" | "charged-this-turn" | "advanced-this-turn" | "remained-stationary" | "is-battle-shocked" | "has-lost-wounds" | "opponent-unit-within-range" | "within-range-of-objective" | "attack-is-type" | "has-fought-this-phase" | "destroyed-by-attack-type" | "controls-objective" | "is-attached" | "terrain-area-control" | "engagement-state" | "territory-control" | "fights-first" | "disposition-matches" | "units-destroyed" | "units-destroyed-comparison" | "objective-majority";
|
|
553
|
+
parameters?: {
|
|
554
|
+
[k: string]: unknown;
|
|
555
|
+
};
|
|
556
|
+
negated?: boolean;
|
|
557
|
+
[k: string]: unknown;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
561
|
+
* via the `definition` "compound-condition".
|
|
562
|
+
*/
|
|
563
|
+
export interface CompoundCondition {
|
|
564
|
+
operator: "and" | "or" | "not";
|
|
565
|
+
/**
|
|
566
|
+
* @minItems 1
|
|
567
|
+
*/
|
|
568
|
+
operands: [ConditionNode, ...ConditionNode[]];
|
|
569
|
+
[k: string]: unknown;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
573
|
+
* via the `definition` "single-effect".
|
|
574
|
+
*/
|
|
575
|
+
export interface SingleEffect {
|
|
576
|
+
type: "stat-modifier" | "roll-modifier" | "re-roll" | "mortal-wounds" | "feel-no-pain" | "invulnerable-save" | "ward" | "keyword-grant" | "movement-modifier" | "deep-strike" | "fallback-and-act" | "fight-first" | "fight-last" | "shoot-on-death" | "fight-on-death" | "objective-control-modifier" | "leadership-modifier" | "damage-reduction" | "attack-restriction" | "ability-grant" | "cp-gain" | "cp-refund" | "model-destruction" | "resurrection" | "resource-gain" | "resource-spend" | "charge-roll-modifier" | "terrain-area-tag" | "bs-modifier" | "engagement-passthrough";
|
|
577
|
+
target: "self" | "bearer" | "unit" | "attached-unit" | "attacker" | "defender" | "friendly-within-aura" | "enemy-within-aura" | "all-friendly" | "all-enemy";
|
|
578
|
+
modifier?: {
|
|
579
|
+
[k: string]: unknown;
|
|
580
|
+
};
|
|
581
|
+
[k: string]: unknown;
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
585
|
+
* via the `definition` "choice-effect".
|
|
586
|
+
*/
|
|
587
|
+
export interface ChoiceEffect {
|
|
588
|
+
type: "choice";
|
|
589
|
+
/**
|
|
590
|
+
* @minItems 2
|
|
591
|
+
*/
|
|
592
|
+
options: [EffectNode, EffectNode, ...EffectNode[]];
|
|
593
|
+
choice_label?: string;
|
|
594
|
+
[k: string]: unknown;
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
598
|
+
* via the `definition` "sequence-effect".
|
|
599
|
+
*/
|
|
600
|
+
export interface SequenceEffect {
|
|
601
|
+
type: "sequence";
|
|
602
|
+
/**
|
|
603
|
+
* @minItems 1
|
|
604
|
+
*/
|
|
605
|
+
steps: [EffectNode, ...EffectNode[]];
|
|
606
|
+
[k: string]: unknown;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
610
|
+
* via the `definition` "dice-gated-effect".
|
|
611
|
+
*/
|
|
612
|
+
export interface DiceGatedEffect {
|
|
613
|
+
type: "dice-gated";
|
|
614
|
+
/**
|
|
615
|
+
* Dice expression, e.g. 'D6', '2D6'
|
|
616
|
+
*/
|
|
617
|
+
dice: string;
|
|
618
|
+
/**
|
|
619
|
+
* Fixed threshold or model characteristic to compare against
|
|
620
|
+
*/
|
|
621
|
+
threshold: number | ("leadership" | "toughness" | "save");
|
|
622
|
+
comparison?: "gte" | "lte" | "gt" | "lt" | "eq";
|
|
623
|
+
on_success?: EffectNode | null;
|
|
624
|
+
on_fail?: EffectNode | null;
|
|
625
|
+
[k: string]: unknown;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
629
|
+
* via the `definition` "conditional-effect".
|
|
630
|
+
*/
|
|
631
|
+
export interface ConditionalEffect {
|
|
632
|
+
type: "conditional";
|
|
633
|
+
condition: AbilityCondition2;
|
|
634
|
+
effect: EffectNode;
|
|
635
|
+
[k: string]: unknown;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
639
|
+
* via the `definition` "dice-pool-allocation-effect".
|
|
640
|
+
*/
|
|
641
|
+
export interface DicePoolAllocationEffect {
|
|
642
|
+
type: "dice-pool-allocation";
|
|
643
|
+
pool: {
|
|
644
|
+
count: number;
|
|
645
|
+
die: string;
|
|
646
|
+
[k: string]: unknown;
|
|
647
|
+
};
|
|
648
|
+
max_activations: number;
|
|
649
|
+
/**
|
|
650
|
+
* @minItems 1
|
|
651
|
+
*/
|
|
652
|
+
options: [
|
|
653
|
+
{
|
|
654
|
+
name: string;
|
|
655
|
+
requirement: {
|
|
656
|
+
type: "pair" | "triple" | "single" | "run";
|
|
657
|
+
min_value: number;
|
|
658
|
+
[k: string]: unknown;
|
|
659
|
+
};
|
|
660
|
+
effect: EffectNode;
|
|
661
|
+
[k: string]: unknown;
|
|
662
|
+
},
|
|
663
|
+
...{
|
|
664
|
+
name: string;
|
|
665
|
+
requirement: {
|
|
666
|
+
type: "pair" | "triple" | "single" | "run";
|
|
667
|
+
min_value: number;
|
|
668
|
+
[k: string]: unknown;
|
|
669
|
+
};
|
|
670
|
+
effect: EffectNode;
|
|
671
|
+
[k: string]: unknown;
|
|
672
|
+
}[]
|
|
673
|
+
];
|
|
674
|
+
[k: string]: unknown;
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* A CP-costed ability usable during specific game phases.
|
|
678
|
+
*
|
|
679
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
680
|
+
* via the `definition` "stratagem".
|
|
681
|
+
*/
|
|
682
|
+
export interface Stratagem {
|
|
683
|
+
id: EntityId;
|
|
684
|
+
name: string;
|
|
685
|
+
/**
|
|
686
|
+
* Whether this is a universal core stratagem or tied to a specific detachment
|
|
687
|
+
*/
|
|
688
|
+
category: "core" | "detachment";
|
|
689
|
+
/**
|
|
690
|
+
* GW-printed stratagem category from the card
|
|
691
|
+
*/
|
|
692
|
+
type: "battle-tactic" | "strategic-ploy" | "epic-deed" | "wargear";
|
|
693
|
+
/**
|
|
694
|
+
* Null for core stratagems
|
|
695
|
+
*/
|
|
696
|
+
detachment_id?: EntityId | null;
|
|
697
|
+
cp_cost: number;
|
|
698
|
+
phases: PhaseList;
|
|
699
|
+
player_turn: PlayerTurn;
|
|
700
|
+
timing: "once-per-phase" | "once-per-turn" | "once-per-battle" | "unlimited";
|
|
701
|
+
target_restrictions?: {
|
|
702
|
+
required_keywords?: KeywordList;
|
|
703
|
+
excluded_keywords?: KeywordList;
|
|
704
|
+
notes?: string;
|
|
705
|
+
} | null;
|
|
706
|
+
ability_id?: EntityId | null;
|
|
707
|
+
game_version: GameVersionReference;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* One terrain feature placed on the board.
|
|
711
|
+
*
|
|
712
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
713
|
+
* via the `definition` "piece".
|
|
714
|
+
*/
|
|
715
|
+
export interface Piece {
|
|
716
|
+
name?: string;
|
|
717
|
+
footprint: Footprint;
|
|
718
|
+
position: Vec21;
|
|
719
|
+
/**
|
|
720
|
+
* Clockwise rotation of the footprint about `position`. Absent or 0 means axis-aligned.
|
|
721
|
+
*/
|
|
722
|
+
rotation_degrees?: number;
|
|
723
|
+
/**
|
|
724
|
+
* Optional descriptive label for the GW standard template this piece uses (e.g. 'large-ruin', 'long-wall'). Free-form, not enum-locked — the geometry in `footprint` is authoritative.
|
|
725
|
+
*/
|
|
726
|
+
template?: string;
|
|
727
|
+
/**
|
|
728
|
+
* Height of the piece in inches. Gates Plunging Fire (a piece 3" or taller confers +1 BS on ground-level targets).
|
|
729
|
+
*/
|
|
730
|
+
height_inches?: number;
|
|
731
|
+
/**
|
|
732
|
+
* Terrain-area keywords this piece's area carries.
|
|
733
|
+
*/
|
|
734
|
+
terrain_area_keywords?: TerrainAreaKeyword[];
|
|
735
|
+
/**
|
|
736
|
+
* Pieces sharing a `link_group` value are linked terrain — treated as a single terrain feature (and, where an objective sits among them, a single objective).
|
|
737
|
+
*/
|
|
738
|
+
link_group?: string;
|
|
739
|
+
/**
|
|
740
|
+
* Whether this piece carries an objective marker.
|
|
741
|
+
*/
|
|
742
|
+
is_objective?: boolean;
|
|
743
|
+
/**
|
|
744
|
+
* Objective-marker metadata. Only meaningful when `is_objective` is true.
|
|
745
|
+
*/
|
|
746
|
+
objective?: {
|
|
747
|
+
position?: Vec22;
|
|
748
|
+
/**
|
|
749
|
+
* Range from the marker within which models contribute to control.
|
|
750
|
+
*/
|
|
751
|
+
control_range_inches?: number;
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* A 2D point in board inches. Origin at a board corner; JSON uses y-down (downstream renderers may flip to y-up).
|
|
756
|
+
*/
|
|
757
|
+
export interface Vec21 {
|
|
758
|
+
x: number;
|
|
759
|
+
y: number;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* A 2D point in board inches. Origin at a board corner; JSON uses y-down (downstream renderers may flip to y-up).
|
|
763
|
+
*/
|
|
764
|
+
export interface Vec22 {
|
|
765
|
+
x: number;
|
|
766
|
+
y: number;
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* A recommended arrangement of terrain pieces on the board, independent of the deployment map (a deployment-pattern references the layouts it recommends via recommended_terrain_layout_ids). Geometry is the source of truth; the GW standard piece templates are expressed as explicit footprints, with an optional descriptive `template` label. Footprints are deliberately open (not enum-locked) — the launch catalog and its size are unconfirmed, so this models any shape rather than a fixed set. No layout data is authored yet.
|
|
770
|
+
*
|
|
771
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
772
|
+
* via the `definition` "terrain-layout".
|
|
773
|
+
*/
|
|
774
|
+
export interface TerrainLayout {
|
|
775
|
+
id: EntityId;
|
|
776
|
+
name: string;
|
|
777
|
+
/**
|
|
778
|
+
* Mission pack or source the layout originates from.
|
|
779
|
+
*/
|
|
780
|
+
source?: string;
|
|
781
|
+
description?: string;
|
|
782
|
+
/**
|
|
783
|
+
* Terrain pieces composing the layout. May be empty while a layout is registered by name ahead of its confirmed geometry.
|
|
784
|
+
*/
|
|
785
|
+
pieces?: Piece[];
|
|
786
|
+
game_version: GameVersionReference;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Describes the internal model-type breakdown of a unit.
|
|
790
|
+
*
|
|
791
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
792
|
+
* via the `definition` "unit-composition".
|
|
793
|
+
*/
|
|
794
|
+
export interface UnitComposition {
|
|
795
|
+
unit_id: EntityId;
|
|
796
|
+
/**
|
|
797
|
+
* @minItems 1
|
|
798
|
+
*/
|
|
799
|
+
models: [
|
|
800
|
+
{
|
|
801
|
+
name: string;
|
|
802
|
+
profile_name?: string | null;
|
|
803
|
+
min: number;
|
|
804
|
+
max: number;
|
|
805
|
+
default_weapon_ids?: EntityId[];
|
|
806
|
+
is_leader_model?: boolean;
|
|
807
|
+
},
|
|
808
|
+
...{
|
|
809
|
+
name: string;
|
|
810
|
+
profile_name?: string | null;
|
|
811
|
+
min: number;
|
|
812
|
+
max: number;
|
|
813
|
+
default_weapon_ids?: EntityId[];
|
|
814
|
+
is_leader_model?: boolean;
|
|
815
|
+
}[]
|
|
816
|
+
];
|
|
817
|
+
game_version: GameVersionReference;
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* A unit datasheet entry with stat profiles and point costs.
|
|
821
|
+
*
|
|
822
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
823
|
+
* via the `definition` "unit".
|
|
824
|
+
*/
|
|
825
|
+
export interface Unit {
|
|
826
|
+
id: EntityId;
|
|
827
|
+
name: string;
|
|
828
|
+
faction_id: EntityId;
|
|
829
|
+
/**
|
|
830
|
+
* Battlefield role from the datasheet header. Unit types (Infantry, Vehicle, etc.) belong in keywords.
|
|
831
|
+
*/
|
|
832
|
+
role?: "character" | "battleline" | "dedicated-transport" | "fortification" | "allied" | "epic-hero";
|
|
833
|
+
/**
|
|
834
|
+
* Character attachment role (11e). 'support' implies the unit is only legal when attached to a host unit (cannot be taken solo); 'leader' is valid as a standalone list entry. null/absent for non-attaching units.
|
|
835
|
+
*/
|
|
836
|
+
attachment_role?: ("leader" | "support") | null;
|
|
837
|
+
/**
|
|
838
|
+
* @minItems 1
|
|
839
|
+
*/
|
|
840
|
+
profiles: [
|
|
841
|
+
{
|
|
842
|
+
/**
|
|
843
|
+
* Profile name (e.g., 'Wounded' for degrading)
|
|
844
|
+
*/
|
|
845
|
+
name?: string;
|
|
846
|
+
M: StatValue;
|
|
847
|
+
T: number;
|
|
848
|
+
W: number;
|
|
849
|
+
Sv: number;
|
|
850
|
+
invuln_sv?: number | null;
|
|
851
|
+
Ld: number;
|
|
852
|
+
OC: number;
|
|
853
|
+
[k: string]: unknown;
|
|
854
|
+
},
|
|
855
|
+
...{
|
|
856
|
+
/**
|
|
857
|
+
* Profile name (e.g., 'Wounded' for degrading)
|
|
858
|
+
*/
|
|
859
|
+
name?: string;
|
|
860
|
+
M: StatValue;
|
|
861
|
+
T: number;
|
|
862
|
+
W: number;
|
|
863
|
+
Sv: number;
|
|
864
|
+
invuln_sv?: number | null;
|
|
865
|
+
Ld: number;
|
|
866
|
+
OC: number;
|
|
867
|
+
[k: string]: unknown;
|
|
868
|
+
}[]
|
|
869
|
+
];
|
|
870
|
+
points?: {
|
|
871
|
+
models: number;
|
|
872
|
+
cost: number;
|
|
873
|
+
[k: string]: unknown;
|
|
874
|
+
}[];
|
|
875
|
+
/**
|
|
876
|
+
* True when point costs are carried over provisionally (e.g. seeded from a prior edition during migration) and not yet confirmed against the current dataslate.
|
|
877
|
+
*/
|
|
878
|
+
points_provisional?: boolean;
|
|
879
|
+
keywords?: KeywordList;
|
|
880
|
+
faction_keywords?: KeywordList;
|
|
881
|
+
base_size_mm?: {
|
|
882
|
+
shape: "round" | "oval";
|
|
883
|
+
diameter?: number;
|
|
884
|
+
width?: number;
|
|
885
|
+
length?: number;
|
|
886
|
+
[k: string]: unknown;
|
|
887
|
+
} | null;
|
|
888
|
+
model_count?: {
|
|
889
|
+
min: number;
|
|
890
|
+
max: number;
|
|
891
|
+
[k: string]: unknown;
|
|
892
|
+
};
|
|
893
|
+
weapon_ids?: EntityId[];
|
|
894
|
+
ability_ids?: EntityId[];
|
|
895
|
+
transport_capacity?: {
|
|
896
|
+
capacity: number;
|
|
897
|
+
keyword_restrictions?: KeywordList | null;
|
|
898
|
+
exclusion_keywords?: KeywordList | null;
|
|
899
|
+
} | null;
|
|
900
|
+
game_version: GameVersionReference;
|
|
901
|
+
is_legend?: boolean;
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* A weapon substitution option available to models within a unit.
|
|
905
|
+
*
|
|
906
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
907
|
+
* via the `definition` "wargear-option".
|
|
908
|
+
*/
|
|
909
|
+
export interface WargearOption {
|
|
910
|
+
id: EntityId;
|
|
911
|
+
unit_id: EntityId;
|
|
912
|
+
model_constraint?: {
|
|
913
|
+
model_name?: string;
|
|
914
|
+
per_n_models?: number;
|
|
915
|
+
max_count?: number;
|
|
916
|
+
} | null;
|
|
917
|
+
/**
|
|
918
|
+
* Weapon IDs being removed
|
|
919
|
+
*
|
|
920
|
+
* @minItems 1
|
|
921
|
+
*/
|
|
922
|
+
replaces: [EntityId, ...EntityId[]];
|
|
923
|
+
/**
|
|
924
|
+
* Weapon IDs being added
|
|
925
|
+
*
|
|
926
|
+
* @minItems 1
|
|
927
|
+
*/
|
|
928
|
+
replacement: [EntityId, ...EntityId[]];
|
|
929
|
+
is_free?: boolean;
|
|
930
|
+
additional_cost?: number | null;
|
|
931
|
+
game_version: GameVersionReference;
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* A weapon entry with one or more stat profiles (e.g., standard and overcharge modes).
|
|
935
|
+
*
|
|
936
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
937
|
+
* via the `definition` "weapon".
|
|
938
|
+
*/
|
|
939
|
+
export interface Weapon {
|
|
940
|
+
id: EntityId;
|
|
941
|
+
name: string;
|
|
942
|
+
type: "ranged" | "melee";
|
|
943
|
+
/**
|
|
944
|
+
* @minItems 1
|
|
945
|
+
*/
|
|
946
|
+
profiles: [
|
|
947
|
+
{
|
|
948
|
+
name: string;
|
|
949
|
+
range?: number | "Melee";
|
|
950
|
+
stats: {
|
|
951
|
+
A: StatValue;
|
|
952
|
+
BS?: number | null;
|
|
953
|
+
WS?: number | null;
|
|
954
|
+
S: StatValue;
|
|
955
|
+
AP: number;
|
|
956
|
+
D: StatValue;
|
|
957
|
+
[k: string]: unknown;
|
|
958
|
+
};
|
|
959
|
+
keywords?: KeywordList;
|
|
960
|
+
},
|
|
961
|
+
...{
|
|
962
|
+
name: string;
|
|
963
|
+
range?: number | "Melee";
|
|
964
|
+
stats: {
|
|
965
|
+
A: StatValue;
|
|
966
|
+
BS?: number | null;
|
|
967
|
+
WS?: number | null;
|
|
968
|
+
S: StatValue;
|
|
969
|
+
AP: number;
|
|
970
|
+
D: StatValue;
|
|
971
|
+
[k: string]: unknown;
|
|
972
|
+
};
|
|
973
|
+
keywords?: KeywordList;
|
|
974
|
+
}[]
|
|
975
|
+
];
|
|
976
|
+
game_version: GameVersionReference;
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Community-authored structured representation of what a game ability does. NOT GW text.
|
|
980
|
+
*
|
|
981
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
982
|
+
* via the `definition` "ability".
|
|
983
|
+
*/
|
|
984
|
+
export interface AbilityDSLEntry {
|
|
985
|
+
ability_id: EntityId;
|
|
986
|
+
name: string;
|
|
987
|
+
authored_by: ContributorRef;
|
|
988
|
+
game_version: GameVersionReference;
|
|
989
|
+
version?: DataslateVersion;
|
|
990
|
+
supersedes?: DataslateVersion | null;
|
|
991
|
+
unit_ids?: EntityId[];
|
|
992
|
+
/**
|
|
993
|
+
* For faction-type abilities, the faction this rule belongs to
|
|
994
|
+
*/
|
|
995
|
+
faction_id?: EntityId | null;
|
|
996
|
+
/**
|
|
997
|
+
* For detachment/enhancement/stratagem-type abilities, the associated detachment
|
|
998
|
+
*/
|
|
999
|
+
detachment_id?: EntityId | null;
|
|
1000
|
+
ability_type?: "core" | "faction" | "detachment" | "unit" | "enhancement" | "stratagem";
|
|
1001
|
+
/**
|
|
1002
|
+
* How this ability interacts with the game flow — not a runtime predicate
|
|
1003
|
+
*/
|
|
1004
|
+
behavior?: "passive" | "activated" | "reactive" | "aura";
|
|
1005
|
+
effect: AbilityEffect1;
|
|
1006
|
+
scope: AbilityScope;
|
|
1007
|
+
interactions?: {
|
|
1008
|
+
ability_ref: EntityId;
|
|
1009
|
+
type: "conflicts-with" | "combos-with" | "superseded-by" | "requires" | "replaces";
|
|
1010
|
+
notes?: string;
|
|
1011
|
+
[k: string]: unknown;
|
|
1012
|
+
}[];
|
|
1013
|
+
disputed?: boolean;
|
|
1014
|
+
dispute_notes?: string;
|
|
1015
|
+
community_notes?: string;
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
1019
|
+
* via the `definition` "scope".
|
|
1020
|
+
*/
|
|
1021
|
+
export interface AbilityScope {
|
|
1022
|
+
range: "self" | "unit" | "attached" | "aura-6" | "aura-9" | "aura-12" | "aura-custom" | "engagement-range" | "any-visible" | "any-on-battlefield" | "terrain-within-range";
|
|
1023
|
+
duration: "phase" | "turn" | "battle-round" | "battle" | "until-next-command-phase" | "one-use" | "permanent";
|
|
1024
|
+
range_inches?: number;
|
|
1025
|
+
[k: string]: unknown;
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
1029
|
+
* via the `definition` "interaction-flag".
|
|
1030
|
+
*/
|
|
1031
|
+
export interface InteractionFlag {
|
|
1032
|
+
ability_a: EntityId;
|
|
1033
|
+
ability_b: EntityId;
|
|
1034
|
+
interaction_type: "conflicts" | "combos" | "sequencing-dependent" | "stacks" | "does-not-stack" | "replaces";
|
|
1035
|
+
resolution?: string;
|
|
1036
|
+
faq_reference?: string;
|
|
1037
|
+
disputed?: boolean;
|
|
1038
|
+
game_version: GameVersionReference;
|
|
1039
|
+
authored_by?: ContributorRef;
|
|
1040
|
+
[k: string]: unknown;
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
1044
|
+
* via the `definition` "phase-mapping".
|
|
1045
|
+
*/
|
|
1046
|
+
export interface PhaseMapping {
|
|
1047
|
+
source_id: EntityId;
|
|
1048
|
+
source_type: SourceType;
|
|
1049
|
+
phases: PhaseList;
|
|
1050
|
+
game_version: GameVersionReference;
|
|
1051
|
+
authored_by?: ContributorRef;
|
|
1052
|
+
[k: string]: unknown;
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* A faction's resource system (Miracle Dice, Pain tokens, Blessings dice pool, etc.).
|
|
1056
|
+
*
|
|
1057
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
1058
|
+
* via the `definition` "resource-pool".
|
|
1059
|
+
*/
|
|
1060
|
+
export interface ResourcePool {
|
|
1061
|
+
id: EntityId;
|
|
1062
|
+
name: string;
|
|
1063
|
+
faction_id: EntityId;
|
|
1064
|
+
pool_type: "token" | "dice-pool" | "counter";
|
|
1065
|
+
generation?: {
|
|
1066
|
+
condition: AbilityCondition2;
|
|
1067
|
+
amount: StatValue;
|
|
1068
|
+
[k: string]: unknown;
|
|
1069
|
+
}[];
|
|
1070
|
+
max_size?: number | null;
|
|
1071
|
+
game_version: GameVersionReference;
|
|
1072
|
+
}
|
|
1073
|
+
/**
|
|
1074
|
+
* This interface was referenced by `0KdcBundledSchemas`'s JSON-Schema
|
|
1075
|
+
* via the `definition` "timing-flag".
|
|
1076
|
+
*/
|
|
1077
|
+
export interface TimingFlag {
|
|
1078
|
+
source_id: EntityId;
|
|
1079
|
+
source_type: SourceType;
|
|
1080
|
+
timing: "start-of-phase" | "end-of-phase" | "before-hit-roll" | "after-hit-roll" | "before-wound-roll" | "after-wound-roll" | "before-save-roll" | "after-save-roll" | "before-damage-roll" | "after-damage-roll" | "before-charge-roll" | "after-charge-roll" | "before-advance-roll" | "after-advance-roll" | "before-battle-shock" | "after-battle-shock" | "on-unit-selected" | "on-unit-destroyed" | "on-model-destroyed" | "on-damage-allocated";
|
|
1081
|
+
game_version: GameVersionReference;
|
|
1082
|
+
authored_by?: ContributorRef;
|
|
1083
|
+
[k: string]: unknown;
|
|
1084
|
+
}
|