public Equipment OnEquipSlot(Equipment equipment, Equipment.PartsType type) { int InvenIndex = (int)type; if (EmptySlot(InvenIndex)) { Inventory[InvenIndex] = equipment; } else { return(ChangeSlot(equipment, InvenIndex)); } return(null); }
public Equipment OffEEquipSlot(Equipment.PartsType type) { int InvenIndex = (int)type; return(ChangeSlot(null, InvenIndex)); }