Add an upgrade rule for the Upgrades -> DeployedUpgrades change

This commit is contained in:
abcdefg30
2015-11-21 21:39:17 +01:00
committed by Pavel Penev
parent 64dd2357cd
commit ea19f7cd54

View File

@@ -2388,6 +2388,17 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// Upgrades on DeployToUpgrade were renamed to DeployedUpgrades
if (engineVersion < 20151122)
{
if (node.Key == "DeployToUpgrade")
{
var u = node.Value.Nodes.FirstOrDefault(n => n.Key == "Upgrades");
if (u != null)
u.Key = "DeployedUpgrades";
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}