mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +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
|
// First Line: Name, Nickname, Gender, Item
|
||||||
string specForm = species[Species];
|
string specForm = species[Species];
|
||||||
if (!string.IsNullOrWhiteSpace(Form))
|
if (!string.IsNullOrWhiteSpace(Form))
|
||||||
{
|
specForm += "-" + Form.Replace("Mega ", "Mega-");
|
||||||
if (Form.Contains("Mega"))
|
|
||||||
specForm += Form.Replace("Mega ", "Mega-");
|
|
||||||
else
|
|
||||||
specForm += "-" + Form;
|
|
||||||
}
|
|
||||||
string result = Nickname != null && species[Species] != Nickname ? $"{Nickname} ({specForm})" : $"{specForm}";
|
string result = Nickname != null && species[Species] != Nickname ? $"{Nickname} ({specForm})" : $"{specForm}";
|
||||||
if (!string.IsNullOrEmpty(Gender))
|
if (!string.IsNullOrEmpty(Gender))
|
||||||
result += $" ({Gender})";
|
result += $" ({Gender})";
|
||||||
|
|
Loading…
Add table
Reference in a new issue