Add an upgrade rule for Helicopter removal

This commit is contained in:
Pavel Penev
2015-08-12 18:32:30 +03:00
parent d55541c5f8
commit 1ab2a781f1
9 changed files with 43 additions and 36 deletions

View File

@@ -2181,6 +2181,12 @@ namespace OpenRA.Mods.Common.UtilityCommands
{
if (depth == 1 && node.Key == "Plane")
node.Key = "Aircraft";
if (depth == 1 && node.Key == "Helicopter")
{
node.Key = "Aircraft";
node.Value.Nodes.Add(new MiniYamlNode("CanHover", "True"));
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);