private static bool _removeAbortionMotherPredicate(
            ref PregnancyControlBehavior pregnancyControlInst,
            Hero hero,
            object heroPregnancyObj)
        {
            if (heroPregnancyObj == null)
            {
                return(false);
            }
            Hero pregnancyMother = PregCampHelper.GetPregnancyMother(heroPregnancyObj);

            if (pregnancyMother != hero)
            {
                return(false);
            }
            pregnancyControlInst.DoAbortionNotificationAndLog(pregnancyMother, pregnancyControlInst.PreAbortionMap[pregnancyMother]);
            return(true);
        }
        private static void _changeFatherInCurPregnancy()
        {
            if (PregnancyChildConceivedPatch.m_mother == null || PregnancyChildConceivedPatch.m_father == null)
            {
                return;
            }
            IEnumerable pregnanciesObject = (IEnumerable)PregCampHelper.GetHeroPregnanciesObject();

            if (pregnanciesObject == null)
            {
                return;
            }
            foreach (object pregnancyObj in pregnanciesObject)
            {
                if (PregCampHelper.GetPregnancyMother(pregnancyObj) == PregnancyChildConceivedPatch.m_mother)
                {
                    PregCampHelper.SetPregnancyFather(pregnancyObj, PregnancyChildConceivedPatch.m_father);
                    Utillty.DebugDisplayMessage("_changeFatherInCurPregnancy Make Pregnant! Mother : " + ((object)PregnancyChildConceivedPatch.m_mother.Name).ToString() + " Father : " + ((object)PregnancyChildConceivedPatch.m_father.Name).ToString());
                    break;
                }
            }
        }
        public static bool IsInPregnancies(Hero mother, Hero father)
        {
            if (mother == null && father == null)
            {
                return(false);
            }
            IEnumerable pregnanciesObject = (IEnumerable)PregCampHelper.GetHeroPregnanciesObject();

            if (pregnanciesObject == null)
            {
                return(false);
            }
            bool flag = false;

            foreach (object pregnancyObj in pregnanciesObject)
            {
                if ((uint)((mother == null ? 1 : (PregCampHelper.GetPregnancyMother(pregnancyObj) == mother ? 1 : 0)) & (father == null ? 1 : (PregCampHelper.GetPregnancyFather(pregnancyObj) == father ? 1 : 0))) > 0U)
                {
                    flag = true;
                    break;
                }
            }
            return(flag);
        }