Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison api/Objects/Unit.cs @ 162:624422e91a1c
Re #192: Improve "clean coding" practice
* Make Equipment util class public
* Remove use of obsolete method
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 04 Oct 2009 15:52:15 +0000 |
parents | 81abc04b3dbe |
children | 91f7b8da0b53 |
comparison
equal
deleted
inserted
replaced
161:81abc04b3dbe | 162:624422e91a1c |
---|---|
432 { | 432 { |
433 canEquip = true; | 433 canEquip = true; |
434 } | 434 } |
435 else | 435 else |
436 { | 436 { |
437 canEquip = GetBlockingEquipmentItems(item).Count == 0; | 437 canEquip = UnitEquipmentUtil.GetBlockingEquipmentItems(this, item).Count == 0; |
438 } | 438 } |
439 | 439 |
440 return canEquip; | 440 return canEquip; |
441 } | 441 } |
442 | 442 |