mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-16 09:08:02 +00:00
68e6644d40
use generics to have shared logic in one spot Handle downleveled distribution/crystal(soon?) data
18 lines
No EOL
526 B
C#
18 lines
No EOL
526 B
C#
using static PKHeX.Core.Encounters8Nest;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Generation 8 Nest Encounter (Distributed Crystal Data)
|
|
/// </summary>
|
|
public sealed class EncounterStatic8NC : EncounterStatic8Nest<EncounterStatic8NC>
|
|
{
|
|
public override int Location { get => SharedNest; set { } }
|
|
|
|
protected override bool IsMatchLocation(PKM pkm)
|
|
{
|
|
var loc = pkm.Met_Location;
|
|
return loc == SharedNest || EncounterArea8.IsWildArea8(loc);
|
|
}
|
|
}
|
|
} |