示例#1
0
        public void Steal(Human target)
        {
            target.DamageTaken(5);
            this.Heal(5);

            return;
        }
示例#2
0
        public override int Attack(Human target)
        {
            int steal = this.Dexterity * 5;

            target.DamageTaken(steal);

            Random Random   = new Random();
            int    stealing = Random.Next(0, 101);

            if (stealing <= 20)
            {
                target.DamageTaken(10);
            }


            return(target.Health);
        }
示例#3
0
        public override int Attack(Human target)
        {
            int damage      = this.Intelligence * 5;
            int damageTaken = target.DamageTaken(damage);

            this.health += damageTaken;
            Console.WriteLine($"{this.Name} has cassed a spell at {target.Name} dealt: {damageTaken}");
            return(target.Health);
        }
示例#4
0
 public override int Attack(Human target)
 {
     if (target.Health < 50)
     {
         int HP = target.Health;
         target.DamageTaken(HP);
     }
     else
     {
         base.Attack(target);
     }
     return(this.health);
 }