Reimplement unit levels using IUpgradable.

This commit is contained in:
Paul Chote
2014-07-30 20:14:13 +12:00
parent 0ca5336072
commit de775e2f56
8 changed files with 104 additions and 57 deletions

View File

@@ -364,6 +364,13 @@ namespace OpenRA.Utility
}
}
// Veterancy was changed to use the upgrades system
if (engineVersion < 20140807)
{
if (depth == 0 && node.Value.Nodes.Any(n => n.Key.StartsWith("GainsExperience")))
node.Value.Nodes.Add(new MiniYamlNode("GainsStatUpgrades", new MiniYaml("")));
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}