diff api/Factories/Xml/WarFoundryXmlRaceFactory.cs @ 224:f097888efcfe

Fixes #233: "unitPoints" attribute is badly named * Rename "unitPoints" to "basePoints" * Re-order schema to more sensible name * Use new name in code when parsing XML (object property already has sensible name) Also: * Rename "dtds" folder to more accurate "schemas" * Change references to folder in code
author IBBoard <dev@ibboard.co.uk>
date Mon, 14 Dec 2009 20:50:39 +0000
parents 2f9ad5385707
children d1c90159547a
line wrap: on
line diff
--- a/api/Factories/Xml/WarFoundryXmlRaceFactory.cs	Mon Dec 14 20:19:01 2009 +0000
+++ b/api/Factories/Xml/WarFoundryXmlRaceFactory.cs	Mon Dec 14 20:50:39 2009 +0000
@@ -141,7 +141,7 @@
 				type.MinSize = XmlTools.GetIntValueFromAttribute(elem, "minSize");
 				type.BaseSize = XmlTools.GetIntValueFromAttribute(elem, "baseSize");
 				type.CostPerTrooper = XmlTools.GetDoubleValueFromAttribute(elem, "points");
-				type.BaseUnitCost = XmlTools.GetDoubleValueFromAttribute(elem, "unitPoints");
+				type.BaseUnitCost = XmlTools.GetDoubleValueFromAttribute(elem, "basePoints");
 			}
 			catch (FormatException ex)
 			{