diff api/Objects/CompositeEquipmentItem.cs @ 64:2094bd0ba652

Re #61 - Complete structure of WarFoundry API objects * Make Unit work with EquipmentItem objects as it doesn't need to know about the limits * Add methods to UnitType to check limits on an EquipmentItem Also: * Remove some unnecessary casting now that we're using genericed lists
author IBBoard <dev@ibboard.co.uk>
date Thu, 09 Apr 2009 15:36:22 +0000
parents a920b1bcb408
children 2f3cafb69799
line wrap: on
line diff
--- a/api/Objects/CompositeEquipmentItem.cs	Thu Apr 09 15:05:38 2009 +0000
+++ b/api/Objects/CompositeEquipmentItem.cs	Thu Apr 09 15:36:22 2009 +0000
@@ -29,7 +29,7 @@
 		public void RemoveItem(EquipmentItem item)
 		{
 			compositeItems.Remove(item);
-			cost-= item.Cost;
+			Cost-= item.Cost;
 		}
 		
 		public EquipmentItem[] Items