- made the BUddha checks readable again.
This commit is contained in:
parent
d7bb1726ab
commit
39d90d022b
3 changed files with 27 additions and 6 deletions
|
|
@ -1008,6 +1008,25 @@ const char *APlayerPawn::GetSoundClass() const
|
|||
return SoundClass != NAME_None? SoundClass.GetChars() : "player";
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// APlayerPawn :: hasBuddha
|
||||
//
|
||||
|
||||
//===========================================================================
|
||||
|
||||
int APlayerPawn::hasBuddha()
|
||||
{
|
||||
if (player->playerstate == PST_DEAD) return 0;
|
||||
if (player->cheats & CF_BUDDHA2) return 2;
|
||||
|
||||
if ((player->cheats & CF_BUDDHA) ||
|
||||
(player->mo->flags7 & MF7_BUDDHA) ||
|
||||
player->mo->FindInventory (PClass::FindActor(NAME_PowerBuddha),true) != nullptr) return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// APlayerPawn :: GetMaxHealth
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue