- added a HealthFactor skill property.

This commit is contained in:
Christoph Oelckers 2015-11-29 12:58:17 +01:00
commit f7cdb28eac
3 changed files with 12 additions and 1 deletions

View file

@ -236,10 +236,12 @@ bool P_GiveBody (AActor *actor, int num, int max)
return true;
}
}
else
else if (num > 0)
{
if (player->health < max)
{
num = FixedMul(num, G_SkillProperty(SKILLP_HealthFactor));
if (num < 1) num = 1;
player->health += num;
if (player->health > max)
{