Beispiel #1
0
    //물리 데미지
    public float SetPhysicalDamage(BattleChar user, float damCoef, int lv, float coef)
    {
        float totalDamage = .0f;

        totalDamage  = (user.GetPhyATK() * damCoef * (1 + (lv * 0.005f))) - (user.GetPhyATK() * damCoef * (GetPhyDEF() / (50 + (100 - BM.floorLevel) * 1.5f + GetPhyDEF())) * 1.4f) * coef;
        totalDamage *= buffPhyDAM;

        if (stateCount != null)
        {
            stateCount.addDamage(totalDamage);
        }

        print(this.transform.name + " is damaged " + totalDamage);
        if (SetHP(getHP() - totalDamage) > 0)
        {
            DamagedPhy(user);
        }

        return(totalDamage);
    }