Clamp fullness-byte (Playfulness) at maximum

This commit is contained in:
Kurt 2021-05-23 22:06:40 -07:00
parent 8cc2967395
commit 9b4e085890

View file

@ -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;