public FormBag(FormBattle form) { InitializeComponent(); Initialize(); formBattle = form; }
public void ActionDig(int X, int Y) { if (rand.Next() % 100 + 1 < 90) return; if (mapNumber == 25) // desert { FormBattle fbattle = new FormBattle(new Pokemons(246, rand.Next(3, 6)), false); fbattle.weatherType = 3; fbattle.weatherDuration = 100; fbattle.ShowDialog(); } if (!pokemonDefeated[142]) // ancient cave { if (mapNumber == 32) { if (X >= 550 && X <= 660 && Y >= 10 && Y <= 60) { FormGame.map = new Map(33, 530, 450); } } if (mapNumber == 33) { int x = rand.Next() % 100 + 1; int y = 374; if (x <= 25) y = 345; else if (x <= 50) y = 347; else if (x <= 75) y = 408; else if (x <= 90) y = 410; else if (x <= 95) y = 436; new FormBattle(new Pokemons(y, rand.Next(3, 6)), false).ShowDialog(); } } if(mapNumber == 45) // ancient cave 2 { if (!pokemonDefeated[377] && !pokemonDefeated[378] && !pokemonDefeated[379] && !pokemonDefeated[486]) FormGame.map = new Map(46, 530, 450); } }