mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Diagnosing diseases trains wisdom.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7850 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5719,6 +5719,9 @@ void HandleDiseaseDiagnosis()
|
||||
{
|
||||
// doctor discovered a disease - make it known
|
||||
pTeamSoldier->AnnounceDisease( i );
|
||||
|
||||
// if we detect a disease, we get a bit of experience
|
||||
StatChange( pSoldier, WISDOMAMT, 2, FALSE );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5732,8 +5735,15 @@ void HandleDiseaseDiagnosis()
|
||||
|
||||
SECTORINFO *pSectorInfo = &(SectorInfo[sector]);
|
||||
|
||||
if ( pSectorInfo && pSectorInfo->usInfected && Chance( skill ) )
|
||||
if ( pSectorInfo && pSectorInfo->usInfected &&
|
||||
!((pSectorInfo->usInfectionFlag & SECTORDISEASE_DIAGNOSED_PLAYER) || (gubFact[FACT_DISEASE_WHODATA_ACCESS] && pSectorInfo->usInfectionFlag & SECTORDISEASE_DIAGNOSED_WHO)) &&
|
||||
Chance( skill ) )
|
||||
{
|
||||
pSectorInfo->usInfectionFlag |= SECTORDISEASE_DIAGNOSED_PLAYER;
|
||||
|
||||
// if we detect a disease, we get a bit of experience
|
||||
StatChange( pSoldier, WISDOMAMT, 2, FALSE );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user