Merge pull request #11814 from RoosterDragon/fix-ai-timings
Ensure HackyAI tries to attack and capture as frequently as it should.
This commit is contained in:
@@ -659,21 +659,20 @@ namespace OpenRA.Mods.Common.AI
|
||||
s.Update();
|
||||
}
|
||||
|
||||
if (--assignRolesTicks > 0)
|
||||
return;
|
||||
if (--assignRolesTicks <= 0)
|
||||
{
|
||||
assignRolesTicks = Info.AssignRolesInterval;
|
||||
GiveOrdersToIdleHarvesters();
|
||||
FindNewUnits(self);
|
||||
FindAndDeployBackupMcv(self);
|
||||
}
|
||||
|
||||
assignRolesTicks = Info.AssignRolesInterval;
|
||||
|
||||
GiveOrdersToIdleHarvesters();
|
||||
FindNewUnits(self);
|
||||
if (--minAttackForceDelayTicks <= 0)
|
||||
{
|
||||
minAttackForceDelayTicks = Info.MinimumAttackForceDelay;
|
||||
CreateAttackForce();
|
||||
}
|
||||
|
||||
FindAndDeployBackupMcv(self);
|
||||
|
||||
if (--minCaptureDelayTicks <= 0)
|
||||
{
|
||||
minCaptureDelayTicks = Info.MinimumCaptureDelay;
|
||||
|
||||
Reference in New Issue
Block a user