예제 #1
0
        private void SetAttributes(bool message)
        {
            PlayerMobile from = null;
            Account      acct = null;

            if (Parent is PlayerMobile)
            {
                from = Parent as PlayerMobile;
                acct = from.Account as Account;
            }

            if (acct != null)
            {
                m_Level = (byte)RewardSystem.GetRewardLevel(acct);
                if (m_Level > 0)
                {
                    RewardLabelHue labelhue = RewardSystem.LabelHues[m_Level];
                    m_LabelNumber = labelhue.RobeLabel;
                    Hue           = labelhue.Hue;

                    AddSkillGainMod(from, message);
                }
                else
                {
                    m_Level       = 0;
                    m_LabelNumber = 0;
                    Hue           = 0;
                }
            }
        }
예제 #2
0
        private void SetAttributes(bool message)
        {
            if (Parent is PlayerMobile)
            {
                RemoveSkillGainMod((PlayerMobile)Parent, message);
            }

            if (m_Account != null)
            {
                m_Level = (byte)RewardSystem.GetRewardLevel(m_Account);
                RewardLabelHue labelhue = RewardSystem.LabelHues[m_Level];
                m_LabelNumber = labelhue.RobeLabel;
                Hue           = labelhue.Hue;

                if (m_Level > 0 && Parent is PlayerMobile)
                {
                    AddSkillGainMod((PlayerMobile)Parent, message);
                }
            }
            else
            {
                m_Level       = 0;
                m_LabelNumber = 0;
                Hue           = 0;
            }
        }