public HackerModChip GetEquippedInstallByItemTypeAndSlotNumber(Item.ItemTypes itemType, int slotNumber) { switch (itemType) { case Item.ItemTypes.Chipset: return(uplink.GetChipBySlot(slotNumber)); case Item.ItemTypes.Software: return(rig.GetChipBySlot(slotNumber)); case Item.ItemTypes.Wetware: return(neuralImplant.GetChipBySlot(slotNumber)); } return(uplink.GetChipBySlot(0)); // this will break, as intended. We shouldn't reach this. }