Well, after much confusion of my own, I think I've figured out what Hammerman meant.
Hammerman:
Ok, now we have a value for animation speed, but that isn't the final value for animation speed.
New Animation Speed = (prev frames * 256) / Old Animation speed
Where Old Animation speed is the value we just got from the 'delay' formula. And prev frames is:
Now we can finally use that New Animation Speed and plug it into the standard weapon speed formula in place of the usual 256 that goes there.
The only remaining thing to know is that 'Base' is always 11 for the Bear, 12 for the Wolf.
So here are the formulas again, in the order in which they should be applied, and hopefully clearer (and with the 'wsm' term self-consistant):
Anim speed0 = [a1_frames*256 / [(weapon ias+wsm+100)*256/100]]
a1_frames is the 'Base + 1' value for a Druid using that weapon type
Anim speed1 = [prev frames * 256 / Anim speed0]
prev frames = 9 or 10 (Bear or Wolf, respectively)
Speed increase = [120 * item_ias / (120 + item ias)] + skill ias + wsm
EDIT: Oh, and Speed Increase is capped at 75.
Frames = {256*(Base + 1)/[(100 + Speed Increase)/100*Anim Speed1]} - 1
'Base' = 11 or 12 (Bear or Wolf, respectively)
*[] denotes round down, {} denotes round up.
-------
Anyway, if I interpreted and applied all that correctly, than this formula does not quite fit the observed data. I compared to TheDragoon's Attack Speed Chart (Werebear) for a One-handed Axe with base speed 0. I didn't know what a1_frames would be for a one-handed axe, but given that the value on the chart with no ias of any kind was 22, the only value that would fit is 17. Using that, and 11 for 'Base' and 9 for 'prev frames' the formula was near the chart but differed at (among other places) 25, 35, and 95 wias (with no oias).
- Dagni
Hammerman:
Quote:Now, normally 'Animation speed' is 256. But for wereform attack speeds it uses a differently calculated number... here's how. We begin with:But since he was using the 'delay' formula, he didn't change or explain any of the variable names. So for that we copy from the whirlwind thread:
Animation speed = a1_frames*256 / ((weapon ias+wsm+100)*anim speed/100)
Quote:a1_frames = frame length of normal attack (attack1)Ah, but what is the frame length of a normal attack for a shifted Druid? That is what Hammerman is explaining when he says:
anim speed = 256 for all attacks
weapon ias = sum of fast/faster/fastest attack speed mods on the weapon
wsm = negative 'speed' from weapons.txt
Quote:It will, by the way, use the Druids human form values here.So a1_frames equals whatever a unshifted Druid will get for 'Base + 1' with whatever type of weapon is being wielded (ie one-handed, two-hand sword, bow, or whatever).
Ok, now we have a value for animation speed, but that isn't the final value for animation speed.
Quote:We modify the current value:So that could be rewritten:
Animation Speed = (prev frames * 256) / Animation speed
New Animation Speed = (prev frames * 256) / Old Animation speed
Where Old Animation speed is the value we just got from the 'delay' formula. And prev frames is:
Quote:prev frames = animation length of previous mode, wich is always neutral (use the shifted form values here):9 for the bear, and 10 for the wolf.
bear = 9
wolf = 10
Now we can finally use that New Animation Speed and plug it into the standard weapon speed formula in place of the usual 256 that goes there.
Quote:Frames = {256*(Base + 1)/[(100 + Speed Increase)/100*Animation Speed]} - 1Note that because Hammerman copied from two different places, this formula and the 'delay' formula differ in their definitions of 'wsm'. This formula uses the value in weapons.txt, rather than the negative of the value as in the other formula.
Speed increase = (120 * item_ias) / (120 + item ias) + skill ias - wsm
The only remaining thing to know is that 'Base' is always 11 for the Bear, 12 for the Wolf.
So here are the formulas again, in the order in which they should be applied, and hopefully clearer (and with the 'wsm' term self-consistant):
Anim speed0 = [a1_frames*256 / [(weapon ias+wsm+100)*256/100]]
a1_frames is the 'Base + 1' value for a Druid using that weapon type
Anim speed1 = [prev frames * 256 / Anim speed0]
prev frames = 9 or 10 (Bear or Wolf, respectively)
Speed increase = [120 * item_ias / (120 + item ias)] + skill ias + wsm
EDIT: Oh, and Speed Increase is capped at 75.
Frames = {256*(Base + 1)/[(100 + Speed Increase)/100*Anim Speed1]} - 1
'Base' = 11 or 12 (Bear or Wolf, respectively)
*[] denotes round down, {} denotes round up.
-------
Anyway, if I interpreted and applied all that correctly, than this formula does not quite fit the observed data. I compared to TheDragoon's Attack Speed Chart (Werebear) for a One-handed Axe with base speed 0. I didn't know what a1_frames would be for a one-handed axe, but given that the value on the chart with no ias of any kind was 22, the only value that would fit is 17. Using that, and 11 for 'Base' and 9 for 'prev frames' the formula was near the chart but differed at (among other places) 25, 35, and 95 wias (with no oias).
- Dagni