示例#1
0
文件: Jedi.cs 项目: amelia77/NinjaRPG
 public override int Attack()
 {
     if (Randomizer.Rand.Next(2) == 1)
     {
         return(HitCalculator.DynamicDamageCalculator(this.forceAttack));
     }
     else
     {
         return(HitCalculator.DynamicDamageCalculator(this.mentalAttack));
     }
 }
示例#2
0
        public int Attack(IItem item)
        {
            var power = this.UseItem(item) as IAttack;

            if (power == null)
            {
                return(0);
            }
            else
            {
                return(HitCalculator.DynamicDamageCalculator(power));
            }
        }
示例#3
0
 public override int Attack()
 {
     return(HitCalculator.DynamicDamageCalculator(this.mentalAttack));
 }