Пример #1
0
        public void DoAbortionNotificationAndLog(Hero mother, Hero causedHero)
        {
            TextObject textObject;

            if (mother == Hero.MainHero)
            {
                textObject = new TextObject(Utillty.ET("{=pcm_child_abortion_ntf_self}You just had an abortion."), null);
            }
            else if (mother == Hero.MainHero.Spouse)
            {
                textObject = new TextObject(Utillty.ET("{=pcm_child_abortion_ntf_spouse}Your spouse {MOTHER} just had an abortion."), null);
                textObject.SetTextVariable("MOTHER", (TextObject)mother.Name);
            }
            else if (mother.Clan == Clan.PlayerClan)
            {
                textObject = new TextObject(Utillty.ET("{=pcm_child_abortion_ntf_clan}Your clan member {MOTHER} just had an abortion."), null);
                textObject.SetTextVariable("MOTHER", (TextObject)mother.Name);
            }
            else
            {
                if (causedHero != Hero.MainHero)
                {
                    return;
                }
                textObject = new TextObject(Utillty.ET("{=pcm_child_abortion_ntf_caused}{MOTHER} just had an abortion."), null);
                textObject.SetTextVariable("MOTHER", (TextObject)mother.Name);
            }
            InformationManager.AddQuickInformation(textObject, 0, (BasicCharacterObject)null, "");
            LogEntry.AddLogEntry((LogEntry) new AbortionLogEntry(mother, causedHero), CampaignTime.Now);
        }
Пример #2
0
        public TextObject GetEncyclopediaText()
        {
            TextObject textObject = new TextObject(Utillty.ET("{=pcm_child_abortion_log}{MOTHER.LINK} had an abortion."), null);

            StringHelpers.SetCharacterProperties("MOTHER", this.m_mother.CharacterObject, (TextObject)null, textObject, false);
            return(textObject);
        }
Пример #3
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));
        }
Пример #4
0
        public bool conversation_player_abortion_reply_on_condition()
        {
            Hero       conversationHero = Hero.OneToOneConversationHero;
            TextObject empty            = (TextObject)TextObject.Empty;

            MBTextManager.SetTextVariable("ABORTION_REPLY", ((object)new TextObject(Utillty.ET("{=pcm_abor_reply_1}Ok."), null)).ToString(), false);
            this.RecordPreAbortion(conversationHero, Hero.MainHero);
            return(true);
        }
        private static void _checkNotificationOnChildConceived()
        {
            if (PregnancyChildConceivedPatch.m_mother == null || PregnancyChildConceivedPatch.m_mother == Hero.MainHero || (PregnancyChildConceivedPatch.m_mother == Hero.MainHero.Spouse || PregnancyChildConceivedPatch.m_mother.Clan == Clan.PlayerClan) || PregnancyChildConceivedPatch.m_father != Hero.MainHero)
            {
                return;
            }
            TextObject textObject = new TextObject(Utillty.ET("{=pcm_child_conceived_ntf_father}{MOTHER} has just learned that she is with your child."), null);

            textObject.SetTextVariable("MOTHER", (TextObject)PregnancyChildConceivedPatch.m_mother.Name);
            InformationManager.AddQuickInformation(textObject, 0, (BasicCharacterObject)null, "");
        }
