From d15b0b439c0a947ab584791a039416058a5a295b Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 2 May 2018 22:28:41 -0700 Subject: [PATCH] Show SID for vc->7+ #1923 sometimes (hacked data) can have SID values; don't exclusively follow the GB era TID only rule. --- PKHeX.WinForms/Controls/PKM Editor/TrainerID.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Controls/PKM Editor/TrainerID.cs b/PKHeX.WinForms/Controls/PKM Editor/TrainerID.cs index 81f017271..63fdccd41 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/TrainerID.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/TrainerID.cs @@ -37,7 +37,15 @@ namespace PKHeX.WinForms.Controls public void LoadIDValues(ITrainerID tr) { Trainer = tr; - int format = tr is PKM p ? p.GenNumber : tr is SaveFile s ? s.Generation : -1; + int format; + if (tr is PKM p) + { + format = p.GenNumber; + if (format < 3 && p.Format >= 7) // VC + format = 4; // use TID/SID 16bit style + } + else + format = tr is SaveFile s ? s.Generation : -1; SetFormat(format); LoadValues(); }