public static void GetModifiedName( ModifierNames modName, string weaponName, out string outputString ) { if( modName == ModifierNames.DEFAULT ) { outputString = weaponName; return; } string name = modName.ToString(); bool isPrefix = ( name.IndexOf( "_suffix" ) == -1 ); name = name.Replace( "_", " " ); if( isPrefix ) { outputString = name + " " + weaponName; } else { name = name.Replace( " suffix", "" ); outputString = weaponName + " " + name; } }
public static void GetModifiedName(ModifierNames modName, string weaponName, out string outputString) { if (modName == ModifierNames.DEFAULT) { outputString = weaponName; return; } string name = modName.ToString(); bool isPrefix = (name.IndexOf("_suffix") == -1); name = name.Replace("_", " "); if (isPrefix) { outputString = name + " " + weaponName; } else { name = name.Replace(" suffix", ""); outputString = weaponName + " " + name; } }