Rename EmitInfantryOnSellInfo.Races to Factions

Also rename the rest of "race" in that file.
This commit is contained in:
Pavel Penev
2015-08-11 03:46:12 +03:00
parent 8b58f3a1d8
commit fd01e95d6c
3 changed files with 16 additions and 9 deletions

View File

@@ -1744,6 +1744,13 @@ namespace OpenRA.Mods.Common.UtilityCommands
if (race != null)
race.Key = "Factions";
}
if (node.Key.StartsWith("EmitInfantryOnSell"))
{
var race = node.Value.Nodes.FirstOrDefault(x => x.Key == "Races");
if (race != null)
race.Key = "Factions";
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);