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); }
public void AttackTarget(Monster monster) { monster.Notify(50); }