Added option for experience elite percentages

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@481 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
AcyForsythe
2006-08-27 23:52:10 +00:00
parent 04a1f728bc
commit 9294f1029e
+17 -2
View File
@@ -1147,9 +1147,24 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Strategic3");
gArmyComp[ LEVEL3_DEFENCE ].bDesiredPopulation = 0;
gArmyComp[ LEVEL3_DEFENCE ].bStartPopulation = 0;
break;
// Kaiden: original Experienced troop compositions:
//case DIF_LEVEL_MEDIUM:
//gArmyComp[ LEVEL3_DEFENCE ].bDesiredPopulation = 0;
//gArmyComp[ LEVEL3_DEFENCE ].bStartPopulation = 0;
//break;
//Kaiden: Added to allow an elite bonus for experienced.
case DIF_LEVEL_MEDIUM:
gArmyComp[ LEVEL3_DEFENCE ].bDesiredPopulation = 0;
gArmyComp[ LEVEL3_DEFENCE ].bStartPopulation = 0;
for( i = 0; i <= NUM_ARMY_COMPOSITIONS; i++ )
{
if ( i != OMERTA_WELCOME_WAGON )
{
iPercentElitesBonus = gGameExternalOptions.iPercentElitesBonusExperienced;
gArmyComp[ i ].bElitePercentage = min(100,gArmyComp[ i ].bElitePercentage + iPercentElitesBonus);
gArmyComp[ i ].bTroopPercentage = max(0,gArmyComp[ i ].bTroopPercentage - iPercentElitesBonus);
gArmyComp[ i ].bAdminPercentage = 0;
}
}
break;
case DIF_LEVEL_HARD:
for( i = 0; i <= NUM_ARMY_COMPOSITIONS; i++ )