mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-25 05:45:10 -05:00
Yield SP eggs in encounter db, detect "link trade" correctly
This commit is contained in:
@@ -373,7 +373,7 @@ public static void ForceHatchPKM(this PKM pk, bool reHatch = false)
|
||||
/// <param name="dest">Game the egg is currently present on</param>
|
||||
public static void SetEggMetData(this PKM pk, GameVersion origin, GameVersion dest)
|
||||
{
|
||||
bool traded = origin == dest;
|
||||
bool traded = origin != dest;
|
||||
var today = pk.MetDate = DateTime.Today;
|
||||
pk.Egg_Location = EncounterSuggestion.GetSuggestedEncounterEggLocationEgg(pk.Generation, origin, traded);
|
||||
pk.EggMetDate = today;
|
||||
|
||||
@@ -200,7 +200,7 @@ public static bool Contains(this GameVersion g1, GameVersion g2)
|
||||
|
||||
SWSH => g2 is SW or SH,
|
||||
BDSP => g2 is BD or SP,
|
||||
Gen8 => SWSH.Contains(g2) || BD.Contains(g2),
|
||||
Gen8 => SWSH.Contains(g2) || BDSP.Contains(g2),
|
||||
_ => false,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user