From cc509de83c7bbdbbcb6a3205fdc775b32c97b93f Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 14 Jul 2018 21:55:45 -0700 Subject: [PATCH] Add lgpe properties --- PKHeX.Core/Game/GameUtil.cs | 2 ++ PKHeX.Core/PKM/PKM.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/PKHeX.Core/Game/GameUtil.cs b/PKHeX.Core/Game/GameUtil.cs index 2d4f2f5c3..2ea155d5c 100644 --- a/PKHeX.Core/Game/GameUtil.cs +++ b/PKHeX.Core/Game/GameUtil.cs @@ -76,6 +76,8 @@ public static GameVersion GetMetLocationVersionGroup(GameVersion Version) return SM; case US: case UM: return USUM; + case GP: case GE: + return GG; default: return Invalid; diff --git a/PKHeX.Core/PKM/PKM.cs b/PKHeX.Core/PKM/PKM.cs index 592adc4bc..219785fe2 100644 --- a/PKHeX.Core/PKM/PKM.cs +++ b/PKHeX.Core/PKM/PKM.cs @@ -289,6 +289,7 @@ private void SetID7(int sid7, int tid7) public bool AO => Version == (int)GameVersion.AS || Version == (int)GameVersion.OR; public bool SM => Version == (int)GameVersion.SN || Version == (int)GameVersion.MN; public bool USUM => Version == (int)GameVersion.US || Version == (int)GameVersion.UM; + public bool GG => Version == (int)GameVersion.GP || Version == (int)GameVersion.GE; protected bool PtHGSS => Pt || HGSS; public bool VC => VC1 || VC2; public bool Gen7 => Version >= 30 && Version <= 33;