Vanilla Compatibility for Experienced Difficulty with the Experienced Elite Percentage

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@553 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
AcyForsythe
2006-09-23 20:03:18 +00:00
parent 050ae16d3b
commit e55c968a15
+10
View File
@@ -1154,7 +1154,16 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Strategic3");
//break; //break;
//Kaiden: Added to allow an elite bonus for experienced. //Kaiden: Added to allow an elite bonus for experienced.
//Kaiden: Fixed to add the old way of doing this if the
//bonus is set to 0 percent.
case DIF_LEVEL_MEDIUM: case DIF_LEVEL_MEDIUM:
if (gGameExternalOptions.iPercentElitesBonusExperienced == 0)
{
gArmyComp[ LEVEL3_DEFENCE ].bDesiredPopulation = 0;
gArmyComp[ LEVEL3_DEFENCE ].bStartPopulation = 0;
}
else
{
for( i = 0; i <= NUM_ARMY_COMPOSITIONS; i++ ) for( i = 0; i <= NUM_ARMY_COMPOSITIONS; i++ )
{ {
if ( i != OMERTA_WELCOME_WAGON ) if ( i != OMERTA_WELCOME_WAGON )
@@ -1165,6 +1174,7 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Strategic3");
gArmyComp[ i ].bAdminPercentage = 0; gArmyComp[ i ].bAdminPercentage = 0;
} }
} }
}
break; break;
case DIF_LEVEL_HARD: case DIF_LEVEL_HARD:
for( i = 0; i <= NUM_ARMY_COMPOSITIONS; i++ ) for( i = 0; i <= NUM_ARMY_COMPOSITIONS; i++ )