Fix mega form showdown set

Cosmetic text regurgitating
replace Mega Y->Mega-Y
old method would forget the leading hyphen
This commit is contained in:
Kaphotics 2016-10-03 19:24:46 -07:00
parent f2ee9492e6
commit 4eeb90dd87

View file

@ -145,12 +145,8 @@ namespace PKHeX
// First Line: Name, Nickname, Gender, Item
string specForm = species[Species];
if (!string.IsNullOrWhiteSpace(Form))
{
if (Form.Contains("Mega"))
specForm += Form.Replace("Mega ", "Mega-");
else
specForm += "-" + Form;
}
specForm += "-" + Form.Replace("Mega ", "Mega-");
string result = Nickname != null && species[Species] != Nickname ? $"{Nickname} ({specForm})" : $"{specForm}";
if (!string.IsNullOrEmpty(Gender))
result += $" ({Gender})";