mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
parent
502093b8b2
commit
3b3d31f70b
1 changed files with 2 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue