Use agreed upon lgpe starter forme name

Thanks @Marty-D !
This commit is contained in:
Kurt
2018-11-13 19:20:21 -08:00
parent 24c541eeef
commit 181e75818c

View File

@@ -44,7 +44,7 @@ internal static string[] GetFormList(int species, IReadOnlyList<string> types, I
return GetFormsGen7(species, types, forms);
}
private static bool IsGG() => false;
private static bool IsGG() => GameVersion.GG.Contains(PKMConverter.Trainer.Game);
public static bool IsTotemForm(int species, int form, int generation = 7)
{
@@ -85,7 +85,7 @@ public static bool IsValidOutOfBoundsForme(int species, int form, int generation
}
private static readonly string[] EMPTY = {""};
private const string Partner = "Starter";
private const string Starter = nameof(Starter);
private static string[] GetFormsGen1(int species, IReadOnlyList<string> types, IReadOnlyList<string> forms, int generation)
{
@@ -104,7 +104,7 @@ private static string[] GetFormsGen1(int species, IReadOnlyList<string> types, I
return new[]
{
types[000], // Normal
Partner,
Starter,
};
case 025:
@@ -572,7 +572,7 @@ private static string[] GetFormsPikachu(int generation, IReadOnlyList<string> ty
if (!IsGG())
return arr;
System.Array.Resize(ref arr, arr.Length + 1);
arr[arr.Length - 1] = Partner;
arr[arr.Length - 1] = Starter;
return arr;
}
}