Regarding spell effects lingering on targets, there's no uniformity of just when do they get removed.
Example:
If the target is "Burning(1)", on the next turn the burning effect disappears (and there's no burn effect on the next round).
To compare - after "Time Prison(1)" there's another round with "Time Prison(0)", when the target is still imprisoned.
[b18] different treatment of spell times
Moderator: Moderator
Re: [b18] different treatment of spell times
This bug has already been reported here, and actually has to do with fractional durations. Basically the issue is that durations in descriptions are rounded down (5.2 becomes 5) but in terms of the game they are rounded up (5.2 becomes 6).marchewka wrote:Regarding spell effects lingering on targets, there's no uniformity of just when do they get removed.
Example:
If the target is "Burning(1)", on the next turn the burning effect disappears (and there's no burn effect on the next round).
To compare - after "Time Prison(1)" there's another round with "Time Prison(0)", when the target is still imprisoned.
<DarkGod> lets say it's intended
Re: [b18] different treatment of spell times
fixed, now setEffect will always round up the duration
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: [b18] different treatment of spell times
That's great. While I agree that for the engine itself a deterministic rounding is better, wouldn't it make more sense to use random rounding in the game itself?darkgod wrote:fixed, now setEffect will always round up the duration
I mean using:
Code: Select all
dur = math.floor(dur + rng.float(0,1))
Re: [b18] different treatment of spell times
Alternatively the setEffect duration could always be floored to stay always match the formatting in the talent descriptions. The %d format always rounds down, so a duration of ([[%d]]):format(1.2) will appear as "1" but actually be 2 right now. All of the effect durations could be forced to use math.ceil as well, but that seems like an invitation for discrepancies and confusion.
EDIT: fixed a typo
EDIT: fixed a typo
Last edited by yufra on Mon Jan 24, 2011 4:11 pm, edited 1 time in total.
<DarkGod> lets say it's intended
Re: [b18] different treatment of spell times
You do have a point there ..
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
