mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
New feature: Getting and using intel allows for more spy-related roleplay.
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=23643&goto=352475&#msg_352475 Requires GameDir >= r2401. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8522 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -200,12 +200,18 @@ INT8 EffectiveExpLevel( SOLDIERTYPE * pSoldier, BOOLEAN fTactical )
|
||||
if (pSoldier->ubProfile != NO_PROFILE)
|
||||
{
|
||||
// Flugente: drugs can temporarily cause a merc to be claustrophobic
|
||||
if ( DoesMercHaveDisability( pSoldier, CLAUSTROPHOBIC ) && pSoldier->bActive && pSoldier->bInSector && gbWorldSectorZ > 0 )
|
||||
if ( DoesMercHaveDisability( pSoldier, CLAUSTROPHOBIC ) && pSoldier->bActive && pSoldier->bInSector )
|
||||
{
|
||||
INT8 sectorz = pSoldier->bSectorZ;
|
||||
if ( SPY_LOCATION( pSoldier->bAssignment ) )
|
||||
sectorz -= 10;
|
||||
|
||||
// claustrophobic!
|
||||
iEffExpLevel -= 2;
|
||||
if ( sectorz > 0 )
|
||||
iEffExpLevel -= 2;
|
||||
}
|
||||
else if ( DoesMercHaveDisability( pSoldier, FEAR_OF_INSECTS ) && MercIsInTropicalSector( pSoldier ) )
|
||||
|
||||
if ( DoesMercHaveDisability( pSoldier, FEAR_OF_INSECTS ) && MercIsInTropicalSector( pSoldier ) )
|
||||
{
|
||||
// SANDRO - fear of insects, and we are in tropical sector
|
||||
iEffExpLevel -= 1;
|
||||
|
||||
Reference in New Issue
Block a user