Monster regen
#4
Quote from Ruvanal:

Quote:DamageRegen
Life is tracked internally at a precision of an extra 8 bits (1/256 of point) and the calculations should be done at this scale. Time is normally handled internally in frames (25frames=1sec).
life recovery per frame = MAXLIFE*DamageRegen/4096

So for a monster with 500 HP this would be 500*256=128000 in the games scale
and the regeneration per frame with a DamageRegen=2 would be
128000*2/4096=62 or 62/256 of a life per frame.
rescaling this to HP/sec you would get
25*62/625 =1550/256 = 6.05 HP per sec.

Most monsters do have DamageRegen = 2. The only difference between the normal and hell regeneration rate (in terms of percent of max life per second) would be due to rounding. This wouldn't be very significant.

Some monsters to indeed have a higher regeneration rate.
Reply


Messages In This Thread
Monster regen - by Samka - 05-13-2004, 01:10 AM
Monster regen - by Obi2Kenobi - 05-13-2004, 03:21 AM
Monster regen - by Fragbait - 05-13-2004, 06:00 AM
Monster regen - by adeyke - 05-13-2004, 06:46 AM
Monster regen - by Samka - 05-13-2004, 08:31 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)