From 0699e27d4f6ce4cb957688c50337c1a8ddb37ad7 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 27 Nov 2016 13:32:02 -0800 Subject: [PATCH] Add ball throw type Not hooked to any editor, just documentation --- PKHeX/Saves/SAV7.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PKHeX/Saves/SAV7.cs b/PKHeX/Saves/SAV7.cs index 297e79ad4..d1a7ff38d 100644 --- a/PKHeX/Saves/SAV7.cs +++ b/PKHeX/Saves/SAV7.cs @@ -344,6 +344,11 @@ public override string OT get { return Util.TrimFromZero(Encoding.Unicode.GetString(Data, TrainerCard + 0x38, 0x1A)); } set { Encoding.Unicode.GetBytes(value.PadRight(13, '\0')).CopyTo(Data, TrainerCard + 0x38); } } + public int BallThrowType + { + get { return Data[0x7A]; } + set { Data[0x7A] = (byte)(value > 8 ? 0 : value); } + } public int M { get { return BitConverter.ToUInt16(Data, Trainer1 + 0x00); } // could be anywhere 0x0-0x7