From 8187606a89ddfee50bd013a50afbd55db688dbd6 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 8 Aug 2018 22:02:06 -0700 Subject: [PATCH] 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. --- PKHeX.Core/Saves/SAV6.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PKHeX.Core/Saves/SAV6.cs b/PKHeX.Core/Saves/SAV6.cs index 384eb5cf6..3ab6e3a9b 100644 --- a/PKHeX.Core/Saves/SAV6.cs +++ b/PKHeX.Core/Saves/SAV6.cs @@ -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 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 { - if (value.Length != 2) return; + if (value.Length != 1) + return; Data[PCFlags] = value[0]; - Data[PCFlags + 2] = value[1]; } }