mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
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:
@@ -1154,15 +1154,25 @@ 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:
|
||||||
for( i = 0; i <= NUM_ARMY_COMPOSITIONS; i++ )
|
if (gGameExternalOptions.iPercentElitesBonusExperienced == 0)
|
||||||
{
|
{
|
||||||
if ( i != OMERTA_WELCOME_WAGON )
|
gArmyComp[ LEVEL3_DEFENCE ].bDesiredPopulation = 0;
|
||||||
|
gArmyComp[ LEVEL3_DEFENCE ].bStartPopulation = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for( i = 0; i <= NUM_ARMY_COMPOSITIONS; i++ )
|
||||||
{
|
{
|
||||||
iPercentElitesBonus = gGameExternalOptions.iPercentElitesBonusExperienced;
|
if ( i != OMERTA_WELCOME_WAGON )
|
||||||
gArmyComp[ i ].bElitePercentage = min(100,gArmyComp[ i ].bElitePercentage + iPercentElitesBonus);
|
{
|
||||||
gArmyComp[ i ].bTroopPercentage = max(0,gArmyComp[ i ].bTroopPercentage - iPercentElitesBonus);
|
iPercentElitesBonus = gGameExternalOptions.iPercentElitesBonusExperienced;
|
||||||
gArmyComp[ i ].bAdminPercentage = 0;
|
gArmyComp[ i ].bElitePercentage = min(100,gArmyComp[ i ].bElitePercentage + iPercentElitesBonus);
|
||||||
|
gArmyComp[ i ].bTroopPercentage = max(0,gArmyComp[ i ].bTroopPercentage - iPercentElitesBonus);
|
||||||
|
gArmyComp[ i ].bAdminPercentage = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user