mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +00:00
4b3d85d5e6
#2484 OH BOY REUSED INDEXES smart to save space, but a small pain for legality feels pretty bad breaking up abstractions for every minor difference in verification...
16 lines
No EOL
560 B
C#
16 lines
No EOL
560 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// <see cref="EncounterStatic8"/> with multiple references (used for multiple met locations)
|
|
/// </summary>
|
|
public sealed class EncounterStatic8S : EncounterStatic8
|
|
{
|
|
public override int Location { get => Locations[0]; set { } }
|
|
public IReadOnlyList<int> Locations { get; internal set; } = Array.Empty<int>();
|
|
protected override bool IsMatchLocation(PKM pkm) => Locations.Contains(pkm.Met_Location);
|
|
}
|
|
} |