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:
Kurt 2024-03-03 23:40:55 -06:00
parent 40cea0c858
commit 59ad4d749f
2 changed files with 3 additions and 3 deletions

View file

@ -212,7 +212,7 @@ public static class GameUtil
Gen7 => version is SN or MN or US or UM or SM or USUM,
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,
BDSP => version is BD or SP,

View file

@ -131,7 +131,7 @@ public static class EntityContextExtensions
/// </summary>
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.BD or GameVersion.SP => Gen8b,
_ => (EntityContext)version.GetGeneration(),