Exemple #1
0
        public override string ApplyNameSuffix(string suffix)
        {
            if (!IsBonded)
            {
                return("");
            }

            MercenarySpec spec = GetEvoSpec() as MercenarySpec;

            if (null != spec && null != spec.Stages)
            {
                string title = GetMercTitle(spec, m_Stage); //UOSI - saves us calling this function 3 times

                if (suffix.Length == 0)
                {
                    suffix = title;
                }
                else if (suffix != title)
                {
                    suffix = String.Concat(suffix, " ", title);
                }
            }

            return(base.ApplyNameSuffix(suffix));
        }
Exemple #2
0
		private string GetMercTitle( MercenarySpec spec, int stage )
		{
			string title = "";

			if ( 0 <= m_Stage && m_FinalStage >= m_Stage )
			{
				if ( stage == m_FinalStage || stage == m_FinalStage - 1 )
					title = ", " + spec.Stages[ stage ].Title + " of " + ControlMaster.Name;
				else
					title = spec.Stages[ stage ].Title;
			}

			return title;
		}
Exemple #3
0
		public override string ApplyNameSuffix( string suffix )
		{
			if ( !IsBonded )
				return "";

			MercenarySpec spec = GetEvoSpec() as MercenarySpec;

			if ( null != spec && null != spec.Stages )
			{
				if ( suffix.Length == 0 )
					suffix = GetMercTitle( spec, m_Stage );
				else
					suffix = String.Concat( suffix, " ", GetMercTitle( spec, m_Stage ) );
			}

			return base.ApplyNameSuffix( suffix );
		}
Exemple #4
0
        private string GetMercTitle(MercenarySpec spec, int stage)
        {
            string title = "";

            if (0 <= m_Stage && m_FinalStage >= m_Stage)
            {
                if ((stage == m_FinalStage || stage == m_FinalStage - 1) && (spec.Stages[stage].Title != null) && ControlMaster != null)
                {
                    title = ", " + spec.Stages[stage].Title + " of " + ControlMaster.Name;
                }
                else
                {
                    title = spec.Stages[stage].Title;
                }
            }

            return(title);
        }
Exemple #5
0
        private bool CanUseRestrictedItem(bool isArtifact)
        {
            MercenarySpec spec = GetEvoSpec() as MercenarySpec;

            return(null != spec && (isArtifact ? spec.ArtifactStage : spec.CraftedWeaponStage) <= m_Stage);
        }
Exemple #6
0
        private string GetRestrictedUseTitle(bool isArtifact)
        {
            MercenarySpec spec = GetEvoSpec() as MercenarySpec;

            return(null == spec || null == spec.Stages ? "a higher" : GetMercTitle(spec, isArtifact ? spec.ArtifactStage : spec.CraftedWeaponStage));
        }