mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Parse shiny/gmax Yes with any case/culture
This commit is contained in:
parent
59144ddb0d
commit
c7f24eecd0
2 changed files with 3 additions and 3 deletions
|
@ -181,8 +181,8 @@ namespace PKHeX.Core
|
|||
switch (identifier)
|
||||
{
|
||||
case "Ability" or "Trait": return (Ability = StringUtil.FindIndexIgnoreCase(Strings.abilitylist, value)) >= 0;
|
||||
case "Shiny": return Shiny = value.Trim() == "Yes";
|
||||
case "Gigantamax": return CanGigantamax = value.Trim() == "Yes";
|
||||
case "Shiny": return Shiny = StringUtil.IsMatchIgnoreCase("Yes", value);
|
||||
case "Gigantamax": return CanGigantamax = StringUtil.IsMatchIgnoreCase("Yes", value);
|
||||
case "Nature": return (Nature = StringUtil.FindIndexIgnoreCase(Strings.natures, value)) >= 0;
|
||||
case "EV" or "EVs": ParseLineEVs(value); return true;
|
||||
case "IV" or "IVs": ParseLineIVs(value); return true;
|
||||
|
|
|
@ -45,7 +45,7 @@ namespace PKHeX.Core
|
|||
return result;
|
||||
}
|
||||
|
||||
private static bool IsMatchIgnoreCase(string string1, string string2)
|
||||
public static bool IsMatchIgnoreCase(string string1, string string2)
|
||||
{
|
||||
if (string1.Length != string2.Length)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue