public void Remove(EquipItem.EquipSlot slot) { if (!EquipmentList.ContainsKey(slot)) { throw new Exception("No item in that slot"); } else { EquipItem itemToRemove; EquipmentList.TryGetValue(slot, out itemToRemove); EquipmentList.Remove(slot); //OWNER.INVENTORY.ADD ITEMTOREMOVE throw new NotImplementedException("Add item to players inventory"); } }
public bool RemoveEquipment(Equipment input) { if (input == null) { return(false); } else { if (EquipmentList.Contains(input)) { EquipmentList.Remove(input); return(true); } else { return(false); } } }