Can you explain this?
I don't know the specifics of it.. I'll go look.
function getEffectiveWpf(wpfStat)
{
switch (wpfStat.name)
{
case 'wpfOneHanded':
return Math.floor((Math.max(stats.wpfTwoHanded.current*0.7-30, 0) + Math.max(stats.wpfPolearm.current*0.7-30, 0)) * 0.3 + stats.wpfOneHanded.current);
case 'wpfTwoHanded':
return Math.floor((Math.max(stats.wpfOneHanded.current*0.7-30, 0) + Math.max(stats.wpfPolearm.current*0.7-30, 0)) * 0.3 + stats.wpfTwoHanded.current);
case 'wpfPolearm':
return Math.floor((Math.max(stats.wpfOneHanded.current*0.7-30, 0) + Math.max(stats.wpfTwoHanded.current*0.7-30, 0)) * 0.3 + stats.wpfPolearm.current);
default:
return -1;
}
}
So the effective wpf is calculated by base+(X*0.7-30)+(Y*0.7-30)
and it's then rounded down. The funkiness is due to the rounding math.