Add Id field to ProvidesTechPrerequisite.

This commit is contained in:
Paul Chote
2016-05-19 14:37:01 +01:00
parent 038a10b676
commit d27d265bdd
5 changed files with 29 additions and 1 deletions

View File

@@ -804,6 +804,13 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20160604 && node.Key.StartsWith("ProvidesTechPrerequisite"))
{
var name = node.Value.Nodes.First(n => n.Key == "Name");
var id = name.Value.Value.ToLowerInvariant().Replace(" ", "");
node.Value.Nodes.Add(new MiniYamlNode("Id", id));
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}