mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-09 00:25:55 -05:00
Misc fixes/updates
Fix crystal lacking met level<->current level checks Fix met location loading for gen2 saves (gen7 sav loaded gen1/2 pkm -> load gen2 sav) refactor some logic with pattern matching/consistent method names
This commit is contained in:
@@ -1261,10 +1261,11 @@ private void UpdateSpecies(object sender, EventArgs e)
|
||||
private void UpdateOriginGame(object sender, EventArgs e)
|
||||
{
|
||||
GameVersion Version = (GameVersion)WinFormsUtil.GetIndex(CB_GameOrigin);
|
||||
|
||||
// check if differs
|
||||
GameVersion newTrack = GameUtil.GetMetLocationVersionGroup(Version);
|
||||
if (pkm.Format < 3)
|
||||
if (newTrack == GameVersion.GSC && pkm.Format >= 7)
|
||||
newTrack = GameVersion.USUM;
|
||||
else if (pkm.Format < 3)
|
||||
newTrack = GameVersion.GSC;
|
||||
if (newTrack != origintrack)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user