public string GetItemName(float type, float id) { switch (type) { case (int)TypeOfItem.Type.Weapon: return((WeaponType.GetWeaponName(id) + "_" + (id + 1).ToString()).ToUpper()); case (int)TypeOfItem.Type.Ring: return((RingType.GetRingName(id) + "_" + (id + 1).ToString()).ToUpper()); case (int)TypeOfItem.Type.Amulet: return((AmuletType.GetAmuletName(id) + "_" + (id + 1).ToString()).ToUpper()); case (int)TypeOfItem.Type.Armor: return((ArmorType.GetArmorName(id) + "_" + (id + 1).ToString()).ToUpper()); default: return((OtherType.GetOtherName(id) + "_" + (id + 1).ToString()).ToUpper()); } }