Exemplo n.º 1
0
        public override void RefreshValues()
        {
            base.RefreshValues();

            if (this._hero.IsPregnant)
            {
                this.PregnancyStatus = new TextObject("{=suems_doctor_satus_pregnancy_get}Pregnant", null).ToString();
            }
            else
            {
                this.PregnancyStatus = "";
            }

            if (Hero.MainHero.Spouse == this._hero)
            {
                this.SpousePrimaryStatus = new TextObject("{=suems_doctor_satus_primary_spouse}Primary", null).ToString();
            }
            else
            {
                this.SpousePrimaryStatus = "";
            }

            this.Name = this._hero.Name.ToString();
            this.CurrentActionText = ((this._hero != Hero.MainHero) ? CampaignUIHelper.GetHeroBehaviorText(this._hero) : "");
            if (this._hero.PartyBelongedToAsPrisoner != null)
            {
                TextObject textObject = new TextObject("{=a8nRxITn}Prisoner of {PARTY_NAME}", null);
                textObject.SetTextVariable("PARTY_NAME", this._hero.PartyBelongedToAsPrisoner.Name);
                this.LocationText = textObject.ToString();
            }
            else
            {
                this.LocationText = ((this._hero != Hero.MainHero) ? StringHelpers.GetLastKnownLocation(this._hero).ToString() : " ");
            }
        }
Exemplo n.º 2
0
 public override void RefreshValues()
 {
     base.RefreshValues();
     this.Name = this._hero.Name.ToString();
     this.CurrentActionText = ((this._hero != Hero.MainHero) ? CampaignUIHelper.GetHeroBehaviorText(this._hero) : "");
     if (this._hero.PartyBelongedToAsPrisoner != null)
     {
         TextObject textObject = new TextObject("{=a8nRxITn}Prisoner of {PARTY_NAME}", null);
         textObject.SetTextVariable("PARTY_NAME", this._hero.PartyBelongedToAsPrisoner.Name);
         this.LocationText = textObject.ToString();
     }
     else
     {
         this.LocationText = ((this._hero != Hero.MainHero) ? StringHelpers.GetLastKnownLocation(this._hero).ToString() : " ");
     }
 }