@ -380,7 +380,8 @@ namespace MWClass
bool Armor::canSell (const MWWorld::Ptr& item, int npcServices) const
{
return npcServices & ESM::NPC::Armor;
return (npcServices & ESM::NPC::Armor)
|| ((npcServices & ESM::NPC::MagicItems) && !getEnchantment(item).empty());
}
float Armor::getWeight(const MWWorld::Ptr &ptr) const
@ -202,7 +202,8 @@ namespace MWClass
bool Book::canSell (const MWWorld::Ptr& item, int npcServices) const
return npcServices & ESM::NPC::Books;
return (npcServices & ESM::NPC::Books)
float Book::getWeight(const MWWorld::Ptr &ptr) const
@ -292,7 +292,8 @@ namespace MWClass
bool Clothing::canSell (const MWWorld::Ptr& item, int npcServices) const
return npcServices & ESM::NPC::Clothing;
return (npcServices & ESM::NPC::Clothing)
float Clothing::getWeight(const MWWorld::Ptr &ptr) const
@ -434,7 +434,8 @@ namespace MWClass
bool Weapon::canSell (const MWWorld::Ptr& item, int npcServices) const
return npcServices & ESM::NPC::Weapon;
return (npcServices & ESM::NPC::Weapon)
float Weapon::getWeight(const MWWorld::Ptr &ptr) const