mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-09 12:56:26 -05:00
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:
@@ -850,12 +850,12 @@ public override bool BattleBoxLocked
|
||||
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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user