- backported Zandronum's MaxHealth base class for the MaxHealthBonus item.
This commit is contained in:
parent
00dc59ebdc
commit
b194ba205a
6 changed files with 39 additions and 6 deletions
|
|
@ -1340,7 +1340,7 @@ bool P_GiveBody(AActor *actor, int num, int max)
|
|||
{
|
||||
if (!(player->MorphStyle & MORPH_ADDSTAMINA))
|
||||
{
|
||||
max -= player->mo->stamina;
|
||||
max -= player->mo->stamina + player->mo->BonusHealth;
|
||||
}
|
||||
}
|
||||
else // old health behaviour
|
||||
|
|
@ -1348,7 +1348,7 @@ bool P_GiveBody(AActor *actor, int num, int max)
|
|||
max = MAXMORPHHEALTH;
|
||||
if (player->MorphStyle & MORPH_ADDSTAMINA)
|
||||
{
|
||||
max += player->mo->stamina;
|
||||
max += player->mo->stamina + player->mo->BonusHealth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue