- added parameter to PLayerPawn::GetMaxHealth to return the real maximum health, including stamina upgrades.
This commit is contained in:
parent
12915b5f6e
commit
cb295e0441
7 changed files with 14 additions and 11 deletions
|
|
@ -358,7 +358,7 @@ void DBot::WhatToGet (AActor *item)
|
|||
}
|
||||
else if ((typeis (Megasphere) || typeis (Soulsphere) || typeis (HealthBonus)) && player->mo->health >= deh.MaxSoulsphere)
|
||||
return;
|
||||
else if (item->IsKindOf (PClass::FindActor(NAME_Health)) && player->mo->health >= player->mo->GetMaxHealth() + player->mo->stamina)
|
||||
else if (item->IsKindOf (PClass::FindActor(NAME_Health)) && player->mo->health >= player->mo->GetMaxHealth(true))
|
||||
return;
|
||||
|
||||
if ((dest == NULL ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue