Esempio n. 1
0
        public static bool Execution()
        {
            if (!Process.expeditionTeam[0] && !Process.expeditionTeam[1] && !Process.expeditionTeam[2])
            {
                Outputs.Log("不需要远征");
                return(false);
            }

            SwitchScene.HomeToAttackChoice();
            SwitchScene.AttackChoiceToExpeditionChoice();
            for (int i = 0; i < Process.expeditionTeam.Length; i++)
            {
                if (Process.expeditionTeam[i])
                {
                    try
                    {
                        Utils.Delay(500);
                        if (Process.expedition[i] == 0)
                        {
                            Process.expeditionTeam[i] = false;
                        }
                        else
                        {
                            Outputs.Log((i + 2).ToString() + "队准备远征");
                            expedition = Process.expedition[i];
                            ChoiceSeaArea();
                            ChoiceExpedition(i + 2);
                            ChoiceTeam(i + 2);
                            CheckTeam(i + 2);
                        }
                    }
                    catch (ExpeditionException)
                    {
                        continue;
                    }
                }
            }

            SwitchScene.ExpeditionChoiceToHome();
            return(true);
        }