コード例 #1
0
        public bool conversation_player_abortion_ask_on_condition()
        {
            Hero       conversationHero = Hero.OneToOneConversationHero;
            TextObject empty            = (TextObject)TextObject.Empty;

            MBTextManager.SetTextVariable("ABORTION_ASK", ((object)new TextObject(Utillty.ET("{=pcm_abor_ask_1}I don't want our unborn child anymore."), null)).ToString(), false);
            return(PregCampHelper.IsInPregnancies(conversationHero, Hero.MainHero) && !this.IsPreAbortion(conversationHero));
        }
コード例 #2
0
 public void RecordPreAbortion(Hero mother, Hero caused)
 {
     if (mother == null || !PregCampHelper.IsInPregnancies(mother, (Hero)null) || this.m_preAbortionMap.ContainsKey(mother))
     {
         return;
     }
     this.m_preAbortionMap.Add(mother, caused);
     Utillty.DebugDisplayMessage("_recordAbortion Success! Mother : " + ((object)mother.Name).ToString());
 }
コード例 #3
0
        private bool _isShowAbortionButton()
        {
            if (!UIHelper.IsSelectedMember())
            {
                return(false);
            }
            Hero curSelectedMember = UIHelper.GetCurSelectedMember();

            if (curSelectedMember == null)
            {
                return(false);
            }
            PregnancyControlBehavior behaviorInstance = Utillty.GetPregnancyControlBehaviorInstance();

            return(behaviorInstance != null && PregCampHelper.IsInPregnancies(curSelectedMember, (Hero)null) && !behaviorInstance.IsPreAbortion(curSelectedMember));
        }