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(); } }
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(); } }
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(); } }