Exemplo n.º 1
0
        public void OnSkillChange(Skill skill)
        {
            if (skill == m_Highest)               // could be downgrading the skill, force a recalc
            {
                m_Highest = null;
            }
            else if (m_Highest != null && skill.BaseFixedPoint > m_Highest.BaseFixedPoint)
            {
                m_Highest = skill;
            }

            m_Owner.OnSkillInvalidated(skill);

            NetState ns = m_Owner.NetState;

            if (ns != null)
            {
                ns.Send(new SkillChange(skill));
            }
        }