|
|
|
|
@ -1458,33 +1458,6 @@ void ValidatePlayer()
|
|
|
|
|
myPlayer._pInfraFlag = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void CheckCheatStats(Player &player) |
|
|
|
|
{ |
|
|
|
|
if (player._pStrength > 750) { |
|
|
|
|
player._pStrength = 750; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (player._pDexterity > 750) { |
|
|
|
|
player._pDexterity = 750; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (player._pMagic > 750) { |
|
|
|
|
player._pMagic = 750; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (player._pVitality > 750) { |
|
|
|
|
player._pVitality = 750; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (player._pHitPoints > 128000) { |
|
|
|
|
player._pHitPoints = 128000; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (player._pMana > 128000) { |
|
|
|
|
player._pMana = 128000; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
HeroClass GetPlayerSpriteClass(HeroClass cls) |
|
|
|
|
{ |
|
|
|
|
if (cls == HeroClass::Bard && !gbBard) |
|
|
|
|
@ -2974,8 +2947,6 @@ void ProcessPlayers()
|
|
|
|
|
for (size_t pnum = 0; pnum < Players.size(); pnum++) { |
|
|
|
|
Player &player = Players[pnum]; |
|
|
|
|
if (player.plractive && player.isOnActiveLevel() && (&player == MyPlayer || !player._pLvlChanging)) { |
|
|
|
|
CheckCheatStats(player); |
|
|
|
|
|
|
|
|
|
if (!PlrDeathModeOK(player) && (player._pHitPoints >> 6) <= 0) { |
|
|
|
|
SyncPlrKill(player, DeathReason::Unknown); |
|
|
|
|
} |
|
|
|
|
|