diff --git a/PKHeX.Core/Legality/Encounters/Generator/EncounterSlotGenerator.cs b/PKHeX.Core/Legality/Encounters/Generator/EncounterSlotGenerator.cs index 1ff11af1e..929839712 100644 --- a/PKHeX.Core/Legality/Encounters/Generator/EncounterSlotGenerator.cs +++ b/PKHeX.Core/Legality/Encounters/Generator/EncounterSlotGenerator.cs @@ -10,6 +10,7 @@ using static PKHeX.Core.Encounters5; using static PKHeX.Core.Encounters6; using static PKHeX.Core.Encounters7; +using static PKHeX.Core.Encounters7b; namespace PKHeX.Core { @@ -500,6 +501,9 @@ private static IEnumerable GetEncounterTable(PKM pkm, GameVersion case GameVersion.US: return SlotsUS; case GameVersion.UM: return SlotsUM; + case GameVersion.GP: return SlotsGP; + case GameVersion.GE: return SlotsGE; + default: return Enumerable.Empty(); } } diff --git a/PKHeX.Core/Legality/Encounters/Generator/EncounterStaticGenerator.cs b/PKHeX.Core/Legality/Encounters/Generator/EncounterStaticGenerator.cs index 7b0c55e28..31bd58b00 100644 --- a/PKHeX.Core/Legality/Encounters/Generator/EncounterStaticGenerator.cs +++ b/PKHeX.Core/Legality/Encounters/Generator/EncounterStaticGenerator.cs @@ -9,6 +9,7 @@ using static PKHeX.Core.Encounters5; using static PKHeX.Core.Encounters6; using static PKHeX.Core.Encounters7; +using static PKHeX.Core.Encounters7b; namespace PKHeX.Core { @@ -363,6 +364,9 @@ private static IEnumerable GetEncounterStaticTable(PKM pkm, Gam case GameVersion.US: return StaticUS; case GameVersion.UM: return StaticUM; + case GameVersion.GP: return StaticGP; + case GameVersion.GE: return StaticGE; + default: return Enumerable.Empty(); } } diff --git a/PKHeX.Core/Legality/Encounters/Generator/EncounterTradeGenerator.cs b/PKHeX.Core/Legality/Encounters/Generator/EncounterTradeGenerator.cs index 682143d51..620ee1ec4 100644 --- a/PKHeX.Core/Legality/Encounters/Generator/EncounterTradeGenerator.cs +++ b/PKHeX.Core/Legality/Encounters/Generator/EncounterTradeGenerator.cs @@ -77,7 +77,7 @@ private static IEnumerable GetEncounterTradeTable(PKM pkm) case 4: return pkm.HGSS ? Encounters4.TradeGift_HGSS : Encounters4.TradeGift_DPPt; case 5: return pkm.B2W2 ? Encounters5.TradeGift_B2W2 : Encounters5.TradeGift_BW; case 6: return pkm.XY ? Encounters6.TradeGift_XY : Encounters6.TradeGift_AO; - case 7: return pkm.SM ? Encounters7.TradeGift_SM : Encounters7.TradeGift_USUM; + case 7: return pkm.GG ? Encounters7b.TradeGift_GG : pkm.SM ? Encounters7.TradeGift_SM : Encounters7.TradeGift_USUM; } return null; } diff --git a/PKHeX.Core/Legality/Encounters/Generator/MysteryGiftGenerator.cs b/PKHeX.Core/Legality/Encounters/Generator/MysteryGiftGenerator.cs index 6af8624b8..a7b4968fc 100644 --- a/PKHeX.Core/Legality/Encounters/Generator/MysteryGiftGenerator.cs +++ b/PKHeX.Core/Legality/Encounters/Generator/MysteryGiftGenerator.cs @@ -16,7 +16,7 @@ public static IEnumerable GetPossible(PKM pkm) public static IEnumerable GetPossible(PKM pkm, IReadOnlyList vs) { - var table = GetTable(pkm.GenNumber); + var table = GetTable(pkm.GenNumber, pkm); return table.Where(wc => vs.Any(dl => dl.Species == wc.Species)); } @@ -28,12 +28,12 @@ public static IEnumerable GetValidGifts(PKM pkm) case 4: return GetMatchingPCD(pkm, MGDB_G4); case 5: return GetMatchingPGF(pkm, MGDB_G5); case 6: return GetMatchingWC6(pkm, MGDB_G6); - case 7: return GetMatchingWC7(pkm, MGDB_G7); + case 7: return pkm.GG ? GetMatchingWC7(pkm, MGDB_G7GG) : GetMatchingWC7(pkm, MGDB_G7); default: return Enumerable.Empty(); } } - private static IEnumerable GetTable(int generation) + private static IEnumerable GetTable(int generation, PKM pkm) { switch (generation) { @@ -41,7 +41,7 @@ private static IEnumerable GetTable(int generation) case 4: return MGDB_G4; case 5: return MGDB_G5; case 6: return MGDB_G6; - case 7: return MGDB_G7; + case 7: return pkm.GG ? MGDB_G7GG : MGDB_G7; default: return Enumerable.Empty(); } } diff --git a/PKHeX.WinForms/Resources/img/Shiny Pokemon Sprites/808s.png b/PKHeX.WinForms/Resources/img/Shiny Pokemon Sprites/808s.png index 012917a27..981aa19e8 100644 Binary files a/PKHeX.WinForms/Resources/img/Shiny Pokemon Sprites/808s.png and b/PKHeX.WinForms/Resources/img/Shiny Pokemon Sprites/808s.png differ diff --git a/PKHeX.WinForms/Resources/img/Shiny Pokemon Sprites/809s.png b/PKHeX.WinForms/Resources/img/Shiny Pokemon Sprites/809s.png index ec6a8e678..577c74402 100644 Binary files a/PKHeX.WinForms/Resources/img/Shiny Pokemon Sprites/809s.png and b/PKHeX.WinForms/Resources/img/Shiny Pokemon Sprites/809s.png differ