Spell duration not rounded down/truncated

Find any bug ? Report it !
Locked
User avatar
snowy
Esquire
Esquire
Posts: 26
Joined: Sat Oct 15, 2022 10:11 pm

Spell duration not rounded down/truncated

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.
User avatar
Shandril
Developer
Developer
Posts: 117
Joined: Sat May 28, 2022 7:18 pm

Re: Spell duration not rounded down/truncated

This is expected behavior for our code base and will not be changed.

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