private void SetupModActiveAbility() { hackerModAbilityDescription.text = item.GetItemAbilityDescription(); HackerMod hackerMod = item as HackerMod; string slotString = hackerMod.GetMaxSlotCount().ToString(); switch (hackerMod.GetItemType()) { case Item.ItemTypes.NeuralImplant: slotString += " Wetware"; break; case Item.ItemTypes.Rig: slotString += " Software"; break; case Item.ItemTypes.Uplink: slotString += " Chipsets"; break; } slotsField.text = slotString; string path = "Icons/ActiveAbilityIcons/Ability" + hackerMod.GetActiveAbilityId().ToString(); hackerModAbilityIcon.sprite = Resources.Load <Sprite>(path); string uses = " use"; if (hackerMod.GetActiveAbilityUses() > 1) { uses = " uses"; } hackerModAbilityUseCount.text = hackerMod.GetActiveAbilityUses().ToString() + uses; }