mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
When planning enemy helicopter attacks, increase the perceived threat from mercs
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8442 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+5
-4
@@ -440,7 +440,7 @@ void ASDDecideHeliOperations()
|
||||
{
|
||||
if ( pSamList[x] == sector )
|
||||
{
|
||||
rating += 20;
|
||||
rating += 30;
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -452,12 +452,13 @@ void ASDDecideHeliOperations()
|
||||
UINT16 num_mercs = NumPlayerTeamMembersInSector( sX, sY, 0);
|
||||
if ( num_militia + num_mercs )
|
||||
{
|
||||
if ( num_militia + num_mercs > 2 * gEnemyHeliMaxTroops )
|
||||
// mercs are much more dangerous than militia, so increase their weight
|
||||
if ( num_militia + 2.5f * num_mercs > 2 * gEnemyHeliMaxTroops )
|
||||
rating = 0;
|
||||
else if ( num_militia + num_mercs > gEnemyHeliMaxTroops )
|
||||
else if ( num_militia + 2.5f * num_mercs > gEnemyHeliMaxTroops )
|
||||
rating /= 2;
|
||||
// only a very small garrison - we can wipe them out with no risk and add losses to the player. We should totally do that!
|
||||
else if ( num_militia + num_mercs < gEnemyHeliMaxTroops )
|
||||
else if ( num_militia + 2.5f * num_mercs < gEnemyHeliMaxTroops )
|
||||
rating *= 1.5f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user