Replace RemoveOnConditions with KillsSelf.
Upgrades offer more flexibility than prerequisites.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user