Clarify sav6 boxflag in src

7 wallpaper flags (not all used), top bit unlocks box 31

https://projectpokemon.org/home/forums/topic/34466-box-31-is-unlocked-but-not-showing-on-bank-any-ideas/

PCFlags + 2 is just CurrentBox, don't include it anymore.
This commit is contained in:
Kurt 2018-08-08 22:02:06 -07:00
parent 6b62dd29ee
commit 8187606a89

View file

@ -850,12 +850,12 @@ namespace PKHeX.Core
public override int BoxesUnlocked { get => Data[PCFlags + 1] - 1; set => Data[PCFlags + 1] = (byte)(value + 1); } public override int BoxesUnlocked { get => Data[PCFlags + 1] - 1; set => Data[PCFlags + 1] = (byte)(value + 1); }
public override byte[] BoxFlags public override byte[] BoxFlags
{ {
get => new[] { Data[PCFlags], Data[PCFlags + 2] }; get => new[] { Data[PCFlags] }; // 7 bits for wallpaper unlocks, top bit to unlock final box (delta episode)
set set
{ {
if (value.Length != 2) return; if (value.Length != 1)
return;
Data[PCFlags] = value[0]; Data[PCFlags] = value[0];
Data[PCFlags + 2] = value[1];
} }
} }