From fbbe9ecd94189f1e461c5409655d6a8d4adb1605 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 7 Dec 2016 08:59:51 -0800 Subject: [PATCH] Add coins displayed as per post 30587882 on vp no idea why gamefreak did it this way; the 0x50C is accessed for get/add but apparently the other is used for the display. just update both --- PKHeX/Saves/SAV7.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/PKHeX/Saves/SAV7.cs b/PKHeX/Saves/SAV7.cs index 9423fddb7..efb385439 100644 --- a/PKHeX/Saves/SAV7.cs +++ b/PKHeX/Saves/SAV7.cs @@ -411,6 +411,18 @@ public uint BP BitConverter.GetBytes(value).CopyTo(Data, Misc + 0x11C); } } + public uint FestaCoinsDisplayed + { + get { return BitConverter.ToUInt32(Data, JoinFestaData + 0x508); } + set + { + if (value > 9999999) value = 9999999; + BitConverter.GetBytes(value).CopyTo(Data, JoinFestaData + 0x508); + + if (TotalFestaCoins < value) + TotalFestaCoins = value; + } + } public uint FestaCoins { get { return BitConverter.ToUInt32(Data, JoinFestaData + 0x50C); } @@ -421,6 +433,8 @@ public uint FestaCoins if (TotalFestaCoins < value) TotalFestaCoins = value; + + FestaCoinsDisplayed = value; } } private uint TotalFestaCoins