mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Mobile Miltia improvements (by Moa)
- ja2_options.ini: MOBILE_MILITIA_MAX_ACTIVE_MODE, MOBILE_MILITIA_MAX_ACTIVE_MODIFIER - see: http://www.bears-pit.com/board/ubbthreads.php/topics/325103/2.html git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6544 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -844,6 +844,16 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Militia3");
|
||||
|
||||
gfYesNoPromptIsForContinue = TRUE;
|
||||
|
||||
//Moa: prevent continue training when at/above maximum
|
||||
if ( ubMilitiaType == MOBILE_MILITIA )
|
||||
{
|
||||
if ( 100 <= GetMobileMilitiaQuota( TRUE ) )
|
||||
{
|
||||
MilitiaTrainingRejected( MOBILE_MILITIA );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// is there enough loyalty to continue training
|
||||
if( DoesSectorMercIsInHaveSufficientLoyaltyToTrainMilitia( pSoldier ) == FALSE )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user