Rename Stances to ValidStances.

This commit is contained in:
Matthias Mailänder
2016-07-03 16:00:31 +02:00
parent db146ae479
commit 6148e8d8a3
3 changed files with 14 additions and 4 deletions

View File

@@ -212,6 +212,16 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20160703)
{
if (node.Key.StartsWith("WithDecoration") || node.Key.StartsWith("WithRankDecoration") || node.Key.StartsWith("WithDecorationCarryable"))
{
var stancesNode = node.Value.Nodes.FirstOrDefault(n => n.Key == "Stances");
if (stancesNode != null)
stancesNode.Key = "ValidStances";
}
}
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}