mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
ASD: don't change reinforcement pool when unlimited reinforcements enabled.
Interrogate prisoner: don't change reinforcement pool when unlimited reinforcements enabled. EvaluateQueenSituation: - allow recruiting when pool size drops below iQueenPoolIncrementPerDifficultyLevel, this should result in more stable strategic AI behavior - with default values, recruiting can result in up to 8 days of doing nothing, I think that skipping once cycle of decisions should be enough git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8787 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+6
-4
@@ -56,8 +56,8 @@
|
||||
|
||||
|
||||
extern INT32 giReinforcementPool;
|
||||
|
||||
extern BOOLEAN gfTacticalDoHeliRun;
|
||||
extern BOOLEAN gfUnlimitedTroops;
|
||||
|
||||
// Arulco special division decision code
|
||||
|
||||
@@ -488,11 +488,13 @@ void ASDDecideHeliOperations()
|
||||
{
|
||||
// attack this sector!
|
||||
heli.SetHeliFlightPath( (*it).first );
|
||||
|
||||
heli.troopcount = gEnemyHeliMaxTroops;
|
||||
giReinforcementPool -= gEnemyHeliMaxTroops;
|
||||
heli.flagmask |= ENEMYHELI_ORDER_DROPTROOPS;
|
||||
|
||||
// sevenfm: don't change reinforcement pool when unlimited reinforcements enabled
|
||||
if (!gfUnlimitedTroops)
|
||||
giReinforcementPool -= gEnemyHeliMaxTroops;
|
||||
|
||||
heli.flagmask |= ENEMYHELI_ORDER_DROPTROOPS;
|
||||
AddStrategicEvent( EVENT_ENEMY_HELI_UPDATE, GetWorldTotalMin( ) + gEnemyHeliTravelTimePerSector, id );
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user