mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Clamp fullness-byte (Playfulness) at maximum
This commit is contained in:
parent
8cc2967395
commit
9b4e085890
1 changed files with 2 additions and 0 deletions
|
@ -353,6 +353,8 @@ namespace PKHeX.Core
|
||||||
|
|
||||||
if (pkm.Format >= 8)
|
if (pkm.Format >= 8)
|
||||||
{
|
{
|
||||||
|
if (pkm.Fullness > 245) // Exiting camp is -10
|
||||||
|
data.AddLine(GetInvalid(string.Format(LMemoryStatFullness, "<=245"), Encounter));
|
||||||
if (pkm.Enjoyment != 0)
|
if (pkm.Enjoyment != 0)
|
||||||
data.AddLine(GetInvalid(string.Format(LMemoryStatEnjoyment, 0), Encounter));
|
data.AddLine(GetInvalid(string.Format(LMemoryStatEnjoyment, 0), Encounter));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue