warhammer-oracle 0.1.54 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -1
- package/dist/data/detachments.d.ts +3 -0
- package/dist/data/detachments.d.ts.map +1 -0
- package/dist/data/detachments.js +9916 -0
- package/dist/data/detachments.js.map +1 -0
- package/dist/data/enhancements.d.ts +3 -0
- package/dist/data/enhancements.d.ts.map +1 -0
- package/dist/data/enhancements.js +35178 -0
- package/dist/data/enhancements.js.map +1 -0
- package/dist/data/kill-team-operatives.js +1 -1
- package/dist/data/kill-team-rules.js +1 -1
- package/dist/data/ploys.d.ts +3 -0
- package/dist/data/ploys.d.ts.map +1 -0
- package/dist/data/ploys.js +151 -0
- package/dist/data/ploys.js.map +1 -0
- package/dist/data/rules.js +1 -1
- package/dist/data/stratagems.d.ts +3 -0
- package/dist/data/stratagems.d.ts.map +1 -0
- package/dist/data/stratagems.js +232 -0
- package/dist/data/stratagems.js.map +1 -0
- package/dist/data/units.js +1 -1
- package/dist/lib/wound-calc.d.ts +35 -0
- package/dist/lib/wound-calc.d.ts.map +1 -0
- package/dist/lib/wound-calc.js +225 -0
- package/dist/lib/wound-calc.js.map +1 -0
- package/dist/lib/xml-parser.d.ts +31 -2
- package/dist/lib/xml-parser.d.ts.map +1 -1
- package/dist/lib/xml-parser.js +274 -1
- package/dist/lib/xml-parser.js.map +1 -1
- package/dist/register-tools.d.ts.map +1 -1
- package/dist/register-tools.js +12 -0
- package/dist/register-tools.js.map +1 -1
- package/dist/tools/lookup-detachment.d.ts +3 -0
- package/dist/tools/lookup-detachment.d.ts.map +1 -0
- package/dist/tools/lookup-detachment.js +58 -0
- package/dist/tools/lookup-detachment.js.map +1 -0
- package/dist/tools/lookup-enhancement.d.ts +3 -0
- package/dist/tools/lookup-enhancement.d.ts.map +1 -0
- package/dist/tools/lookup-enhancement.js +51 -0
- package/dist/tools/lookup-enhancement.js.map +1 -0
- package/dist/tools/lookup-ploy.d.ts +3 -0
- package/dist/tools/lookup-ploy.d.ts.map +1 -0
- package/dist/tools/lookup-ploy.js +57 -0
- package/dist/tools/lookup-ploy.js.map +1 -0
- package/dist/tools/lookup-stratagem.d.ts +3 -0
- package/dist/tools/lookup-stratagem.d.ts.map +1 -0
- package/dist/tools/lookup-stratagem.js +66 -0
- package/dist/tools/lookup-stratagem.js.map +1 -0
- package/dist/tools/search-stratagems.d.ts +3 -0
- package/dist/tools/search-stratagems.d.ts.map +1 -0
- package/dist/tools/search-stratagems.js +61 -0
- package/dist/tools/search-stratagems.js.map +1 -0
- package/dist/tools/wound-calculator.d.ts +3 -0
- package/dist/tools/wound-calculator.d.ts.map +1 -0
- package/dist/tools/wound-calculator.js +208 -0
- package/dist/tools/wound-calculator.js.map +1 -0
- package/dist/types.d.ts +42 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
-
Ask your AI assistant about datasheets, keywords, phase sequences, and more. Covers Warhammer 40,000, Combat Patrol, and Kill Team.
|
|
18
|
+
Ask your AI assistant about datasheets, stratagems, detachments, enhancements, keywords, phase sequences, wound math, and more. Covers Warhammer 40,000, Combat Patrol, and Kill Team.
|
|
19
19
|
|
|
20
20
|
[](https://glama.ai/mcp/servers/gregario/warhammer-oracle)
|
|
21
21
|
|
|
@@ -123,6 +123,72 @@ Show the full turn sequence for a game mode, or highlight where you are in the t
|
|
|
123
123
|
|
|
124
124
|
**Parameters:** `current_phase` (optional), `game_mode` (optional, default: `40k`)
|
|
125
125
|
|
|
126
|
+
### `lookup_stratagem`
|
|
127
|
+
|
|
128
|
+
Look up a Warhammer 40,000 stratagem by name. Returns CP cost, phase timing, target, and effect.
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
"What does Fire Overwatch do?"
|
|
132
|
+
"Show me the Command Re-roll stratagem"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**Parameters:** `name` (required), `faction` (optional), `phase` (optional), `detachment` (optional)
|
|
136
|
+
|
|
137
|
+
### `search_stratagems`
|
|
138
|
+
|
|
139
|
+
Search stratagems by name, faction, phase, or detachment. Returns a compact list (max 10).
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
"What stratagems can I use in the Fight phase?"
|
|
143
|
+
"Show me Gladius Task Force stratagems"
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Parameters:** `query` (required), `faction` (optional), `phase` (optional), `detachment` (optional)
|
|
147
|
+
|
|
148
|
+
### `lookup_detachment`
|
|
149
|
+
|
|
150
|
+
Look up a detachment by name. Returns the detachment ability, available enhancements, and associated stratagems.
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
"Show me the Gladius Task Force detachment"
|
|
154
|
+
"What does the Warhost detachment do for Aeldari?"
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Parameters:** `name` (required), `faction` (optional)
|
|
158
|
+
|
|
159
|
+
### `lookup_enhancement`
|
|
160
|
+
|
|
161
|
+
Look up a character enhancement by name. Returns points cost, detachment, and effect.
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
"What does Adept of the Codex do?"
|
|
165
|
+
"Show me Aeldari enhancements"
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Parameters:** `name` (required), `faction` (optional), `detachment` (optional)
|
|
169
|
+
|
|
170
|
+
### `lookup_ploy`
|
|
171
|
+
|
|
172
|
+
Look up a Kill Team ploy by name. Returns type (strategic/tactical), CP cost, timing, and effect.
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
"What does the Bolster ploy do in Kill Team?"
|
|
176
|
+
"Show me Legionaries ploys"
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**Parameters:** `name` (required), `faction` (optional), `type` (optional: `strategic`, `tactical`)
|
|
180
|
+
|
|
181
|
+
### `wound_calculator`
|
|
182
|
+
|
|
183
|
+
Calculate expected damage output for an attack profile against a target. Handles re-rolls, weapon keywords (Lethal Hits, Devastating Wounds, Sustained Hits, Torrent), invulnerable saves, and Feel No Pain.
|
|
184
|
+
|
|
185
|
+
```
|
|
186
|
+
"Calculate damage: 10 attacks, BS3+, S5 AP-1 D2 vs T4 Sv3+"
|
|
187
|
+
"How much damage does a lascannon do to a Leman Russ?"
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
**Parameters:** `attacks`, `hit_skill`, `strength`, `toughness`, `armour_save`, `damage` (all required); `armour_penetration`, `invulnerable_save`, `feel_no_pain`, `reroll_hits`, `reroll_wounds`, `weapon_keywords`, `wounds_per_model`, `game_mode` (all optional)
|
|
191
|
+
|
|
126
192
|
## Data
|
|
127
193
|
|
|
128
194
|
All data is embedded at build time — no network calls at runtime.
|
|
@@ -131,6 +197,10 @@ All data is embedded at build time — no network calls at runtime.
|
|
|
131
197
|
|---|---|---|
|
|
132
198
|
| 40K unit datasheets | 2,642 | [BSData/wh40k-10e](https://github.com/BSData/wh40k-10e) |
|
|
133
199
|
| Kill Team operatives | 506 | [BSData/wh40k-killteam](https://github.com/BSData/wh40k-killteam) |
|
|
200
|
+
| Detachments | 991 | BSData (auto-extracted) |
|
|
201
|
+
| Enhancements | 3,908 | BSData (auto-extracted) |
|
|
202
|
+
| Stratagems | 17 | Hand-curated (core + examples) |
|
|
203
|
+
| Kill Team ploys | 14 | Hand-curated (universal + popular factions) |
|
|
134
204
|
| Shared rules | 33 (40K) + 22 (KT) | BSData |
|
|
135
205
|
| Curated keywords | 25 | Hand-written, plain English |
|
|
136
206
|
| Game mode sequences | 3 | Hand-curated (40K, Combat Patrol, Kill Team) |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detachments.d.ts","sourceRoot":"","sources":["../../src/data/detachments.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,eAAO,MAAM,WAAW,EAAE,UAAU,EAurTnC,CAAC"}
|