Okay, so i did some mercs.
I found a deviant..
Okay, so rogue:
A1 is 15 frames pr direction and 256 animspeed.
So when i use this:
EIAS = [120*ias/(120+ias)+sias-wsm
FPA = {15*256/(256*(100+Eias)/100)}-1
I then get all correct ias breaks.
Example:
0wsm bow and lvl 15 fana
Ias -- eias -- fpa
0 -- 33 -- 11
5 -- 37 -- 10
20 -- 50 -- 9
48 -- 67 -- 8
102 -- 88 -- 7
Code
Data:
Character: A1 Merc - Rogue
Primary Weapon: Diamond Bow
Skill: Standard
IAS: 0
Weapon-IAS: 0
Fanaticism: Level 15
IAS attack speed [ticks] attacks per second
0 11 1.92
5 10 2.08
20 9 2.27
48 8 2.5
Fits like a glove for rogue.
Now act 2 merc:
-10 wsm giant tresher.
0 sias
A1 is 16 frames pr direction and Animspeed 256
Eias = [120*ias/(120+ias)+sias-wsm
FPA normal attack
FPA = {16*256/(256*(100+Eias)/100)}-1
IAS -- EIAS -- FPA
0 -- 0 -- 14
6 -- 15 -- 13
16 -- 24 -- 12
30 -- 34 -- 11
52 -- 46 -- 10
86 -- 60 --
9 <-- missmatch... But this is were eias becomes 60... Not at 89... At 89 it becomes 61.
16/((100+60)/100) = 10
16/((100+61)/100) = 9,93
I believe d2ias calc online use roundup which should be wrong..
Can any1 test online? This would most likely never get noticed as its within the same 5ias increase.
Code
Data:
Character: A2 Merc - Town Guard
Primary Weapon: Giant Thresher
Skill: Standard
IAS: 0
Weapon-IAS: 0
IAS attack speed [ticks] attacks per second
0 14 1.56
6 13 1.66
16 12 1.78
30 11 1.92
52 10 2.08
89 9 2.27
Act2 merc jab:
Used same Eias, but
FPA = {14*256/(256*(100+Eias)/100}/2
Ias -- eias -- fpa
0 -- 0 -- 6,5
8 -- 17 -- 6
22 -- 28 -- 5,5
40 -- 40 --
575 -- 56 -- 4,5
142 -- 75 -- 4
As we can see here again we found another deviant. 40Eias vs 41Eias. 40ias vs 42 ias.
14 / ((100+40)/100) / 2 = 5
14 / ((100+41)/100) / 2 = 4,96
Again it seems like d2ias calc is using roundup instead of ceiling. Which should be wrong.. This time it matter more, since 40 and 42 ias is not within the same 5ias increase. But maby not often noticed since 3 ias jools = 45...
Code
Data:
Character: A2 Merc - Town Guard
Primary Weapon: Giant Thresher
Skill: Jab
IAS: 0
Weapon-IAS: 0
IAS attack speed [ticks] attacks per second
0 6.5 3.33
8 6 3.57
22 5.5 3.84
42 5 4.16
75 4.5 4.54
142 4 5