예제 #1
0
        public void AttackTarget(Monster monster)
        {
            int loss = (_random.NextDouble() < 0.5) ? 100 : 200;

            if (200 == loss)
            {
                txtMsg.Text += "出现暴击!!!\r\n";
                //Console.WriteLine("出现暴击!!!");
            }
            monster.Notify(loss);
        }
예제 #2
0
 public void AttackTarget(Monster monster)
 {
     monster.Notify(50);
 }