diff options
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r-- | src/game/Item.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index 1a32bfd4107..eed876082bf 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -727,29 +727,6 @@ bool Item::CanBeTraded(bool mail) const return true; } -bool Item::HasEnchantRequiredSkill(const Player *pPlayer) const -{ - // Check all enchants for required skill - for (uint32 enchant_slot = PERM_ENCHANTMENT_SLOT; enchant_slot < MAX_ENCHANTMENT_SLOT; ++enchant_slot) - if (uint32 enchant_id = GetEnchantmentId(EnchantmentSlot(enchant_slot))) - if (SpellItemEnchantmentEntry const* enchantEntry = sSpellItemEnchantmentStore.LookupEntry(enchant_id)) - if (enchantEntry->requiredSkill && pPlayer->GetSkillValue(enchantEntry->requiredSkill) < enchantEntry->requiredSkillValue) - return false; - return true; -} - -uint32 Item::GetEnchantRequiredLevel() const -{ - uint32 level = 0; - // Check all enchants for required level - for (uint32 enchant_slot = PERM_ENCHANTMENT_SLOT; enchant_slot < MAX_ENCHANTMENT_SLOT; ++enchant_slot) - if (uint32 enchant_id = GetEnchantmentId(EnchantmentSlot(enchant_slot))) - if (SpellItemEnchantmentEntry const* enchantEntry = sSpellItemEnchantmentStore.LookupEntry(enchant_id)) - if (enchantEntry->requiredLevel > level) - level = enchantEntry->requiredLevel; - return level; -} - bool Item::IsBoundByEnchant() const { // Check all enchants for soulbound |