mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-29 23:40:27 +00:00
Add handling for lgpe lumped in Contains/Gen check
ty Oval Lenin (discord) Co-Authored-By: Ivan <15915901+ivanlonel@users.noreply.github.com>
This commit is contained in:
parent
40cea0c858
commit
59ad4d749f
2 changed files with 3 additions and 3 deletions
|
@ -210,9 +210,9 @@ public static class GameUtil
|
||||||
SM => version is SN or MN,
|
SM => version is SN or MN,
|
||||||
USUM => version is US or UM,
|
USUM => version is US or UM,
|
||||||
Gen7 => version is SN or MN or US or UM or SM or USUM,
|
Gen7 => version is SN or MN or US or UM or SM or USUM,
|
||||||
|
|
||||||
GG => version is GP or GE,
|
GG => version is GP or GE,
|
||||||
Gen7b => version is GP or GE or GO,
|
Gen7b => version is GP or GE or GO or GG,
|
||||||
|
|
||||||
SWSH => version is SW or SH,
|
SWSH => version is SW or SH,
|
||||||
BDSP => version is BD or SP,
|
BDSP => version is BD or SP,
|
||||||
|
|
|
@ -131,7 +131,7 @@ public static class EntityContextExtensions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static EntityContext GetContext(this GameVersion version) => version switch
|
public static EntityContext GetContext(this GameVersion version) => version switch
|
||||||
{
|
{
|
||||||
GameVersion.GP or GameVersion.GE or GameVersion.GO => Gen7b,
|
GameVersion.GP or GameVersion.GE or GameVersion.GO or GameVersion.GG or GameVersion.Gen7b => Gen7b,
|
||||||
GameVersion.PLA => Gen8a,
|
GameVersion.PLA => Gen8a,
|
||||||
GameVersion.BD or GameVersion.SP => Gen8b,
|
GameVersion.BD or GameVersion.SP => Gen8b,
|
||||||
_ => (EntityContext)version.GetGeneration(),
|
_ => (EntityContext)version.GetGeneration(),
|
||||||
|
|
Loading…
Reference in a new issue