public void Equip(Equipment newItem)
    {
        int       slotindex = (int)newItem.equip;
        Equipment olditem   = null;

        if (currentEquipment[slotindex] != null)
        {
            olditem = currentEquipment[slotindex];
            inventory.Add(olditem);
        }

        if (equipmentchanged != null)
        {
            equipmentchanged.Invoke(newItem, olditem);
        }
        currentEquipment[slotindex] = newItem;
    }