mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-22 20:13:06 +00:00
Fix club board fetch for pre-indigo saves
This commit is contained in:
parent
3ea44b5eb0
commit
2aec7572f8
2 changed files with 8 additions and 7 deletions
|
@ -446,11 +446,12 @@ public sealed class SAV9SV : SaveFile, ISaveBlock9Main, ISCBlockArray, ISaveFile
|
|||
}
|
||||
|
||||
// Update Support Board
|
||||
BlueberryClubRoom.SupportBoard.BaseballClub1SmugElegantPurchased = true;
|
||||
BlueberryClubRoom.SupportBoard.BaseballClub1SmugElegantUnread = false;
|
||||
BlueberryClubRoom.SupportBoard.BaseballClub2TwirlingNinjaPurchased = true;
|
||||
BlueberryClubRoom.SupportBoard.BaseballClub2TwirlingNinjaUnread = false;
|
||||
BlueberryClubRoom.SupportBoard.BaseballClub3ChampionPurchased = true;
|
||||
BlueberryClubRoom.SupportBoard.BaseballClub3ChampionUnread = false;
|
||||
var board = BlueberryClubRoom.SupportBoard;
|
||||
board.BaseballClub1SmugElegantPurchased = true;
|
||||
board.BaseballClub1SmugElegantUnread = false;
|
||||
board.BaseballClub2TwirlingNinjaPurchased = true;
|
||||
board.BaseballClub2TwirlingNinjaUnread = false;
|
||||
board.BaseballClub3ChampionPurchased = true;
|
||||
board.BaseballClub3ChampionUnread = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ public sealed class BlueberryClubRoom9(SAV9SV sav, SCBlock block) : SaveBlock<SA
|
|||
{
|
||||
private Span<byte> Span => Data.AsSpan();
|
||||
|
||||
public BlueberrySupportBoard9 SupportBoard = new(block.Data.AsMemory()[0x00..0x38]);
|
||||
public BlueberrySupportBoard9 SupportBoard => new(block.Data.AsMemory(0, 0x38));
|
||||
|
||||
public BlueberryClubRoomStyle9 CurrentStyle { get => (BlueberryClubRoomStyle9)Span[0xE6C]; set => Span[0xE6C] = (byte)value; }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue