Exemple #1
0
        protected internal void UpdateMaxPower()
        {
            var value = BasePower + IntMods[(int)StatModifierInt.Power] + CharacterFormulas.CalculateManaBonus(Level, Class, Asda2Spirit);

            /*if (PowerType == PowerType.Mana)
             * {
             *      value += IntellectManaBonus;
             * }*/
            value += (value * IntMods[(int)StatModifierInt.PowerPct] + 50) / 100;
            if (value < 0)
            {
                value = 0;
            }

            MaxPower = value;

            this.UpdatePowerRegen();
        }