mirror of
https://github.com/kwsch/PKHeX
synced 2025-01-23 09:45:04 +00:00
20 lines
437 B
C#
20 lines
437 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|