Allow HGSS hatch location Global Terminal

https://projectpokemon.org/home/forums/topic/65420-hgss-encounter-met-location-error-global-terminal/

only allow cross-version hatch locations if the egg location indicates it was traded
This commit is contained in:
Kurt 2024-07-06 12:15:44 -05:00
parent 27407aae60
commit 298a0e6291
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ public static class EggHatchLocation4
7, 3, 3, 3, 3, 2, 0, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 6, 6, 6, 6, 6, 2, 2, 2,
3, 3, 6, 6, 6, 6, 6, 2, 6, 2,
2, 2, 2, 2, 2, 2, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,

View file

@ -182,7 +182,7 @@ public static class EncounterVerifier
return GetValid(LEggLocation);
// Version isn't updated when hatching on a different game. Check any game.
if (EggHatchLocation4.IsValidMet4Any(met))
if (pk.EggLocation == Locations.LinkTrade4 && EggHatchLocation4.IsValidMet4Any(met))
return GetValid(LEggLocationTrade);
return GetInvalid(LEggLocationInvalid);
}