public void RemoveEnchant(ItemEnchantment enchant) { m_enchantments[(int)enchant.Slot] = null; m_record.SetEnchant(enchant.Slot, 0, 0); var owner = OwningCharacter; if (owner != null) { EnchantMgr.RemoveEnchantFromItem(this, enchant); if (IsEquipped) { SetEnchantUnequipped(enchant); } if (enchant.Entry.GemTemplate != null) { owner.Inventory.ModUniqueCount(enchant.Entry.GemTemplate, -1); } } }