mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-16 00:58:01 +00:00
0b4e6a0733
relocate ribbon checks/class to more focused location reduce amount of GenNumber checks (use stored Generation value instead)
21 lines
No EOL
647 B
C#
21 lines
No EOL
647 B
C#
namespace PKHeX.Core
|
|
{
|
|
public class EncounterRejected : IEncounterable
|
|
{
|
|
public readonly IEncounterable Encounter;
|
|
public readonly CheckResult Check;
|
|
public string Reason => Check.Comment;
|
|
|
|
public int Species => Encounter.Species;
|
|
public string Name => Encounter.Name;
|
|
public bool EggEncounter => Encounter.EggEncounter;
|
|
public int LevelMin => Encounter.LevelMin;
|
|
public int LevelMax => Encounter.LevelMax;
|
|
|
|
public EncounterRejected(IEncounterable encounter, CheckResult check)
|
|
{
|
|
Encounter = encounter;
|
|
Check = check;
|
|
}
|
|
}
|
|
} |