PKHeX/PKHeX.Core/Legality/Evolutions/EvoCriteria.cs
Kurt eb7ed44b29 Finish splitting gen1/2 encounter types from parent class
Results in a little more code, but each path is less tangled
simplify some expressions
remove RBDragonair content in favor of a strict filter for catch rate

Move gen1 trade trainer names to stringconverter, since pk1/pk2 shouldn't refer to legality classes
2020-07-19 13:32:40 -05:00

17 lines
512 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; set; } = -1;
public bool IsTradeRequired => ((EvolutionType) Method).IsTrade();
public override string ToString() => $"{(Species) Species} [{MinLevel},{Level}] via {(EvolutionType) Method}";
}
}