Esempio n. 1
0
    public void CalculateAll()
    {
        if (team == 1)
        {
            invStats.CalculateItemstats(); //npc only sets total item attributes directly
        }

        float buffMult = 1;

        stats.SetClassAttributes();
        baseStats.CalculateStats();

        stats.CalculateHealth();
        stats.CalculateMana();

        buffMult = buffs.GetDamage();
        stats.CalculateDamage(buffMult);

        stats.CalculateArmor();
        stats.CalculateSpellPower();

        buffMult = buffs.GetAttackSpeed();
        stats.CalculateAttackSpeed(buffMult);

        if (team == 1)
        {
            for (int i = 0; i < DataTransferManager.dataHolder.abilId.Length; i++)
            {
                UpdateAbilityData(i);
            }
        }
    }