comparison API/Objects/Requirement/UnitRequiresAtLeastNUnitsRequirement.cs @ 454:def5d333c5e8

Re #379: Fix validation of requirements to check for unit * Remove custom messages for overrides to reduce verbosity * Add missing multiplication signs for readability
author IBBoard <dev@ibboard.co.uk>
date Tue, 31 Jan 2012 20:58:09 +0000
parents b671085871b7
children afc6410e4efc
comparison
equal deleted inserted replaced
453:dace3b7779ca 454:def5d333c5e8
36 36
37 public override Validation ValidatesArmy(Army toArmy) 37 public override Validation ValidatesArmy(Army toArmy)
38 { 38 {
39 return IsApplicable(toArmy) ? base.ValidatesArmy(toArmy) : Validation.NotApplicable; 39 return IsApplicable(toArmy) ? base.ValidatesArmy(toArmy) : Validation.NotApplicable;
40 } 40 }
41
42 protected override string ValidationFailedMessage
43 {
44 get
45 {
46 return "Army contains " + requirementOnType.Name + " and so must contain: {0}.";
47 }
48 }
49
50 protected override string AllowsAddingFailedMessage
51 {
52 get
53 {
54 return "Army would contain " + requirementOnType.Name + " and so must contain: {0}.";
55 }
56 }
57 } 41 }
58 } 42 }
59 43