# HG changeset patch # User IBBoard # Date 1343567774 -3600 # Node ID c082a312a7412fe82c44884339fcd6ac949eb450 # Parent 248df19652f95cc30d800bd276c21804545ad019 Re #410: Create "N units per M models in parent unit" requirement * Tweak validation failure message for more likely case of multiple children diff -r 248df19652f9 -r c082a312a741 API/Objects/Requirement/UnitRequiresNParentModelsForMUnitsRequirement.cs --- a/API/Objects/Requirement/UnitRequiresNParentModelsForMUnitsRequirement.cs Fri Jul 27 20:31:12 2012 +0100 +++ b/API/Objects/Requirement/UnitRequiresNParentModelsForMUnitsRequirement.cs Sun Jul 29 14:16:14 2012 +0100 @@ -108,7 +108,7 @@ { int allowedTypeCount = GetChildCountFromUnit(parentUnit); - return String.Format("Army can only contain {0} × {1} as a sub-unit of each {2}, would have {3}", allowedTypeCount, unitType.Name, parentUnit.UnitType.Name, (allowedTypeCount + 1)); + return String.Format("Army can only contain {0} × {1} as sub-units of each {2}, would have {3}", allowedTypeCount, unitType.Name, parentUnit.UnitType.Name, (allowedTypeCount + 1)); } protected override string AllowsAddingFailedMessage