From d84ceabe937bbe3c463c72109d947510887f2e03 Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 6 Dec 2018 22:58:35 -0800 Subject: [PATCH] speculate on unused stat there's a value in trainer pokes that gets set to an unused pkm byte this byte is fetched in the stat/cp calc, but is never used (param unused) plans for future? it's right next to friendship in trpoke7b, maybe there might be another stat amp? https://www.serebii.net/magikarpjump/trainerrank.shtml stronger trainer => stronger monz /speculation --- PKHeX.Core/PKM/PB7.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/PKM/PB7.cs b/PKHeX.Core/PKM/PB7.cs index bd1b56abd..56766738f 100644 --- a/PKHeX.Core/PKM/PB7.cs +++ b/PKHeX.Core/PKM/PB7.cs @@ -331,7 +331,7 @@ namespace PKHeX.Core public override int Met_Year { get => Data[0xD4]; set => Data[0xD4] = (byte)value; } public override int Met_Month { get => Data[0xD5]; set => Data[0xD5] = (byte)value; } public override int Met_Day { get => Data[0xD6]; set => Data[0xD6] = (byte)value; } - public int _0xD7 { get => Data[0xD7]; set => Data[0xD7] = (byte)value; } + public int Rank { get => Data[0xD7]; set => Data[0xD7] = (byte)value; } // unused but fetched for stat calcs, and set for trpoke data? public override int Egg_Location { get => BitConverter.ToUInt16(Data, 0xD8); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0xD8); } public override int Met_Location { get => BitConverter.ToUInt16(Data, 0xDA); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0xDA); } public override int Ball { get => Data[0xDC]; set => Data[0xDC] = (byte)value; }