|
|
|
@ -1210,14 +1210,10 @@ public class CharacterItemManager {
@@ -1210,14 +1210,10 @@ public class CharacterItemManager {
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Item must be in inventory to equip
|
|
|
|
|
if (!this.inventory.contains(i) && this.absCharacter.getObjectType() != GameObjectType.Mob) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
// make sure player can equip item
|
|
|
|
|
if (i.getItemBase() == null) |
|
|
|
|
return false; |
|
|
|
|
if (!ItemTemplate.canEquip(slot, this, absCharacter, i) && this.absCharacter.getObjectType() != GameObjectType.Mob) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|