[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Healable Damage Max  XML
Forum Index -> Druids RPG Development
Author Message
Szlat

Wicked Sick!

Joined: 05/18/2005 18:32:41
Messages: 2124
Location: UK
Offline

A count is kept of how much damage done to a player can be healed. Each time this is updated, a check is made to ensure there is not too much stored in there. The code checks using a calculation like
(Victim.HealthMax + localMaxHealth) - Victim.Health)

Imagine a player of normally 200 health that goes down to 1 health, then is healed by a level 3 medic to 350 health. He now has 0 healable damage stored.
Now assume he takes 200 damage from enemy fire. He now is at health 150 and has 200 healable damage.
Assume a level 1 medic heals him to the medics max of 250. The healable damage is then set to
(200 + 50) - 250 = 0
So, the player has no healable damage left. He should still have 100 left.

I propose the algorithm should be changed to
(Victim.HealthMax + 150) - Victim.Health)

Note - this does not affect how much a medic can heal, just how much xp they get back.
Szlat

Wicked Sick!

Joined: 05/18/2005 18:32:41
Messages: 2124
Location: UK
Offline

Ok.
Checked in change so that max healable damage is now capped at players max health +150 rather than max health + medic's max healing.

Does not affect how much a medic can heal a player, but rectifies the situation where some of the xp to be gained is not available.
 
Forum Index -> Druids RPG Development
Go to: