mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-06 13:40:50 -05:00
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:
parent
229d752d7a
commit
9f8cbf3e46
|
|
@ -70,6 +70,10 @@ public static GameVersion GetMetLocationVersionGroup(GameVersion Version)
|
|||
case GameVersion.MN:
|
||||
return GameVersion.SM;
|
||||
|
||||
case GameVersion.US:
|
||||
case GameVersion.UM:
|
||||
return GameVersion.USUM;
|
||||
|
||||
default:
|
||||
return GameVersion.Invalid;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,8 +105,11 @@ public static bool Contains(this GameVersion g1, GameVersion g2)
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ public EvolutionTree(byte[][] data, GameVersion game, PersonalTable personal, in
|
|||
// There's always oddballs.
|
||||
private void FixEvoTreeManually()
|
||||
{
|
||||
if (Game == GameVersion.SM)
|
||||
if (Game == GameVersion.USUM)
|
||||
FixEvoTreeSM();
|
||||
}
|
||||
private void FixEvoTreeSM()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user