Replace RemoveOnConditions with KillsSelf.

Upgrades offer more flexibility than prerequisites.
This commit is contained in:
Paul Chote
2014-09-28 21:03:27 +13:00
parent bb44d76762
commit abba61dd8c
5 changed files with 80 additions and 81 deletions

View File

@@ -620,6 +620,13 @@ namespace OpenRA.Mods.Common.UtilityCommands
if (depth == 1 && node.Key == "-IronCurtainable")
node.Key = "-InvulnerabilityUpgrade@IRONCURTAIN";
// Replaced RemoveOnConditions with KillsSelf
if (depth == 1 && node.Key == "RemoveOnConditions")
{
node.Key = "KillsSelf";
node.Value.Nodes.Add(new MiniYamlNode("RemoveInstead", new MiniYaml("true")));
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);