2010-07-23, 05:15 AM
Stereo Wrote:I guess the "byWT" means Weapon Type, then.
And it's still rounding down, they just added 0.5 to it. Why?
If the resultant would "round up", by adding 0.5 to it and converting it to type int it would thus round up. If it were in a situation where it would round down, it would round down in that case still.
i.e. (int)(1.51 + 0.5) = 2
(int)(1.49 + 0.5) = 1
(int)(1.51) = 1
I find it odd they have wrote separate cases for Swords instead of putting them in the same cases as Blunt Weapons and Axes. May imply there's something else going on behind the scenes. Could of course just be idiocy seeing as they did the same for Staves and Wands.

