PKHeX/PKHeX.Core/Legality/Encounters/Data/EncountersGO.cs
Kurt 7654ce2123 Add initial legality checks for GO->HOME transfers
took me less than an hour to do these changes, and i can flag bad form movesets no problemo

Expect tightening of restrictions (ball, level, shininess) later
if someone wants to curate met date restrictions, go ahead!
2020-11-10 22:10:53 -08:00

28 lines
859 B
C#

using System.Collections.Generic;
using static PKHeX.Core.Species;
namespace PKHeX.Core
{
/// <summary>
/// Encounter data from <see cref="GameVersion.GO"/>, which has multiple generations of origin.
/// </summary>
internal static class EncountersGO
{
private const int MaxSpeciesID_GO_HOME = Legal.MaxSpeciesID_6;
private static readonly HashSet<int> DisallowedSpecies = new HashSet<int>
{
(int)Spinda,
};
private static readonly int[] ExtraSpecies =
{
(int)Meltan,
(int)Melmetal,
};
internal static readonly EncounterArea7g[] SlotsGO_GG = EncounterArea7g.GetArea();
internal static readonly EncounterArea8g[] SlotsGO = EncounterArea8g.GetArea(SlotsGO_GG[0], MaxSpeciesID_GO_HOME, DisallowedSpecies, ExtraSpecies);
}
}