2018-06-18 19:10:21 -07:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2018-07-01 19:55:23 -07:00
|
|
|
|
public sealed class EvoCriteria : DexLevel
|
2018-06-18 19:10:21 -07:00
|
|
|
|
{
|
2019-12-05 23:04:24 -08:00
|
|
|
|
public EvoCriteria(int species, int form) : base(species, form)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-18 19:10:21 -07:00
|
|
|
|
public int MinLevel { get; set; }
|
|
|
|
|
public bool RequiresLvlUp { get; set; }
|
2020-12-21 17:48:08 -08:00
|
|
|
|
public int Method { get; init; } = -1;
|
2019-01-06 16:22:45 -08:00
|
|
|
|
|
|
|
|
|
public bool IsTradeRequired => ((EvolutionType) Method).IsTrade();
|
2020-07-19 13:32:40 -05:00
|
|
|
|
|
2021-06-06 11:49:41 -07:00
|
|
|
|
public override string ToString() => $"{(Species) Species}{(Form != 0 ? $"-{Form}" : "")}}} [{MinLevel},{Level}] via {(EvolutionType) Method}";
|
2018-06-18 19:10:21 -07:00
|
|
|
|
}
|
|
|
|
|
}
|