Пример #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     //growl
     moves.AddLast("bulbasaur: growl");
     if (bulbasaur.Bulbasaurpp.First.Value > 0)
     {
         MessageBox.Show("The pp of growl is: " + bulbasaur.DecreaseBulbasaurpp3().ToString() + " The opponents attack fell.");
         pikachu.PStats.First.Next.Next.Value -= 5;
         textBox1.Text = ("HP: " + pikachu.PStats.First.Value + "\n\r                                 Defense: " + pikachu.PStats.First.Next.Value + "\n\r                            Attack: " + pikachu.PStats.First.Next.Next.Value);
         Random rand       = new Random();
         int    thunderdmg = rand.Next(pikachu.thunderx - 2, pikachu.thundery - 2);
     }
     else
     {
         MessageBox.Show("You ran out of PP for growl");
     }
 }