PKHeX/PKHeX.Core/Legality/Evolutions/EvoCriteria.cs
Kurt 594db92ad0 Minor clean
Handle some stragglers
2020-12-21 17:48:08 -08:00

17 lines
513 B
C#

namespace PKHeX.Core
{
public sealed class EvoCriteria : DexLevel
{
public EvoCriteria(int species, int form) : base(species, form)
{
}
public int MinLevel { get; set; }
public bool RequiresLvlUp { get; set; }
public int Method { get; init; } = -1;
public bool IsTradeRequired => ((EvolutionType) Method).IsTrade();
public override string ToString() => $"{(Species) Species} [{MinLevel},{Level}] via {(EvolutionType) Method}";
}
}