|
|
@ -1210,14 +1210,10 @@ public class CharacterItemManager { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Item must be in inventory to equip
|
|
|
|
// Item must be in inventory to equip
|
|
|
|
if (!this.inventory.contains(i) && this.absCharacter.getObjectType() != GameObjectType.Mob) |
|
|
|
if (!this.inventory.contains(i) && this.absCharacter.getObjectType() != GameObjectType.Mob) |
|
|
|
return false; |
|
|
|
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) |
|
|
|
if (!ItemTemplate.canEquip(slot, this, absCharacter, i) && this.absCharacter.getObjectType() != GameObjectType.Mob) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|