From e5c4bef4b6c375381fccd680f5443a6b251d86d8 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 16 Sep 2024 09:12:21 -0500 Subject: [PATCH] Add computed BaseEXP to SV personal info https://github.com/kwsch/pkNX/commit/51fe9491eca2c53fb11bc46123bebda54f934baa --- .../PersonalInfo/Info/PersonalInfo9SV.cs | 4 ++-- .../Resources/byte/personal/personal_sv | Bin 108224 -> 113920 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.Core/PersonalInfo/Info/PersonalInfo9SV.cs b/PKHeX.Core/PersonalInfo/Info/PersonalInfo9SV.cs index 2a5d921cd..e52963e75 100644 --- a/PKHeX.Core/PersonalInfo/Info/PersonalInfo9SV.cs +++ b/PKHeX.Core/PersonalInfo/Info/PersonalInfo9SV.cs @@ -8,7 +8,7 @@ namespace PKHeX.Core; /// public sealed class PersonalInfo9SV(Memory Raw) : PersonalInfo, IPersonalAbility12H, IPersonalInfoTM, IPermitRecord { - public const int SIZE = 0x4C; + public const int SIZE = 0x50; private Span Data => Raw.Span; public override byte[] Write() => Raw.ToArray(); @@ -54,7 +54,6 @@ public sealed class PersonalInfo9SV(Memory Raw) : PersonalInfo, IPersonalA public ushort RegionalFormIndex { get => (byte)ReadUInt16LittleEndian(Data[0x2A..]); set => WriteUInt16LittleEndian(Data[0x2A..], value); } public override int EscapeRate { get => 0; set { } } - public override int BaseEXP { get => 0; set { } } /// /// Gets the Form that any offspring will hatch with, assuming it is holding an Everstone. @@ -145,4 +144,5 @@ public sealed class PersonalInfo9SV(Memory Raw) : PersonalInfo, IPersonalA public byte DexKitakami { get => Data[0x4A]; set => Data[0x4A] = value; } public byte DexBlueberry { get => Data[0x4B]; set => Data[0x4B] = value; } + public override int BaseEXP { get => ReadUInt16LittleEndian(Data[0x4C..]); set => WriteUInt16LittleEndian(Data[0x4C..], (ushort)value); } } diff --git a/PKHeX.Core/Resources/byte/personal/personal_sv b/PKHeX.Core/Resources/byte/personal/personal_sv index ab38d74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