mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-18 08:23:12 +00:00
eb7ed44b29
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
17 lines
512 B
C#
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}";
|
|
}
|
|
}
|