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)); }
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()); }
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)); }