# HG changeset patch # User IBBoard # Date 1254671535 0 # Node ID 624422e91a1c21aea2405763c98b5e9760e021c1 # Parent 81abc04b3dbe950079b47198d7234c7b610d13d7 Re #192: Improve "clean coding" practice * Make Equipment util class public * Remove use of obsolete method diff -r 81abc04b3dbe -r 624422e91a1c api/Objects/Unit.cs --- a/api/Objects/Unit.cs Sun Oct 04 12:00:16 2009 +0000 +++ b/api/Objects/Unit.cs Sun Oct 04 15:52:15 2009 +0000 @@ -434,7 +434,7 @@ } else { - canEquip = GetBlockingEquipmentItems(item).Count == 0; + canEquip = UnitEquipmentUtil.GetBlockingEquipmentItems(this, item).Count == 0; } return canEquip; diff -r 81abc04b3dbe -r 624422e91a1c api/Util/UnitEquipmentUtil.cs --- a/api/Util/UnitEquipmentUtil.cs Sun Oct 04 12:00:16 2009 +0000 +++ b/api/Util/UnitEquipmentUtil.cs Sun Oct 04 15:52:15 2009 +0000 @@ -9,7 +9,7 @@ namespace IBBoard.WarFoundry.API.Util { - class UnitEquipmentUtil + public class UnitEquipmentUtil { /// /// Gets an array of allowed s based on the current selections of the unit, taking in to account Mutex groups and other limits.