mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
If enemy conquers a sector, remove workers.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8268 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3257,33 +3257,29 @@ FLOAT GetBestSAMOperatorCTH_Player( INT16 sSectorX, INT16 sSectorY, INT16 sSecto
|
||||
|
||||
INT16 GetTrainWorkerPts(SOLDIERTYPE *pSoldier)
|
||||
{
|
||||
// this is not an assignment. Simply being in the sector will allow us to be counted as guards
|
||||
INT16 val = 0;
|
||||
|
||||
if ( pSoldier->flags.fMercAsleep )
|
||||
return 0;
|
||||
|
||||
val = 3 * EffectiveExpLevel( pSoldier ) + EffectiveLeadership( pSoldier );
|
||||
INT16 val = 3 * EffectiveExpLevel( pSoldier ) + EffectiveLeadership( pSoldier );
|
||||
|
||||
if (gGameOptions.fNewTraitSystem)
|
||||
{
|
||||
val += 25 * NUM_SKILL_TRAITS( pSoldier, TEACHING_NT );
|
||||
|
||||
val += 10 * NUM_SKILL_TRAITS( pSoldier, DEMOLITIONS_NT );
|
||||
}
|
||||
else
|
||||
{
|
||||
val += 25 * NUM_SKILL_TRAITS( pSoldier, TEACHING_OT );
|
||||
}
|
||||
|
||||
// -5% for Aggressive people
|
||||
if ( DoesMercHavePersonality( pSoldier, CHAR_TRAIT_AGGRESSIVE ) )
|
||||
{
|
||||
val -= 5;
|
||||
}
|
||||
// +5% for Phlegmatic people
|
||||
else if ( DoesMercHavePersonality( pSoldier, CHAR_TRAIT_PHLEGMATIC ) )
|
||||
{
|
||||
val += 5;
|
||||
}
|
||||
|
||||
if ( DoesMercHaveDisability( pSoldier, CLAUSTROPHOBIC ) )
|
||||
val -= 5;
|
||||
|
||||
// adjust for fatigue
|
||||
if ( val > 0 )
|
||||
|
||||
Reference in New Issue
Block a user