Added a trait that removes an actor when prereqs are met, with delay.

This commit is contained in:
WolfGaming
2014-07-30 05:40:45 +00:00
parent 2bc17aee1f
commit d619fbfbbe
5 changed files with 95 additions and 24 deletions

View File

@@ -437,6 +437,20 @@ namespace OpenRA.Utility
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
// RemoveImmediately was replaced with RemoveOnConditions
if (engineVersion < 20140821)
{
if (depth == 1)
{
if (node.Key == "RemoveImmediately")
node.Key = "RemoveOnConditions";
if (node.Key == "-RemoveImmediately")
node.Key = "-RemoveOnConditions";
}
}
}
}