2021-12-26 08:57:40 +00:00
|
|
|
|
namespace PKHeX.Core;
|
2019-12-06 07:04:24 +00:00
|
|
|
|
|
2021-12-26 08:57:40 +00:00
|
|
|
|
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;
|
2019-01-07 00:22:45 +00:00
|
|
|
|
|
2021-12-26 08:57:40 +00:00
|
|
|
|
public bool IsTradeRequired => ((EvolutionType) Method).IsTrade();
|
2020-07-19 18:32:40 +00:00
|
|
|
|
|
2021-12-26 08:57:40 +00:00
|
|
|
|
public override string ToString() => $"{(Species) Species}{(Form != 0 ? $"-{Form}" : "")}}} [{MinLevel},{Level}] via {(EvolutionType) Method}";
|
2018-06-19 02:10:21 +00:00
|
|
|
|
}
|