From d65338557eab9d715ae03e1db53419de53e8189a Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 24 Mar 2020 11:44:54 -0700 Subject: [PATCH] Add hp stat --- PKHeX.Core/Saves/Substructures/Gen7/GP1.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/Saves/Substructures/Gen7/GP1.cs b/PKHeX.Core/Saves/Substructures/Gen7/GP1.cs index b274831fb..8c9daeefc 100644 --- a/PKHeX.Core/Saves/Substructures/Gen7/GP1.cs +++ b/PKHeX.Core/Saves/Substructures/Gen7/GP1.cs @@ -50,7 +50,8 @@ public static byte[] GetBlank() public int CP => BitConverter.ToInt32(Data, 0x2C); public float LevelF => BitConverter.ToSingle(Data, 0x30); public int Level => Math.Max(1, (int)Math.Round(LevelF)); - + public int Stat_HP => BitConverter.ToInt32(Data, 0x34); + // geolocation data 0x38-0x47? public float HeightF => BitConverter.ToSingle(Data, 0x48); public float WeightF => BitConverter.ToSingle(Data, 0x4C);