Ejemplo n.º 1
0
    /// <summary>
    /// 计算魔法防御
    /// </summary>
    private static int CalcDefendPower(int Quality, int StarLevel, int level)
    {
        int k1 = 0;
        int k2 = 0;
        int k3 = 0;

        ConfigM.GetTrapDefensePower(ref k1, ref k2, ref k3);
        return((k1 + ConfigM.GetQualityIndex(Quality) * k2 + StarLevel * k3) * level);
    }