wound_calculator
Calculate expected wounds and damage for a Warhammer 40,000 attack sequence. Input an attack profile and target stats to get probabilities for hits, wounds, saves, and damage.
Instructions
Calculate expected wounds and damage for a Warhammer 40,000 attack sequence. Pure math — input an attack profile and target stats, get probabilities and expected results for hits, wounds, saves, and damage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attacks | Yes | Number of attacks | |
| hit_skill | Yes | Ballistic Skill or Weapon Skill needed (e.g., 3 for 3+) | |
| strength | Yes | Weapon strength | |
| toughness | Yes | Target toughness | |
| armour_save | Yes | Target's armour save (e.g., 3 for 3+, 7 for no save) | |
| damage | Yes | Damage value (e.g., '1', '2', 'D3', 'D6', 'D6+1', '2D6') | |
| armour_penetration | No | AP value as a positive number (e.g., 2 for AP-2) | |
| invulnerable_save | No | Invulnerable save (e.g., 4 for 4++) | |
| feel_no_pain | No | Feel No Pain value (e.g., 5 for 5+++) | |
| reroll_hits | No | Re-roll hit rolls: 'ones' = re-roll 1s, 'all' = re-roll all misses | |
| reroll_wounds | No | Re-roll wound rolls: 'ones' = re-roll 1s, 'all' = re-roll all misses | |
| weapon_keywords | No | Weapon keywords that affect the calculation (e.g., ['Lethal Hits', 'Sustained Hits 1', 'Devastating Wounds', 'Torrent', 'Twin-linked']) | |
| wounds_per_model | No | Wounds characteristic of each target model (for models killed estimate) | |
| game_mode | No | Game mode (currently only 40k wound math is supported) | 40k |