Add more usum prep

Closes #1438 ; SM evo table wasn't being loaded as the gameversion was
changed to USUM.
Will see if there's any evo changes soon!
This commit is contained in:
Kurt 2017-09-02 08:41:36 -07:00
parent 229d752d7a
commit 9f8cbf3e46
3 changed files with 9 additions and 2 deletions

View file

@ -70,6 +70,10 @@
case GameVersion.MN:
return GameVersion.SM;
case GameVersion.US:
case GameVersion.UM:
return GameVersion.USUM;
default:
return GameVersion.Invalid;
}

View file

@ -105,8 +105,11 @@
return GameVersion.XY.Contains(g2) || GameVersion.ORAS.Contains(g2);
case GameVersion.SM:
case GameVersion.Gen7:
return g2 == GameVersion.SN || g2 == GameVersion.MN;
case GameVersion.USUM:
return g2 == GameVersion.US || g2 == GameVersion.UM;
case GameVersion.Gen7:
return GameVersion.SM.Contains(g2) || GameVersion.USUM.Contains(g2);
default: return false;
}

View file

@ -129,7 +129,7 @@ namespace PKHeX.Core
// There's always oddballs.
private void FixEvoTreeManually()
{
if (Game == GameVersion.SM)
if (Game == GameVersion.USUM)
FixEvoTreeSM();
}
private void FixEvoTreeSM()