mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
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:
parent
f2ee9492e6
commit
4eeb90dd87
1 changed files with 2 additions and 6 deletions
|
@ -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})";
|
||||
|
|
Loading…
Reference in a new issue