From 40b3887bd00dc79ebd7c024a1b620ce3f51d1344 Mon Sep 17 00:00:00 2001 From: pokecal Date: Fri, 3 Mar 2017 03:36:02 +0900 Subject: [PATCH] add Vivillon FormValue This value also once set when newgame start, depend on 3DS location settings. --- PKHeX/Saves/SAV7.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PKHeX/Saves/SAV7.cs b/PKHeX/Saves/SAV7.cs index bbead9aff..4a7b734a2 100644 --- a/PKHeX/Saves/SAV7.cs +++ b/PKHeX/Saves/SAV7.cs @@ -495,6 +495,11 @@ public uint BP BitConverter.GetBytes(value).CopyTo(Data, Misc + 0x11C); } } + public int Vivillon + { + get { return Data[Misc + 0x130] & 0x1F; } + set { Data[Misc + 0x130] = (byte)((Data[Misc + 0x130] & ~0x1F) | (value & 0x1F)); } + } public uint UsedFestaCoins { get { return BitConverter.ToUInt32(Data, 0x69C98); }