//Corridor public void BattleCorridor() { if (im.action.CheckTeamIsEmpty(ProgrameData.AutoDefenseTrialBattleT)) { return; } BattleTask_team_info bti = new BattleTask_team_info(); bti.TeamEffect = 25810; bti.isMainTeam = true; bti.TeamID = ProgrameData.AutoDefenseTrialBattleT; bti.teaminfo = UserData.UserDataSummery.team_info[ProgrameData.AutoDefenseTrialBattleT]; //bti.MVP = UserData.UserDataSummery.team_info[ProgrameData.AutoDefenseTrialBattleT][1].id; im.BattleLoop_S_Teams.Add(bti);//另外弄个 new_User_Normal_MissionInfo ubti = new new_User_Normal_MissionInfo(im.BattleLoop_S_Teams, im.userdatasummery.user_info.experience); Random random = new Random(); int stepNum = 0; string result = ""; Corridor.spots1.team_id = ubti.Teams[0].TeamID;//机霰 Corridor.dic_TeamMove[0].team_id = ubti.Teams[0].TeamID; Corridor.dic_TeamMove[1].team_id = ubti.Teams[0].TeamID; Corridor.dic_TeamMove[2].team_id = ubti.Teams[0].TeamID; Corridor.dic_TeamMove[3].team_id = ubti.Teams[0].TeamID; Corridor.dic_TeamMove[4].team_id = ubti.Teams[0].TeamID; im.battle_loop.Check_Equip_Gun_FULL(); im.action.startMission(Corridor.mission_id, Corridor.Mission_Start_spots); im.action.teamMove(Corridor.dic_TeamMove[stepNum++]); im.action.teamMove_Random(Corridor.dic_TeamMove[stepNum++]); im.action.teamMove_Random(Corridor.dic_TeamMove[stepNum++]); im.action.teamMove_Random(Corridor.dic_TeamMove[stepNum++]); im.action.teamMove_Random(Corridor.dic_TeamMove[stepNum++]); ubti.Teams[0].TeamEffect = 25810; newBattleData.Teams = ubti.Teams; newBattleData.setData(5520, 0, 0, random.Next(8, 10), 26483, 28819, 10009, im.userdatasummery.user_info.experience); if (im.action.Normal_battleFinish(newBattleData.stringBuilder.ToString(), ref result)) { im.battle_loop.Battle_Result_PRO(ref ubti, 0, ref result); } im.BattleLoop_S_Teams.Clear(); }
private void Button_Click_11(object sender, RoutedEventArgs e) { BattleTask_team_info bti = new BattleTask_team_info(); bti.TeamEffect = Convert.ToInt32(Task1TeamE.Text); bti.isMainTeam = true; bti.TeamID = Task1MT.SelectedIndex + 1; bti.teaminfo = UserDataSummery.team_info[Task1MT.SelectedIndex + 1]; //if (GUN1_MVP.IsChecked == true) bti.MVP = UserDataSummery.team_info[Task1MT.SelectedIndex + 1][1].id; //if (GUN2_MVP.IsChecked == true) bti.MVP = UserDataSummery.team_info[Task1MT.SelectedIndex + 1][2].id; //if (GUN3_MVP.IsChecked == true) bti.MVP = UserDataSummery.team_info[Task1MT.SelectedIndex + 1][3].id; //if (GUN4_MVP.IsChecked == true) bti.MVP = UserDataSummery.team_info[Task1MT.SelectedIndex + 1][4].id; //if (GUN5_MVP.IsChecked == true) bti.MVP = UserDataSummery.team_info[Task1MT.SelectedIndex + 1][5].id; im.BattleLoop_AN_Teams.Add(bti); BattleTeamsLabel.Content += string.Format("第 {0} 梯队\r\n", bti.TeamID); }