Allow WC3 Egg Met_Level to be overriden from 0

#1309
This commit is contained in:
Kurt 2017-07-05 23:22:06 -07:00
parent 502093b8b2
commit 3b3d31f70b

View file

@ -42,15 +42,10 @@ namespace PKHeX.Core
public override bool IsPokémon { get; set; }
// Synthetic
private int _metLevel = -1;
private int? _metLevel;
public int Met_Level
{
get
{
if (IsEgg)
return 0;
return _metLevel < 0 ? Level : _metLevel;
}
get => _metLevel ?? (IsEgg ? 0 : Level);
set => _metLevel = value;
}