mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-14 08:00:33 -05:00
Update ShowdownSet.cs
This commit is contained in:
parent
3af369c152
commit
c3215083c2
|
|
@ -399,7 +399,7 @@ private void ParseFirstLine(string first)
|
|||
}
|
||||
else
|
||||
{
|
||||
ParseFirstLineNoItem(first.Trim());
|
||||
ParseFirstLineNoItem(first);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -472,10 +472,11 @@ private bool ParseSpeciesForm(string spec)
|
|||
// failure to parse, check edge cases
|
||||
foreach (var e in DashedSpecies)
|
||||
{
|
||||
if (!spec.StartsWith(Strings.Species[e].Replace("♂", "-M").Replace("♀", "-F")))
|
||||
var sn = Strings.Species[e];
|
||||
if (!spec.StartsWith(sn.Replace("♂", "-M").Replace("♀", "-F")))
|
||||
continue;
|
||||
Species = e;
|
||||
Form = spec.Substring(Strings.Species[e].Length);
|
||||
Form = spec.Substring(sn.Length);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -503,7 +504,7 @@ private void ParseSpeciesNickname(string line)
|
|||
{
|
||||
int end = line.IndexOf(')');
|
||||
n2 = line.Substring(index + 1, end - 1);
|
||||
n1 = line.Substring(end + 2);
|
||||
n1 = end < line.Length - 2 ? line.Substring(end + 2) : n2;
|
||||
}
|
||||
|
||||
if (ParseSpeciesForm(n2))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user