GetBash() 공개 메소드

Gets the bash base damage
public GetBash ( ) : int
리턴 int
예제 #1
0
    public static int GetPlayerBaseDamage(WeaponMelee currentWeapon, string StrikeName)
    {
        int BaseDamage = 1;

        if (currentWeapon != null)
        {
            switch (StrikeName)
            {
            case "SLASH":
                BaseDamage = currentWeapon.GetSlash(); break;

            case "BASH":
                BaseDamage = currentWeapon.GetBash(); break;

            case "STAB":
            default:
                BaseDamage = currentWeapon.GetStab(); break;
            }
        }
        else
        {
            switch (StrikeName)
            {
            case "SLASH":
                BaseDamage = WeaponMelee.getMeleeSlash(); break;

            case "BASH":
                BaseDamage = WeaponMelee.getMeleeBash(); break;

            case "STAB":
            default:
                BaseDamage = WeaponMelee.getMeleeStab(); break;
            }
        }
        return(BaseDamage);
    }