Merge pull request #8851 from penev92/bleed_rename

Some more renaming from "race" to "faction"
This commit is contained in:
Paul Chote
2015-08-02 15:34:41 +01:00
13 changed files with 125 additions and 107 deletions

View File

@@ -1663,6 +1663,23 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20150731)
{
if (node.Key.StartsWith("ProvidesPrerequisite"))
{
var raceNode = node.Value.Nodes.FirstOrDefault(x => x.Key == "Race");
if (raceNode != null)
raceNode.Key = "Factions";
}
if (node.Key.StartsWith("Buildable"))
{
var raceNode = node.Value.Nodes.FirstOrDefault(x => x.Key == "ForceRace");
if (raceNode != null)
raceNode.Key = "ForceFaction";
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}