mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
update showdownset parsing for new gmax impl (#2957)
Gigantamax: Yes is now in a new line instead of -Gmax. Have maintained legacy support since showdown is supporting legacy as well. Set the export to the newer format.
This commit is contained in:
parent
05ac8acb5f
commit
fa3bdfe5f6
1 changed files with 3 additions and 3 deletions
|
@ -172,6 +172,7 @@ namespace PKHeX.Core
|
|||
{
|
||||
case "Trait": case "Ability": return (Ability = StringUtil.FindIndexIgnoreCase(Strings.abilitylist, value)) >= 0;
|
||||
case "Shiny": return Shiny = value.Trim() == "Yes";
|
||||
case "Gigantamax": return CanGigantamax = value.Trim() == "Yes";
|
||||
case "Nature": return (Nature = StringUtil.FindIndexIgnoreCase(Strings.natures, value)) >= 0;
|
||||
case "EV": case "EVs": ParseLineEVs(value); return true;
|
||||
case "IV": case "IVs": ParseLineIVs(value); return true;
|
||||
|
@ -250,6 +251,8 @@ namespace PKHeX.Core
|
|||
result.Add($"Ability: {Strings.Ability[Ability]}");
|
||||
if (Level != 100)
|
||||
result.Add($"Level: {Level}");
|
||||
if (CanGigantamax)
|
||||
result.Add("Gigantamax: Yes");
|
||||
if (Shiny)
|
||||
result.Add("Shiny: Yes");
|
||||
|
||||
|
@ -271,9 +274,6 @@ namespace PKHeX.Core
|
|||
else if (Species == (int)Core.Species.NidoranF)
|
||||
specForm = specForm.Replace("♀", "-F");
|
||||
|
||||
if (CanGigantamax)
|
||||
specForm += Gmax;
|
||||
|
||||
string result = GetSpeciesNickname(specForm);
|
||||
if (Gender.Length != 0)
|
||||
result += $" ({Gender})";
|
||||
|
|
Loading…
Reference in a new issue