PKHeX/PKHeX.Core/Legality/Evolutions/EvoCriteria.cs
Kurt 1d0993f852 Remove EvoBase, relocate functions to call sites
Utilize FormInfo to remap battle forms into hatch forms so the encounter matches something valid, and is flagged later in FormVerifier
2021-12-26 00:57:40 -08:00

12 lines
458 B
C#

namespace PKHeX.Core;
public sealed record EvoCriteria(int Species, int Form) : DexLevel(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}{(Form != 0 ? $"-{Form}" : "")}}} [{MinLevel},{Level}] via {(EvolutionType) Method}";
}