changeset 488:c082a312a741

Re #410: Create "N units per M models in parent unit" requirement * Tweak validation failure message for more likely case of multiple children
author IBBoard <dev@ibboard.co.uk>
date Sun, 29 Jul 2012 14:16:14 +0100
parents 248df19652f9
children aac77204ae0e
files API/Objects/Requirement/UnitRequiresNParentModelsForMUnitsRequirement.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/API/Objects/Requirement/UnitRequiresNParentModelsForMUnitsRequirement.cs	Fri Jul 27 20:31:12 2012 +0100
     1.2 +++ b/API/Objects/Requirement/UnitRequiresNParentModelsForMUnitsRequirement.cs	Sun Jul 29 14:16:14 2012 +0100
     1.3 @@ -108,7 +108,7 @@
     1.4  		{
     1.5  			int allowedTypeCount = GetChildCountFromUnit(parentUnit);
     1.6  			
     1.7 -			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));
     1.8 +			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));
     1.9  		}
    1.10  
    1.11  		protected override string AllowsAddingFailedMessage