mirror of
https://github.com/kwsch/PKHeX
synced 2025-03-02 14:27:14 +00: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:
parent
6b62dd29ee
commit
8187606a89
1 changed files with 3 additions and 3 deletions
|
@ -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];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue