mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Yield SP eggs in encounter db, detect "link trade" correctly
This commit is contained in:
parent
2cb3b61e48
commit
27e899ffdd
2 changed files with 2 additions and 2 deletions
|
@ -373,7 +373,7 @@ namespace PKHeX.Core
|
|||
/// <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 @@ namespace PKHeX.Core
|
|||
|
||||
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,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue