Beispiel #1
0
        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            if (m_Crafter != null)
            {
                list.Add(1050043, m_Crafter.TitleName);                 // crafted by ~1_NAME~
            }
            #region Factions
            if (m_FactionState != null)
            {
                list.Add(1041350); // faction item
            }
            #endregion

            int prop;

            if ((prop = GetDurabilityBonus()) > 0)
            {
                list.Add(1060410, prop.ToString()); // durability ~1_val~%
            }
            if (m_HitPoints >= 0 && m_MaxHitPoints > 0)
            {
                list.Add(1060639, "{0}\t{1}", m_HitPoints, m_MaxHitPoints); // durability ~1_val~ / ~2_val~
            }
            XmlAttach.AddAttachmentProperties(this, list);
        }