PKHeX/PKHeX.Core/PKM/Shared/IDynamaxLevel.cs

20 lines
437 B
C#
Raw Normal View History

namespace PKHeX.Core
{
public interface IDynamaxLevel
{
byte DynamaxLevel { get; set; }
}
public static class DynamaxLevelExtensions
{
public static bool CanHaveDynamaxLevel(this IDynamaxLevel _, PKM pkm)
{
if (pkm.IsEgg)
return false;
if (pkm.Species >= (int)Species.Zacian)
return false;
return true;
}
}
}