Page 1 of 1

Spell duration not rounded down/truncated

Posted: Sun Nov 20, 2022 3:01 pm
by snowy
It seems based on testing that currently on Eden spell duration isn't being rounded at all (i.e. a duration of 6s + 25% is 7.5s, not 7s). According to the following grab-bag, the duration of a spell should be rounded down (or truncated, decimals ignored) at each stage of the calculation: https://darkageofcamelot.com/article/fr ... g-04102020.

How does the game add multipliers (like duration and range) to spells? For example, is a 9 second stun with 23% duration 10 or 11 seconds? Is there any rounding or is the decimal always ignored/truncated.

The short answer is that the decimal is always truncated/ignored.

The way I tested is to equip items with 14% spell duration and run a skald chant, should be 6 x 1.14 = 6.84 = 6, but in fact it's longer than without the items equipped.

It may be that this is intended, due to the code being better here than on live, like the lack of dex breakpoints. Or it might be that I'm wrong. It would be good to have this confirmed if so.

Re: Spell duration not rounded down/truncated

Posted: Sun Nov 20, 2022 10:31 pm
by Shandril
This is expected behavior for our code base and will not be changed.

Thank you very much for the researched/in depth bug report!