Rename ProductionQueueInfo.Race to Factions

Also add an upgrade rule.
This commit is contained in:
Pavel Penev
2015-08-11 03:27:12 +03:00
parent 923c5405d2
commit 6e9b5ed2c9
3 changed files with 20 additions and 10 deletions

View File

@@ -1736,6 +1736,16 @@ namespace OpenRA.Mods.Common.UtilityCommands
node.Key = "Offset";
}
if (engineVersion < 20150811)
{
if (node.Key.StartsWith("ProductionQueue"))
{
var race = node.Value.Nodes.FirstOrDefault(x => x.Key == "Race");
if (race != null)
race.Key = "Factions";
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}