Make AI deploy MCVs in the vincinity of existing construction yards

While the general idea of AIs building distant secondary bases might be tempting, in reality the AI would way too often send the MCV close to some enemy base, wasting the cash and potentially increased build speed/additional build queue.

Deploying MCVs close to the existing base ensures that the AI will actually have some benefit from building an MCV.
This commit is contained in:
reaperrr
2016-06-17 00:24:10 +02:00
parent 5992530655
commit 8ba833777c

View File

@@ -829,7 +829,7 @@ namespace OpenRA.Mods.Common.AI
continue;
var factType = mcv.Info.TraitInfo<TransformsInfo>().IntoActor;
var desiredLocation = ChooseBuildLocation(factType, false, BuildingType.Building);
var desiredLocation = ChooseBuildLocation(factType, true, BuildingType.Building);
if (desiredLocation == null)
continue;