private void button2_Click(object sender, EventArgs e) { if (monster_hp > 0) { SKILL skill = new SKILL(); int skill_weili = skill.Tiqu_Skill_weili(button2.Text); label3.Text = "怪物血量 :" + Convert.ToString(monster_hp - skill_weili); monster_hp -= skill_weili; timer2.Enabled = true; timer3.Enabled = true; } else { if (monster_equipment != null) { MessageBox.Show("战斗胜利,恭喜您获得经验 : " + monster_experience + " 获得装备 : " + monster_equipment + " 获得金钱 : " + monster_money, "战斗胜利!"); bag.bag_add(monster_equipment); } else { MessageBox.Show("战斗胜利,恭喜您获得经验 : " + monster_experience + " 获得金钱 : " + monster_money, " 战斗胜利!"); } person.add_money(monster_select); person.add_experience(monster_select); monster_change change = new monster_change(); change.Show(); this.Close(); } }
public monster_change() { InitializeComponent(); now_form = this; }
private void button7_Click(object sender, EventArgs e) { monster_change a = new monster_change(); a.Show(); }