Fix a bad merge in UpgradeRules.cs
This commit is contained in:
@@ -436,6 +436,19 @@ namespace OpenRA.Utility
|
||||
ConvertFloatArrayToPercentArray(ref node.Value.Value);
|
||||
}
|
||||
|
||||
// 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";
|
||||
}
|
||||
}
|
||||
|
||||
if (engineVersion < 20140823)
|
||||
{
|
||||
if (depth == 2 && node.Key == "ArmorUpgrade" && parentKey == "GainsStatUpgrades")
|
||||
@@ -451,19 +464,6 @@ 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";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user