Exemple #1
0
        protected virtual void NetFuncAddAttribute(int dataId)
        {
            if (IsDead())
            {
                return;
            }

            int index = this.IndexOfAttribute(dataId);

            if (index < 0)
            {
                return;
            }

            CharacterAttribute attribute = Attributes[index];

            if (!attribute.CanIncrease(this))
            {
                return;
            }

            attribute.amount += 1;
            Attributes[index] = attribute;

            StatPoint -= 1;
        }