Change InitialStance to Defend for human players

This commit is contained in:
Oliver Brakmann
2015-05-17 19:07:01 +02:00
parent 549f8a9e7c
commit 1a879009f1
11 changed files with 41 additions and 13 deletions

View File

@@ -2266,6 +2266,17 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// Add InitialStance for bots
if (engineVersion < 20151025)
{
if (depth == 1 && node.Key == "AutoTarget")
{
var stance = node.Value.Nodes.FirstOrDefault(n => n.Key == "InitialStance");
if (stance != null)
node.Value.Nodes.Add(new MiniYamlNode("InitialStanceAI", stance.Value.Value));
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}