# HG changeset patch # User IBBoard # Date 1257769805 0 # Node ID 897c53d5a8aac384a6d976a26e5a44a39b75ee93 # Parent 0ca96143aa03ac6614191e7a64c5307e9c487c8a Re #208 * Make "unitSizeLimit" a percentage so that editing "equip all" type items like the Ork Choppas behaves correctly no-open-ticket diff -r 0ca96143aa03 -r 897c53d5a8aa api/Factories/Xml/WarFoundryXmlRaceFactory.cs --- 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