using System; using System.Collections.Generic; using System.Linq; namespace PKHeX.Core { /// /// with multiple references (used for multiple met locations) /// public sealed class EncounterStatic8S : EncounterStatic8 { public override int Location { get => Locations[0]; set { } } public IReadOnlyList Locations { get; internal set; } = Array.Empty(); protected override bool IsMatchLocation(PKM pkm) => Locations.Contains(pkm.Met_Location); } }