private static void _removeAbortionMotherInHeroPregnancies(Hero hero)
        {
            if (hero == null)
            {
                return;
            }
            PregnancyControlBehavior pregnancyControlInst = Utillty.GetPregnancyControlBehaviorInstance();

            if (pregnancyControlInst == null || !pregnancyControlInst.PreAbortionMap.ContainsKey(hero))
            {
                return;
            }
            object pregnanciesObject = PregCampHelper.GetHeroPregnanciesObject();

            if (pregnanciesObject == null)
            {
                return;
            }
            MethodInfo pregnanciesMethodInfo = PregCampHelper.GetHeroPregnanciesMethodInfo("RemoveAll");

            if (pregnanciesMethodInfo == (MethodInfo)null)
            {
                return;
            }
            Predicate <object> predicate = (Predicate <object>)(pregnancyObj => PregnancyCheckOffspringsToDeliverPatch._removeAbortionMotherPredicate(ref pregnancyControlInst, hero, pregnancyObj));

            Utillty.DebugDisplayMessage("_removeAbortionMotherInHeroPregnancies Success! RemoveNums : " + ((int)pregnanciesMethodInfo.Invoke(pregnanciesObject, new object[1]
            {
                (object)predicate
            })).ToString());
            pregnancyControlInst.CleanPreAbortionList();
        }
        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);
        }