changeset 440:baa34d91031f

Re #350: Add requirement to allow N of unit for specific other units * Correct "adding" validation message - we haven't added when we check if adding is okay
author IBBoard <dev@ibboard.co.uk>
date Sat, 03 Dec 2011 16:14:26 +0000
parents 5252dfb9cdfb
children d2331ee59d74
files API/Objects/Requirement/RequiresNUnitsForMUnitsRequirement.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/API/Objects/Requirement/RequiresNUnitsForMUnitsRequirement.cs	Wed Nov 30 21:06:41 2011 +0000
+++ b/API/Objects/Requirement/RequiresNUnitsForMUnitsRequirement.cs	Sat Dec 03 16:14:26 2011 +0000
@@ -72,7 +72,7 @@
 
 				if (!IsValidByRequirement(unitType, toArmy, limit, allowedTypeCount))
 				{
-					failures.Add(String.Format("{0} {1} for every {2} {3} (have {4} for {5})", limit.Count, limit.UnitType.Name, limit.AllowsCount, allowedType.Name, limitedTypeCount, allowedTypeCount));
+					failures.Add(String.Format("{0} {1} for every {2} {3} (would have {4} for {5})", limit.Count, limit.UnitType.Name, limit.AllowsCount, allowedType.Name, limitedTypeCount, allowedTypeCount));
 				}
 			}