Add advisory upgrade rule for WithRearmAnimation

This commit is contained in:
Oliver Brakmann
2016-09-18 14:20:58 +02:00
parent b598e31d4b
commit 88a4f73bdc

View File

@@ -358,6 +358,15 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// Add a warning to add WithRearmAnimation to actors that might need it.
// Update rule added during prep-1609 stable period, date needs fixing after release.
if (engineVersion < 20160918 && depth == 2)
{
if (node.Key == "RearmBuildings")
foreach (var host in node.Value.Value.Split(','))
Console.WriteLine("Actor type `{0}` is denoted as a RearmBuilding. Consider adding the `WithRearmAnimation` trait to it.".F(host));
}
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}