From 0dc4166e67e3048ceb0fa4b2f104a21541e4cd79 Mon Sep 17 00:00:00 2001 From: CanoeHope <43196464+CanoeHope@users.noreply.github.com> Date: Thu, 2 Jul 2020 22:28:04 -0400 Subject: [PATCH] Add new SWSH blocks (#2918) For anybody interested in this League Card block structure: https://pastebin.com/1gkyHe9Q Also correct the game version record block location. --- PKHeX.Core/Saves/Access/SaveBlockAccessor8SWSH.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/Saves/Access/SaveBlockAccessor8SWSH.cs b/PKHeX.Core/Saves/Access/SaveBlockAccessor8SWSH.cs index 1ee1e2a09..ade8d7f34 100644 --- a/PKHeX.Core/Saves/Access/SaveBlockAccessor8SWSH.cs +++ b/PKHeX.Core/Saves/Access/SaveBlockAccessor8SWSH.cs @@ -81,6 +81,7 @@ public SaveBlockAccessor8SWSH(SAV8SWSH sav) private const uint KMyStatus = 0xf25c070e; // Trainer Details private const uint KFriendLeagueCards = 0x28e707f5; // League Cards received from other players private const uint KNPCLeagueCards = 0xb1c26fb0; // League Cards received from NPCs + private const uint KNPCLeagueCardsR1 = 0xb868ee77; // League Cards received from NPCs on The Isle of Armor // Rental Teams - Objects (Blocks) (Incrementing internal names?) private const uint KRentalTeam1 = 0x149A1DD0; @@ -138,7 +139,8 @@ public SaveBlockAccessor8SWSH(SAV8SWSH sav) public const uint KVolumePokémonCries = 0x1D482A63; // U32 0-10 public const uint KRecordCramorantRobo = 0xB9C0ECFC; // cormorant_robo (Cram-o-matic uses) - public const uint KRecordBattleVersion = 0xBB1DE8EF; // battle_rom_mark (Past-gen Pokémon reset for battling in Ranked) + public const uint KRecordBattleVersion = 0x7A9EF7D9; // battle_rom_mark (Past-gen Pokémon reset for battling in Ranked) + public const uint KRecordSparringTypesCleared = 0xBB1DE8EF; // Number of Types cleared in Restricted Sparring public const uint KOptionTextSpeed = 0x92EB0306; // U32 TextSpeedOption public const uint KOptionBattleEffects = 0xCCC153CD; // U32 OptOut (Show effects by default)