private static void UpdateForm() { var type = Globals.Form.comboBox1.SelectedIndex; var level = (int)Globals.Form.EnemyLevel.Value; var slot1 = GoldenPet.BattleRating(1.GetPetlevel(), 1.PetHP(), BattlePet.Skills.GetPetType(BattlePet.Skills.PetOwner.Me, 1), type, level); var slot2 = GoldenPet.BattleRating(2.GetPetlevel(), 2.PetHP(), BattlePet.Skills.GetPetType(BattlePet.Skills.PetOwner.Me, 2), type, level); var slot3 = GoldenPet.BattleRating(3.GetPetlevel(), 3.PetHP(), BattlePet.Skills.GetPetType(BattlePet.Skills.PetOwner.Me, 3), type, level); Globals.Form.pictureBox2.WaitOnLoad = false; Globals.Form.pictureBox2.LoadAsync(ImgUrl(GoldenPet.Info(1).IconPath)); Globals.Form.pictureBox3.WaitOnLoad = false; Globals.Form.pictureBox3.LoadAsync(ImgUrl(GoldenPet.Info(2).IconPath)); Globals.Form.pictureBox4.WaitOnLoad = false; Globals.Form.pictureBox4.LoadAsync(ImgUrl(GoldenPet.Info(3).IconPath)); Globals.Form.label11.Visible = true; Globals.Form.label11.Text = GoldenPet.Info(1).Name; Globals.Form.label10.Visible = true; Globals.Form.label10.Text = GoldenPet.Info(2).Name; Globals.Form.label9.Visible = true; Globals.Form.label9.Text = GoldenPet.Info(3).Name; Globals.Form.label6.Visible = true; Globals.Form.label6.Text = slot1.ToString(); Globals.Form.label7.Visible = true; Globals.Form.label7.Text = slot2.ToString(); Globals.Form.label8.Visible = true; Globals.Form.label8.Text = slot3.ToString(); }
private static int RatingExt(int petLevel, int petHP, int petType, int enemyType, int enemyLevel) { return(GoldenPet.BattleRating(petLevel, petHP, petType, enemyType, enemyLevel)); }