Пример #1
0
        protected internal virtual void UpdateMaxHealth()
        {
            /*var stamina = Stamina;
             * var uncontributed = StaminaWithoutHealthContribution;
             * var stamBonus = Math.Max(stamina, uncontributed) + (Math.Max(0, stamina - uncontributed) * HealthPerStamina);
             *
             * var value = BaseHealth + stamBonus + MaxHealthModFlat;
             * value += (int)(value * MaxHealthModScalar + 0.5f);*/

            MaxHealth = (int)UnitUpdates.GetMultiMod(FloatMods[(int)StatModifierFloat.Health], IntMods[(int)StatModifierInt.Health] + BaseHealth + CharacterFormulas.CalculateHealthBonus(Level, Asda2Strength, Asda2Stamina, Class));

            this.UpdateHealthRegen();
        }