using static PKHeX.Core.Encounters8Nest; namespace PKHeX.Core { /// /// Generation 8 Nest Encounter (Distributed Data) /// public sealed class EncounterStatic8ND : EncounterStatic8Nest { public EncounterStatic8ND(byte lvl, byte dyna, byte flawless) { Level = lvl; DynamaxLevel = dyna; FlawlessIVCount = flawless; } protected override bool IsMatchLocation(PKM pkm) { var loc = pkm.Met_Location; return loc == SharedNest || EncounterArea8.IsWildArea8(loc) || EncounterArea8.IsWildArea8Armor(loc); } public override bool IsMatch(PKM pkm, int lvl) { if (pkm.FlawlessIVCount < FlawlessIVCount) return false; return base.IsMatch(pkm, lvl); } } }