From 62d8abb69cf3dc0ceadd2df3e5c83e8ba9cb6560 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 26 Sep 2018 20:08:25 -0700 Subject: [PATCH] Update frlg flag/var offset https://www.pokecommunity.com/showthread.php?t=349936 https://projectpokemon.org/home/forums/topic/47715-help-frlg-flags-research/ --- PKHeX.Core/Saves/SAV3.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.Core/Saves/SAV3.cs b/PKHeX.Core/Saves/SAV3.cs index b6db8871c..29c1c8a5a 100644 --- a/PKHeX.Core/Saves/SAV3.cs +++ b/PKHeX.Core/Saves/SAV3.cs @@ -155,7 +155,7 @@ public SAV3(byte[] data = null, GameVersion versionOverride = GameVersion.Any) OFS_PouchTMHM = BlockOfs[1] + 0x0464; OFS_PouchBerry = BlockOfs[1] + 0x054C; SeenFlagOffsets = new[] { PokeDex + 0x44, BlockOfs[1] + 0x5F8, BlockOfs[4] + 0xB98 }; - EventFlag = BlockOfs[2] + 0x000; + EventFlag = BlockOfs[1] + 0xEE0; EventConst = EventFlag + (EventFlagMax / 8); Daycare = BlockOfs[4] + 0x100; break; @@ -261,7 +261,7 @@ protected override byte[] Write(bool DSV) public override int OTLength => 7; public override int NickLength => 10; public override int MaxMoney => 999999; - protected override int EventFlagMax => 8 * (RS ? 288 : 300); // 0x900 RS, else 0x960 + protected override int EventFlagMax => 8 * (E ? 300 : 288); // 0x960 E, else 0x900 protected override int EventConstMax => EventConst > 0 ? 0x100 : int.MinValue; public override bool HasParty => true;