comparison 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
comparison
equal deleted inserted replaced
206:0ca96143aa03 207:897c53d5a8aa
198 break; 198 break;
199 case "absoluteLimit": 199 case "absoluteLimit":
200 limit = new AbsoluteNumericLimit(XmlTools.GetIntValueFromAttribute(limitElem, "limit")); 200 limit = new AbsoluteNumericLimit(XmlTools.GetIntValueFromAttribute(limitElem, "limit"));
201 break; 201 break;
202 case "unitSizeLimit": 202 case "unitSizeLimit":
203 limit = new NumericSizeConstrainedLimit(); 203 limit = new SimpleRoundedPercentageLimit(100);
204 break; 204 break;
205 default: 205 default:
206 //TODO: Warn of missing handler for when we've extended the limit list 206 //TODO: Warn of missing handler for when we've extended the limit list
207 break; 207 break;
208 } 208 }