2018-08-03 03:11:42 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
2017-05-28 04:17:53 +00:00
|
|
|
|
{
|
2017-10-24 06:12:58 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Invalid Encounter Data
|
|
|
|
|
/// </summary>
|
2017-05-28 04:17:53 +00:00
|
|
|
|
public class EncounterInvalid : IEncounterable
|
|
|
|
|
{
|
|
|
|
|
public int Species { get; }
|
2017-06-18 01:37:19 +00:00
|
|
|
|
public int LevelMin { get; }
|
|
|
|
|
public int LevelMax { get; }
|
|
|
|
|
public bool EggEncounter { get; }
|
|
|
|
|
|
2017-05-28 04:17:53 +00:00
|
|
|
|
public string Name => "Invalid";
|
|
|
|
|
|
|
|
|
|
public EncounterInvalid(PKM pkm)
|
|
|
|
|
{
|
|
|
|
|
Species = pkm.Species;
|
2017-06-18 01:37:19 +00:00
|
|
|
|
LevelMin = pkm.Met_Level;
|
|
|
|
|
LevelMax = pkm.CurrentLevel;
|
|
|
|
|
EggEncounter = pkm.WasEgg;
|
2017-05-28 04:17:53 +00:00
|
|
|
|
}
|
2018-03-29 03:38:07 +00:00
|
|
|
|
|
2018-08-03 03:11:42 +00:00
|
|
|
|
public PKM ConvertToPKM(ITrainerInfo SAV) => throw new ArgumentException($"Cannot convert an {nameof(EncounterInvalid)} to PKM.");
|
2017-05-28 04:17:53 +00:00
|
|
|
|
}
|
|
|
|
|
}
|