mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-24 19:33:10 +00:00
594db92ad0
Handle some stragglers
17 lines
513 B
C#
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}";
|
|
}
|
|
}
|