attack_speed
Calculate frames per attack and IAS breakpoints for a Diablo II character, weapon, skill, and game version using imported animation and data tables.
Instructions
Attack speed: frames per attack for a setup, and the increased attack speed (IAS) breakpoints, computed from the game's animation data (animdata.d2) and data tables for the version. character: a class, a mercenary (rogue, town guard, iron wolf, barbarian mercenary) or a monstats.txt Id. weapon: a weapons.txt name or code ('' for unarmed; a mercenary's own weapon if left out). skill: a skills.txt name ('attack' for a normal attack): Zeal, Fury, Fend, Strafe and Dragon Talon are timed hit by hit with the animation rewinds; Jab, Frenzy, Double Swing, Double Throw, Dragon Claw as sequences; Whirlwind by its own weapon-only rule; Smite, Bash, Kick and other skills that follow attack speed. ias: total IAS from all gear including the weapon. weapon_ias: the part of it on the weapon (it counts twice for shape-shifted players and alone for Whirlwind). skill_ias: IAS from skills and auras (Fanaticism, Frenzy, Burst of Speed, the wereform skills' IAS, Blessed Aim's...), added after diminishing returns, can be negative (Holy Freeze, slows). form: 'human', or 'werewolf' / 'werebear' (or another shape-shift state). weapon2: the other hand's weapon for a Barbarian or Assassin holding two. hits: how many hits a multi-hit skill makes (default: its maximum). version: the game version the data was imported as, e.g. '1.13c'. The reply gives frames per hit separated by '/' (the last part is the final hit and the follow-through), then the IAS (from gear other than the weapon) at which that changes. Limits: no dual-wield Whirlwind, no Whirlwind or sequences while shape-shifted, no throwing-skill specifics beyond the throw animation; Fury and other shape-shifted skills use the documented wereform base-speed rule; mods are right only if their animdata.d2 and tables are imported.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"character": "<character>"
},
"name": "attack_speed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ias | No | ||
| form | No | human | |
| hits | No | ||
| skill | No | attack | |
| weapon | No | ||
| version | No | ||
| weapon2 | No | ||
| character | Yes | ||
| skill_ias | No | ||
| weapon_ias | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |