New Feature: scuba gear allows to dive, thereby staying invisible to the enemy as long as you are in deep water. If you are spotted however, the enemy remembers that, and can still see you in deep water.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5718 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2012-12-08 00:34:52 +00:00
parent 0ecc6f224c
commit 7e6ec3659e
6 changed files with 100 additions and 4 deletions
+16
View File
@@ -15335,6 +15335,22 @@ UINT32 SOLDIERTYPE::GetSurrenderStrength()
return value;
}
// Flugente: scuba gear
BOOLEAN SOLDIERTYPE::UsesScubaGear()
{
if ( !this->MercInHighWater() )
return FALSE;
// do we wear a scuba mask?
if ( !( this->inv[ HEAD1POS ].exists() && HasItemFlag(this->inv[ HEAD1POS ].usItem, SCUBA_MASK) ) && !( this->inv[ HEAD2POS ].exists() && HasItemFlag(this->inv[ HEAD2POS ].usItem, SCUBA_MASK) ) )
return FALSE;
if ( !this->inv[VESTPOCKPOS].exists() || !HasItemFlag( this->inv[VESTPOCKPOS].usItem, SCUBA_BOTTLE ) )
return FALSE;
return TRUE;
}
INT32 CheckBleeding( SOLDIERTYPE *pSoldier )
{
INT8 bBandaged; //,savedOurTurn;