public BotInstance(ISettings clientSettings) { _clientSettings = clientSettings; _client = new Client(_clientSettings); _inventory = new Inventory(_client); _navigation = new Navigation(_client); _stats = new Statistics(); }
public async Task<string> _getcurrentLevelInfos(Inventory _inventory) { var stats = await _inventory.GetPlayerStats(); var output = string.Empty; PlayerStats stat = stats.FirstOrDefault(); if (stat != null) { var _ep = (stat.NextLevelXp - stat.PrevLevelXp) - (stat.Experience - stat.PrevLevelXp); var _hours = Math.Round(_ep / (_totalExperience / _getSessionRuntime()), 2); output = $"Currently {stat.Level} - Level Up in {_hours} hour(s) (Required XP: {_ep})"; } return output; }
public async void updateConsoleTitle(Inventory _inventory) { _currentLevelInfos = await _getcurrentLevelInfos(_inventory); //Console.Title = ToString(); }