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:
Flugente
2015-05-08 19:03:01 +00:00
parent 7efe3966cf
commit 54c6093c0a
+11 -1
View File
@@ -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 );
}
}
}
}