/// <summary> /// Force hatches a PKM by applying the current species name and a valid Met Location from the origin game. /// </summary> /// <param name="pkm">PKM to apply hatch details to</param> /// <remarks> /// <see cref="PKM.IsEgg"/> is not checked; can be abused to re-hatch already hatched <see cref="PKM"/> inputs. /// <see cref="PKM.MetDate"/> is not modified; must be updated manually if desired. /// </remarks> private static void ForceHatchPKM(PKM pkm) { pkm.IsEgg = false; pkm.SetNickname(); pkm.CurrentFriendship = pkm.PersonalInfo.BaseFriendship; var loc = EncounterSuggestion.GetSuggestedEggMetLocation(pkm); if (loc >= 0) { pkm.Met_Location = loc; } if (pkm.Gen6) { pkm.SetHatchMemory6(); } }