Пример #6
0
        public bool conversation_player_sex_nor_ask_on_condition()
        {
            Hero       mainHero         = Hero.MainHero;
            Hero       conversationHero = Hero.OneToOneConversationHero;
            bool       flag1            = Config.Instance.EnableNotSpouseGaySex || (mainHero == conversationHero.Spouse || mainHero.IsFemale != conversationHero.IsFemale);
            bool       sex   = this.IsEnoughRealtionToSex(mainHero, conversationHero);
            bool       flag2 = this.IsSexEnableToday(mainHero);
            TextObject empty = (TextObject)TextObject.Empty;

            MBTextManager.SetTextVariable("SEX_NOR_ASK", ((object)new TextObject(Utillty.ET("{=pcm_sex_nor_ask_1}Less talking! More f*****g!"), null)).ToString(), false);
            return(!conversationHero.IsWanderer & flag1 & sex & flag2);
        }
        public void OnClickAbortionButton()
        {
            Hero curSelectedMember = UIHelper.GetCurSelectedMember();

            if (curSelectedMember == null)
            {
                return;
            }
            TextObject textObject;

            if (curSelectedMember == Hero.MainHero)
            {
                textObject = new TextObject(Utillty.ET("{=pcm_clan_abortion_ask_msg_self}Do you want to have an abortion?"), null);
            }
            else
            {
                textObject = new TextObject(Utillty.ET("{=pcm_clan_abortion_ask_msg_clan}Do you want {MOTHER} to have an abortion?"), null);
                textObject.SetTextVariable("MOTHER", (TextObject)curSelectedMember.Name);
            }
            UIHelper.InvokeHintViewModelExecuteEndHint((object)this.m_abortionHint);
            InformationManager.ShowInquiry(new InquiryData(((object)new TextObject("", null)).ToString(), ((object)textObject).ToString(), true, true, ((object)new TextObject(Utillty.ET("{=aeouhelq}Yes"), null)).ToString(), ((object)new TextObject(Utillty.ET("{=8OkPHu4f}No"), null)).ToString(), (Action)(() => this._recordPreAbortion()), (Action)null, ""), false);
        }
Пример #8
0
        public bool conversation_player_sex_nor_reply_on_condition()
        {
            Hero       mainHero         = Hero.MainHero;
            Hero       conversationHero = Hero.OneToOneConversationHero;
            TextObject empty            = (TextObject)TextObject.Empty;
            TextObject textObject;

            if (this.IsPreAbortion(mainHero))
            {
                textObject = new TextObject(Utillty.ET("{=pcm_sex_nor_reply_me_abor_1}You are making preparations for an abortion. Not this time."), null);
            }
            else if (this.IsPreAbortion(conversationHero))
            {
                textObject = new TextObject(Utillty.ET("{=pcm_sex_nor_reply_sp_abor_1}I'm making preparations for an abortion. Not this time."), null);
            }
            else if ((bool)mainHero.IsPregnant)
            {
                textObject = new TextObject(Utillty.ET("{=pcm_sex_nor_reply_me_preg_1}You are pregnant. Not this time."), null);
            }
            else if ((bool)conversationHero.IsPregnant)
            {
                textObject = new TextObject(Utillty.ET("{=pcm_sex_nor_reply_sp_preg_1}I'm pregnant. Not this time."), null);
            }
            else if (!this.IsSexEnableDate(mainHero, conversationHero) || !this.IsSexEnableToday(conversationHero))
            {
                textObject = !conversationHero.IsFemale ? new TextObject(Utillty.ET("{=pcm_sex_nor_reply_dis_ma_1}Uhhh... maybe some other time."), null) : new TextObject(Utillty.ET("{=pcm_sex_nor_reply_dis_fe_1}Not this time."), null);
            }
            else
            {
                textObject = new TextObject(Utillty.ET("{=pcm_sex_nor_reply_suc_1}A great idea my {TITLE}."), null);
                textObject.SetTextVariable("TITLE", Hero.MainHero.IsFemale ? "lady" : "lord");
                this.RecordSexInfo(mainHero, conversationHero);
                this.RecordPrePregnantInfo(mainHero, conversationHero);
            }
            MBTextManager.SetTextVariable("SEX_NOR_RESP", ((object)textObject).ToString(), false);
            return(true);
        }
        public PregnancyControlClanVM() : base()
        {
            var to = new TextObject(Utillty.ET("{=pcm_clan_abortion_button_hint}Make current selected member to have an abortion."), null);

            this.AbortionHint = new HintViewModel(to, (string)null);
        }