Ejemplo n.º 1
0
    //Updates substats (stats that are derived from the curStats
    private void updateSubStats()
    {
        //Calculated sub stats from base stats
        baseMoveSpeed = BaseStat.movementSpeedCalc((int)curStats[BaseStat.SPEED]);
        baseArmor     = ARMOR_FACTOR * (curStats[BaseStat.DEFENSE] + curStats[BaseStat.SPECIAL_DEFENSE]) / 2f;
        moveSpeed     = (attacking) ? baseMoveSpeed * REDUCED_ATTK_MOVE_FACTOR : baseMoveSpeed;

        //Calculating shield damage factor
        fullSDFactor = shieldDamageMult / ((curStats[BaseStat.DEFENSE] + curStats[BaseStat.SPECIAL_DEFENSE]) / 2f);

        if (armor > baseArmor)
        {
            armor = baseArmor;
        }
    }