private string FormatValue(object attribute, int value) { int mod = Imbuing.GetMod(attribute); if (!Imbuing.Table.ContainsKey(mod)) { return(value.ToString()); } if (mod == 41) { return(String.Format("-{0}", value.ToString())); } else if (Imbuing.Table[mod].MaxIntensity <= 8 || mod == 21 || mod == 17) { return(value.ToString()); } return(String.Format("{0}%", value.ToString())); }