mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
Transfer legality for HGSS eggs
Faraway place (3002) can be retained on transfer
This commit is contained in:
parent
6378eddc62
commit
c45a9f0428
2 changed files with 8 additions and 5 deletions
|
@ -893,9 +893,12 @@ namespace PKHeX.Core
|
|||
121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 139, 140, //138 ---
|
||||
141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
|
||||
};
|
||||
internal static int[] EggLocations5 =
|
||||
internal static readonly int[] EggLocations5 =
|
||||
{
|
||||
30002, 60002, 60003
|
||||
30002, // Link Trade (NPC)
|
||||
30003, // Link Trade
|
||||
60002, // Daycare
|
||||
60003, // Breeder (NPC)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -443,7 +443,7 @@ namespace PKHeX.Core
|
|||
{
|
||||
switch (GenNumber)
|
||||
{
|
||||
case 4: return Species == 490 && Egg_Location == 3001 || Legal.EggLocations4.Contains(Egg_Location);
|
||||
case 4: return Legal.EggLocations4.Contains(Egg_Location) || (Species == 490 && Egg_Location == 3001) || (Egg_Location == 3002 && HGSS); // faraway
|
||||
case 5: return Legal.EggLocations5.Contains(Egg_Location);
|
||||
case 6:
|
||||
case 7: return Legal.EggLocations.Contains(Egg_Location);
|
||||
|
@ -458,9 +458,9 @@ namespace PKHeX.Core
|
|||
get
|
||||
{
|
||||
if (!WasEgg) return false;
|
||||
switch(GenNumber)
|
||||
switch (GenNumber)
|
||||
{
|
||||
case 4: return Legal.GiftEggLocation4.Contains(Egg_Location);
|
||||
case 4: return Legal.GiftEggLocation4.Contains(Egg_Location) || (Egg_Location == 3002 && HGSS); // faraway
|
||||
case 5: return Egg_Location == 60003;
|
||||
case 6: return Egg_Location == 60004;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue