mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-16 17:36:23 -05:00
Mark things as sealed as they shouldn't be inherited from or overriden in a derived class.
18 lines
548 B
C#
18 lines
548 B
C#
namespace PKHeX.Core
|
|
{
|
|
public class EncounterStatic8 : EncounterStatic, IGigantamax
|
|
{
|
|
public sealed 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;
|
|
}
|
|
}
|
|
} |