public static bool AdoptFrankenSim(Sim creator, Sim frankenSim) { //if (creator.Household.CanAddSpeciesToHousehold(CASAgeGenderFlags.Human)) { string str = "AdoptFrankenSim"; InventingSkill skill = creator.SkillManager.GetSkill <InventingSkill>(SkillNames.Inventing); if ((skill != null) && skill.OppKnowFrankensimRecipeCompleted) { str = "AdoptFrankenSimAgain"; } SimDescription simDescription = frankenSim.SimDescription; if (TwoButtonDialog.Show(Localization.LocalizeString("Gameplay/Objects/HobbiesSkills/Inventing/InventionWorkbench:" + str, new object[] { creator }), Localization.LocalizeString("Gameplay/Objects/HobbiesSkills/Inventing/InventionWorkbench:AdoptFrankenSimYes", new object[0x0]), Localization.LocalizeString("Gameplay/Objects/HobbiesSkills/Inventing/InventionWorkbench:AdoptFrankenSimNo", new object[0x0]))) { VisitSituation situation = VisitSituation.FindVisitSituationInvolvingGuest(frankenSim); if (situation != null) { situation.Exit(); } Household.NpcHousehold.Remove(simDescription); creator.Household.Add(simDescription); string str2 = StringInputDialog.Show(Localization.LocalizeString("Gameplay/Objects/HobbiesSkills/Inventing/InventionWorkbench:AdoptFrankenSimNameTitle", new object[0x0]), Localization.LocalizeString("Gameplay/Objects/HobbiesSkills/Inventing/InventionWorkbench:AdoptFrankenSimNamePrompt", new object[] { creator }), frankenSim.FirstName); if (!string.IsNullOrEmpty(str2)) { simDescription.FirstName = str2; } frankenSim.OnBecameSelectable(); return(true); } Household.NpcHousehold.Remove(simDescription); Household household = Household.Create(); household.Name = simDescription.LastName; household.Add(simDescription); household.FindSuitableVirtualHome(); creator.ShowTNSIfSelectable(Localization.LocalizeString("Gameplay/Objects/HobbiesSkills/Inventing/InventionWorkbench:SimBotNotAdopted", new object[] { creator }), StyledNotification.NotificationStyle.kGameMessagePositive, frankenSim.ObjectId); Sim.MakeSimGoHome(frankenSim, false); return(false); } /* * string message = Localization.LocalizeString("Gameplay/Objects/HobbiesSkills/Inventing/InventionWorkbench:AdoptFrankenFullHousehold", new object[] { creator }); * creator.ShowTNSIfSelectable(message, StyledNotification.NotificationStyle.kGameMessageNegative); * Sim.MakeSimGoHome(frankenSim, false); * return false; */ }