getMeleeStab() 공개 정적인 메소드

Gets the melee stab value.
public static getMeleeStab ( ) : 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);
    }