Add WithNukeLaunchAnimation and -Overlay traits.

This commit is contained in:
Matthias Mailänder
2017-08-26 17:45:07 +02:00
committed by Matthias Mailänder
parent c63620e979
commit 4526344eed
12 changed files with 169 additions and 16 deletions

View File

@@ -974,6 +974,16 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// nuke launch animation is now it's own trait
if (engineVersion < 20170820)
{
if (depth == 1 && node.Key.StartsWith("NukePower"))
{
node.Value.Nodes.RemoveAll(n => n.Key == "ActivationSequence");
addNodes.Add(new MiniYamlNode("WithNukeLaunchAnimation", new MiniYaml("")));
}
}
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}