Fix Egg-Set bugs

Thanks StarFisherX!
This commit is contained in:
Kurt
2016-01-01 21:18:23 -08:00
parent ace267d554
commit 872f2a940c
2 changed files with 2 additions and 2 deletions

View File

@@ -663,7 +663,7 @@ private void UpdateEgg(int Day, int Month, int Year)
Egg_Location = 30002;
Egg_Day = Day;
Egg_Month = Month;
Egg_Year = Year;
Egg_Year = Year - 2000;
}
private void TradeGeoLocation(int GeoCountry, int GeoRegion)
{

View File

@@ -2341,7 +2341,7 @@ public byte[] preparepkx(bool click = true)
pk6.Met_Location = Util.getIndex(CB_MetLocation);
if (pk6.IsEgg && pk6.Met_Location == 0) // If still an egg, it has no hatch location/date. Zero it!
pk6.Egg_Year = pk6.Egg_Month = pk6.Egg_Day = 0;
pk6.Met_Year = pk6.Met_Month = pk6.Met_Day = 0;
// 0xD7 Unknown