PKHeX/PKHeX.Core/Legality/Evolutions/EvoCriteria.cs

18 lines
546 B
C#
Raw Normal View History

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; }
2020-12-22 01:48:08 +00:00
public int Method { get; init; } = -1;
public bool IsTradeRequired => ((EvolutionType) Method).IsTrade();
public override string ToString() => $"{(Species) Species}{(Form != 0 ? $"-{Form}" : "")}}} [{MinLevel},{Level}] via {(EvolutionType) Method}";
}
}