mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
eac3804c7b
DexLevel was the initial abstraction, which was expanded/reused for evolution details I should probably merge the two classes since everything is passed as EvoCriteria The encounter generators do some silly form fuzzy match which can now be more accurately checked since I've moved Form to DexLevel... maybe a future commit can clean that up. encounterarea2 was reusing this class, just use a throwaway readonly struct as our temp value storage
15 lines
392 B
C#
15 lines
392 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();
|
|
}
|
|
}
|