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

            int commonSongs   = 0;
            int uncommonSongs = 0;
            int rareSongs     = 0;

            for (int i = 0; i < m_Tracks.Count; i++)
            {
                DawnsMusicInfo info = GetInfo(m_Tracks[i]);

                switch (info.Rarity)
                {
                case DawnsMusicRarity.Common: commonSongs++; break;

                case DawnsMusicRarity.Uncommon: uncommonSongs++; break;

                case DawnsMusicRarity.Rare: rareSongs++; break;
                }
            }

            if (commonSongs > 0)
            {
                list.Add(1075234, commonSongs.ToString()); // ~1_NUMBER~ Common Tracks
            }
            if (uncommonSongs > 0)
            {
                list.Add(1075235, uncommonSongs.ToString()); // ~1_NUMBER~ Uncommon Tracks
            }
            if (rareSongs > 0)
            {
                list.Add(1075236, rareSongs.ToString()); // ~1_NUMBER~ Rare Tracks
            }
        }
예제 #2
0
        public override void AddNameProperty(ObjectPropertyList list)
        {
            DawnsMusicInfo info = DawnsMusicBox.GetInfo(m_Music);

            if (info != null)
            {
                if (info.Rarity == DawnsMusicRarity.Common)
                {
                    list.Add(1075204); // Gear for Dawn's Music Box (Common)
                }
                else if (info.Rarity == DawnsMusicRarity.Uncommon)
                {
                    list.Add(1075205); // Gear for Dawn's Music Box (Uncommon)
                }
                else if (info.Rarity == DawnsMusicRarity.Rare)
                {
                    list.Add(1075206); // Gear for Dawn's Music Box (Rare)
                }
                list.Add(info.Name);
            }
            else
            {
                base.AddNameProperty(list);
            }
        }