PKHeX/PKHeX.Core/Legality/Encounters/EncounterStatic/EncounterStatic8.cs
Kurt 5a391bc20c Make EncounterStatic abstract, make Generation property abstract
Merge EncounterGift8 with EncounterStatic8 since there isn't much need to have two separate classes
2020-08-30 16:10:24 -07:00

18 lines
No EOL
541 B
C#

namespace PKHeX.Core
{
public class EncounterStatic8 : EncounterStatic, IGigantamax
{
public override int Generation => 8;
public bool CanGigantamax { get; set; }
protected override bool IsMatchLevel(PKM pkm, DexLevel evo)
{
var met = pkm.Met_Level;
if (met == Level)
return true;
if (EncounterArea8.IsWildArea8(Location) || EncounterArea8.IsWildArea8Armor(Location))
return met == 60;
return false;
}
}
}