diff api/Objects/Unit.cs @ 201:4d7ff70bb109

Re #208: equipmentslot limit issues * Fix numeric slot issues by using "amount taken excluding this item" method * Rename "without this item" to "excluding this item" to clarify purpose * Restructure percentage limits and break some tests (some of which are only broken by rounding errors)
author IBBoard <dev@ibboard.co.uk>
date Thu, 05 Nov 2009 21:09:03 +0000
parents ec1cfe3ef94e
children 3ef067225dc3
line wrap: on
line diff
--- a/api/Objects/Unit.cs	Thu Nov 05 20:22:00 2009 +0000
+++ b/api/Objects/Unit.cs	Thu Nov 05 21:09:03 2009 +0000
@@ -525,7 +525,7 @@
 		/// </summary>
 		/// <param name="item">the item to exclude from the count</param>
 		/// <returns>the total number of items</returns>
-		public int GetEquipmentAmountInSlotWithoutItem(UnitEquipmentItem item)
+		public int GetEquipmentAmountInSlotExcludingItem(UnitEquipmentItem item)
 		{
 			int amount = 0;