コード例 #1
0
ファイル: armor.cpp プロジェクト: OpenMW/openmw
 bool Armor::canSell (const MWWorld::ConstPtr& item, int npcServices) const
 {
     return (npcServices & ESM::NPC::Armor)
             || ((npcServices & ESM::NPC::MagicItems) && !getEnchantment(item).empty());
 }
コード例 #2
0
ファイル: clothing.cpp プロジェクト: Bodillium/openmw
 bool Clothing::canSell (const MWWorld::Ptr& item, int npcServices) const
 {
     return (npcServices & ESM::NPC::Clothing)
             || ((npcServices & ESM::NPC::MagicItems) && !getEnchantment(item).empty());
 }