/// <summary> /// Метод создает оружие в награду за убийство монстра /// </summary> /// <param name="game"></param> /// <returns></returns> public Weapon CastLoot(Game game) { return new WeaponSelector().Generate("Any", game); }
/// <summary> /// Создание новой игры, ввод и распределение параметров персонажа /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button14_Click(object sender, EventArgs e) { var newGame = new NewGame(this); newGame.Show(); newGame.Closing += (o, args) => { character = new Character(); character.Player = MainStatistic; textBox1.Text = character.Player.Stats[0].ToString(); textBox2.Text = character.Player.Stats[1].ToString(); textBox3.Text = character.Player.Stats[2].ToString(); textBox4.Text = character.Player.Stats[3].ToString(); textBox5.Text = character.Player.Stats[4].ToString(); textBox6.Text = character.Player.Stats[5].ToString(); textBox7.Text = character.Player.Stats[6].ToString(); PlayerClass.Text = character.Player.Class; game = new Game(); game.LevelUp(character, this); }; }