Fix: pows received wrong poison values. Those values were inconsistent and caused odd displays.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6528 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2013-10-24 19:52:15 +00:00
parent 30980e91fb
commit c5e72c4265
3 changed files with 16 additions and 4 deletions
+5
View File
@@ -16888,6 +16888,11 @@ void SOLDIERTYPE::SoldierPropertyUpkeep()
if ( HasBackgroundFlag( BACKGROUND_EXP_UNDERGROUND ) && this->bSectorZ )
++bExtraExpLevel;
// Flugente: as pows received faulty poison values, we apply a very simple fix:
// remove in a few revisions - the code has already been fixed, so this won't be necessary anymore soon^^
this->bPoisonLife = min(this->bPoisonLife, this->bPoisonSum );
this->bPoisonBleeding = min(this->bPoisonBleeding, this->bBleeding);
}
INT32 CheckBleeding( SOLDIERTYPE *pSoldier )