PDA

View Full Version : Haste Rounding


mastersapper
02-12-2017, 01:22 PM
Couldn't find any information about this...


25 delay with 21% haste would be: 25 / 1.21 = 20.661
Would this round up to 21 delay?
If it was 20.499 would it round down to 20 delay?


Very difficult to test, but wondering if anyone knows?

Baler
02-12-2017, 01:40 PM
Going to go out on a limb and say everything is set to floor (http://www.cplusplus.com/reference/cmath/floor/). At least for anything that is beneficiary to players.
Unless it is otherwise set so that it can't go below a certain amount. Such as below 0. (ie -1)
But that's just a guess. So even if it was 20.999 it would just be 20. untill you reached 21.0 or greater.

Many older mmo's do this from my knowledge. To help keep things 'balanced'. But I have no idea of p99's combat calculations and their use of int, double or float.

Rygar
02-12-2017, 03:43 PM
I've always wondered this myself, same with weight reduction. Weight would at least go to 0.1 if either rounding or doing remainder.

So not sure if that matters in terms of the always dropping to an integer theory.

Weight would be easier to test than haste, and maybe can offer some insight to whether values are dropped or carried over or rounded.

Troxx
02-12-2017, 03:45 PM
The real question is ...

Does it matter?

Zaela
02-12-2017, 03:49 PM
Swing timing would be in terms of milliseconds. Any rounding of 25 delay would happen after it's converted to 2500 milliseconds, and then reduced by haste.

Edit: i.e. any rounding is so small that it doesn't matter unless you're swinging for hours straight.

Rygar
02-12-2017, 03:49 PM
The real question is ...

Does it matter?

If purchasing an item that only increase your haste 2-3% for 25k but turns out doesnt effectively increase your speed on the weapons you have, then yes, it matters very much.

Sirban
02-12-2017, 04:04 PM
nerd

mastersapper
02-12-2017, 04:14 PM
If purchasing an item that only increase your haste 2-3% for 25k but turns out doesnt effectively increase your speed on the weapons you have, then yes, it matters very much.

This ^

It also impacts what weapons youd want to use with the haste you have.

Baler
02-12-2017, 04:23 PM
Swing timing would be in terms of milliseconds.
Oh, This actually makes sense. I'm not sure why I had not thought of this.
My initial reply would be different.

I can agree that the amount lost or gained in this scenario is small. And should really only be worried about if you're buying an item of high value that will only increase your haste slightly. In this scenario damage per second difference is negligible in my opinion and probably even the damage per minute will only show a small difference.

ugh my initial response is so bad now.

Edit: If 'swing speed' is timed in milliseconds than every point of haste helps.

mastersapper
02-13-2017, 10:24 AM
Would this mean that 25 = 2500 ms

2500 ms / 1.21 = 2066.115 : round to 2066.0 ms

so the delay would truly be 20.66?


mind = blown right now...