/// <summary> /// Gets a Pokémon's default name for the desired language ID and generation. /// </summary> /// <param name="species">National Dex number of the Pokémon. Should be 0 if an egg.</param> /// <param name="lang">Language ID of the Pokémon</param> /// <param name="generation">Generation specific formatting option</param> /// <returns>Generation specific default species name</returns> public static string GetSpeciesNameGeneration(int species, int lang, int generation) { if (generation == 3 && species == 0) { return("タマゴ"); } string nick = GetSpeciesName(species, lang); if (generation == 2 && lang == (int)LanguageID.Korean) { return(StringConverter.LocalizeKOR2(nick)); } if (generation < 5 && (generation != 4 || species != 0)) // All caps GenIV and previous, except GenIV eggs. { nick = nick.ToUpper(); if (lang == (int)LanguageID.French) { nick = StringConverter.StripDiacriticsFR4(nick); // strips accents on E and I } } if (generation < 3) { nick = nick.Replace(" ", string.Empty); } return(nick); }