Add an upgrade rule for the Upgrades -> DeployedUpgrades change
This commit is contained in:
@@ -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);
|
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user