2021-12-26 08:57:40 +00:00
|
|
|
|
namespace PKHeX.Core;
|
2019-12-06 07:04:24 +00:00
|
|
|
|
|
2022-05-08 01:29:36 +00:00
|
|
|
|
public readonly record struct EvoCriteria
|
2021-12-26 08:57:40 +00:00
|
|
|
|
{
|
2022-04-24 04:33:17 +00:00
|
|
|
|
public ushort Species { get; init; }
|
|
|
|
|
public byte Form { get; init; }
|
|
|
|
|
public byte LevelUpRequired { get; init; }
|
|
|
|
|
public byte LevelMax { get; init; }
|
|
|
|
|
public byte LevelMin { get; init; }
|
2019-01-07 00:22:45 +00:00
|
|
|
|
|
2022-04-24 04:33:17 +00:00
|
|
|
|
public EvolutionType Method { get; init; }
|
2020-07-19 18:32:40 +00:00
|
|
|
|
|
2022-04-24 04:33:17 +00:00
|
|
|
|
public bool RequiresLvlUp => LevelUpRequired != 0;
|
|
|
|
|
|
|
|
|
|
public override string ToString() => $"{(Species) Species}{(Form != 0 ? $"-{Form}" : "")}}} [{LevelMin},{LevelMax}] via {Method}";
|
2018-06-19 02:10:21 +00:00
|
|
|
|
}
|