예제 #1
0
파일: Experience.cs 프로젝트: cyb-/HnS
    public void makeDamage(Experience target)
    {
        int damage;
        int agy;

        agy = agility;
        if (armInfo != null) {
            agy += (int)((float)agy * armInfo.powerMultiplier.agility);
        }
        damage = 0;
        if (75 + agy - target.agility >= Random.Range (0, 100)) {
            damage = Random.Range (minDamage, maxDamage) * (1 - target.armor / 200);
        }
        target.takeDamage(damage);
    }