Beispiel #1
0
        public void Update()
        {
            AutoReconnector.Update();
            CallInvokes();
            if (Game is null)
            {
                return;
            }

            if (Running != State.Started)
            {
                return;
            }

            if (PokemonEvolver.Update())
            {
                return;
            }
            if (MoveTeacher.Update())
            {
                return;
            }
            if (MiningAI != null)
            {
                if (MiningAI.Update())
                {
                    return;
                }
            }

            if (Game.IsInactive && Game.IsMapLoaded && Game.IsConnected)
            {
                ExecuteNextAction();
            }
        }
Beispiel #2
0
        public void Update()
        {
            AutoReconnector.Update();
            CallInvokes();

            if (_loginRequested)
            {
                _loginRequested = false;
                LoginUpdate();
                return;
            }

            if (Game is null)
            {
                return;
            }

            if (Game.IsCreatingCharacter)
            {
                C_LogMessage("Creating a new character with a random skin...", Brushes.OrangeRed);
                Game.CreateCharacter();
                return;
            }

            if (Running != State.Started)
            {
                return;
            }

            if (PokemonEvolver.Update())
            {
                return;
            }
            if (MoveTeacher.Update())
            {
                return;
            }
            if (MiningAI?.Update() == true)
            {
                return;
            }

            if (Game.IsMapLoaded && Game.IsConnected && Game.IsInactive)
            {
                ExecuteNextAction();
            }
        }
Beispiel #3
0
        public void Update()
        {
            AutoReconnector.Update();
            CallInvokes();
            if (Game is null)
            {
                return;
            }
            if (_loginUpdate && _gameConnection.IsLoggedInToWebsite)
            {
                _loginUpdate = false;
                LoginUpdate();
            }

            if (Running != State.Started)
            {
                return;
            }

            if (PokemonEvolver.Update())
            {
                return;
            }
            if (MoveTeacher.Update())
            {
                return;
            }
            if (MiningAI != null)
            {
                if (MiningAI.Update())
                {
                    return;
                }
            }

            if (Game.IsInactive && Game.IsMapLoaded && Game.IsConnected)
            {
                ExecuteNextAction();
            }
        }