mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
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:
@@ -1147,9 +1147,24 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Strategic3");
|
|||||||
gArmyComp[ LEVEL3_DEFENCE ].bDesiredPopulation = 0;
|
gArmyComp[ LEVEL3_DEFENCE ].bDesiredPopulation = 0;
|
||||||
gArmyComp[ LEVEL3_DEFENCE ].bStartPopulation = 0;
|
gArmyComp[ LEVEL3_DEFENCE ].bStartPopulation = 0;
|
||||||
break;
|
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:
|
case DIF_LEVEL_MEDIUM:
|
||||||
gArmyComp[ LEVEL3_DEFENCE ].bDesiredPopulation = 0;
|
for( i = 0; i <= NUM_ARMY_COMPOSITIONS; i++ )
|
||||||
gArmyComp[ LEVEL3_DEFENCE ].bStartPopulation = 0;
|
{
|
||||||
|
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;
|
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++ )
|
||||||
|
|||||||
Reference in New Issue
Block a user