diff api/Factories/Xml/WarFoundryXmlRaceFactory.cs @ 207:897c53d5a8aa

Re #208 * Make "unitSizeLimit" a percentage so that editing "equip all" type items like the Ork Choppas behaves correctly no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Mon, 09 Nov 2009 12:30:05 +0000
parents c4cf4c7db7d5
children 89e26d51afc2
line wrap: on
line diff
--- a/api/Factories/Xml/WarFoundryXmlRaceFactory.cs	Mon Nov 09 12:20:34 2009 +0000
+++ b/api/Factories/Xml/WarFoundryXmlRaceFactory.cs	Mon Nov 09 12:30:05 2009 +0000
@@ -200,7 +200,7 @@
 						limit = new AbsoluteNumericLimit(XmlTools.GetIntValueFromAttribute(limitElem, "limit"));
 						break;
 					case "unitSizeLimit":
-						limit = new NumericSizeConstrainedLimit();
+						limit = new SimpleRoundedPercentageLimit(100);
 						break;
 					default:
 						//TODO: Warn of missing handler for when we've extended the limit list