Page 1 of 2

question about regeneration

Posted: Mon Jun 11, 2012 8:52 am
by thk
What exactly happens when a player that has the Regeneration skill gets a negative health effect like poison or bleeding wound? Is the total loss or gain of health per turn calculated as the total of all positive and negative effects, or is Regeneration 'switched off' as long as the negative effects are active, effectively only summing negative effects? While playing north of Lonefort, I got the impression that the latter is the way it works, but I am not sure.

Re: question about regeneration

Posted: Mon Jun 11, 2012 9:12 am
by nyktos
I'm going to use the RoLS for an example,
because you can see the blue burst from the
Shadow Regeneration...

If you get poisoned in the snake cave,
it lasts one round... (after battle ends)

So in six seconds -
you see one blue burst, but no HP gain.
(notice the poison marker disappear)

Another six seconds later you see the blue burst and an HP gain of 1.
So, it is all happening at the same time.

:D

Unless we have bugs?
Let us know if you see anything fishy!

8-)

Re: question about regeneration

Posted: Tue Jun 12, 2012 6:12 am
by thk
Sorry, took some time, but I had to get out of that iqhan cave first :D
I tested this now on the newest version (6.11). I have Regeneration skill level one (i.e. +1 hp per turn) and took negative effects from both a Poisonous Frog and a Strong Itziel. The former gives 2x weak poison (i.e. -2 hp per turn) and the latter 2x bleeding wound (also -2hp per turn). With either one of the two negative effects, the little number that pops up on top of Andor's brother at the end of the turn is -2, not -1.
However, looking closely at the amount of hit points before and after the turn, it appears that only 1 (one) hit point is subtracted from the total. In other words, it appears that the calculation for the total in-/decrease of hit points works as expected, but the graphic shown (number on the map) does not.
I have maybe an idea where that may come from: As the shown numbers of hit point in-/decrease are color coded (blue for Regeneration, green for poison, red for bleeding wound), could it be that the calculation for determining that number is a different one than that used for determining the total effect? I will try to stack bleeding wound and poison next to see what happens.
If the above text doesn't make much sense at first reading, please read it again -- there is a point -- or ask me. This is just a little hard to explain without pointing fingers :D

Re: question about regeneration

Posted: Tue Jun 12, 2012 6:29 am
by thk
Ok, now I tried also this: 2x weak poison + 4 x bleeding wound + Regeneration level 1. The number shown on top of Andors brother is -6 and red (does the choice of color depend on the order of in which effects are stacked?), but the amount of hit points subtracted from the total is 5.

Re: question about regeneration

Posted: Tue Jun 12, 2012 7:54 am
by mdmedlin
I did the same thing, I have regen 2 and I was poisoned, took one poison damage, but hp's when up by one

Re: question about regeneration

Posted: Tue Jun 12, 2012 8:15 am
by DarkSavant13
As far as I recall, it was that way before 6.11. Just thought that was how it was supposed to be to show what the condition was supposed to be taking off before regeneration and RoLS.

Great that it was brought up,though. :D

Re: question about regeneration

Posted: Tue Jun 12, 2012 8:22 am
by Bard
I've got two RoLS (no stacking for regen - grml) and regeneration. I get +2HP but shown is +1 ... on 6.11

Re: question about regeneration

Posted: Tue Jun 12, 2012 8:49 am
by thk
DarkSavant13 wrote:As far as I recall, it was that way before 6.11.
Yes, I'm quite sure it was -- I just never got around to ask :)
Bard wrote:I've got two RoLS (no stacking for regen - grml) and regeneration. I get +2HP but shown is +1 ... on 6.11
If shadow regeneration and the regeneration skill don't show up right either, then it is most likely due to the fact that regeneration is a skill (introduced to the game later on), and the part of the code that computes the displayed change of hit points has not been updated accordingly -- this is, of course, only a guess...

Re: question about regeneration

Posted: Tue Jun 12, 2012 12:22 pm
by Antison
Sounds like a bug to me.

Re: question about regeneration

Posted: Tue Jun 12, 2012 4:02 pm
by sdevaney
Indeed it is a bug, moved to the proper section.