diff api/Objects/Unit.cs @ 265:6fe0cb1bf74f

Re #279: Create composite limit * Change uses of "AbstractLimit" to "ILimit" as composites don't have a number themselves and can't extend AbstractLimit * Refactor limit parsing code out into a separate class * Use grouping to allow for re-use of limit types in schema * Add min and max composite limits in schema
author IBBoard <dev@ibboard.co.uk>
date Sat, 05 Jun 2010 15:36:04 +0000
parents cdda78975be1
children 51b3027a7dae
line wrap: on
line diff
--- a/api/Objects/Unit.cs	Sat Jun 05 14:00:28 2010 +0000
+++ b/api/Objects/Unit.cs	Sat Jun 05 15:36:04 2010 +0000
@@ -88,7 +88,7 @@
 				{
 					if (CanEquipWithItem(unitEquip))
 					{
-						AbstractLimit minLimit = unitEquip.MinLimit;
+						ILimit minLimit = unitEquip.MinLimit;
 						
 						if (minLimit is IPercentageLimit)
 						{