fix gs met location errors

override current location if format is GB
update GS transfer location ID
This commit is contained in:
Kurt 2017-11-20 09:11:37 -08:00
parent e5361c6c0f
commit 1e5fc96e8e
2 changed files with 5 additions and 2 deletions

View file

@ -426,7 +426,7 @@ namespace PKHeX.Core
Move2_PP = Move2_PP,
Move3_PP = Move3_PP,
Move4_PP = Move4_PP,
Met_Location = 30004,
Met_Location = 30017,
Gender = Gender,
IsNicknamed = false,
AltForm = AltForm,

View file

@ -1256,6 +1256,8 @@ namespace PKHeX.WinForms.Controls
// check if differs
GameVersion newTrack = GameUtil.GetMetLocationVersionGroup(Version);
if (pkm.Format < 3)
newTrack = GameVersion.GSC;
if (newTrack != origintrack)
{
var met_list = GameInfo.GetLocationList(Version, pkm.Format, egg: false);
@ -1266,11 +1268,12 @@ namespace PKHeX.WinForms.Controls
if (fieldsLoaded)
{
int metLoc = 0; // transporter or pal park for past gen pkm
if (pkm.Format >= 7) // check transfer scenarios
switch (newTrack)
{
case GameVersion.GO: metLoc = 30012; break;
case GameVersion.RBY: metLoc = 30013; break;
case GameVersion.GSC: metLoc = 30004; break;
case GameVersion.GSC: metLoc = 30017; break;
}
if (metLoc != 0)
CB_MetLocation.SelectedValue = metLoc;