public string GenerateSlotDisplayString() { string displayString = ""; HackerMod mod = item as HackerMod; if (item.GetItemLevel() == 1) { displayString += "<color=#FFFFFF>" + mod.GetLevel1SlotCount() + "</color>"; } else { displayString += mod.GetLevel1SlotCount(); } if (item.GetItemLevel() == 2) { displayString += " <color=#FFFFFF>" + mod.GetLevel2SlotCount() + "</color>"; } else { displayString += " " + mod.GetLevel2SlotCount(); } if (item.GetItemLevel() == 3) { displayString += " <color=#FFFFFF>" + mod.GetLevel3SlotCount() + "</color>"; } else { displayString += " " + mod.GetLevel3SlotCount(); } if (item.GetItemLevel() == 4) { displayString += " <color=#FFFFFF>" + mod.GetLevel4SlotCount() + "</color>"; } else { displayString += " " + mod.GetLevel4SlotCount(); } if (item.GetItemLevel() == 5) { displayString += " <color=#FFFFFF>" + mod.GetLevel5SlotCount() + "</color>"; } else { displayString += " " + mod.GetLevel5SlotCount(); } return(displayString); }