diff --git a/PokeRoadie/PokeRoadieLogic.cs b/PokeRoadie/PokeRoadieLogic.cs index 81e5fe9..659c604 100644 --- a/PokeRoadie/PokeRoadieLogic.cs +++ b/PokeRoadie/PokeRoadieLogic.cs @@ -473,6 +473,12 @@ private async Task WriteStats() Logger.Write($"50%-74%: {allPokemon.Where(x => x.GetPerfection() > 49 && x.GetPerfection() < 75).Count()}", LogLevel.None, ConsoleColor.White); Logger.Write($"75%-89%: {allPokemon.Where(x => x.GetPerfection() > 74 && x.GetPerfection() < 90).Count()}", LogLevel.None, ConsoleColor.White); Logger.Write($"90%-100%: {allPokemon.Where(x => x.GetPerfection() > 89).Count()}", LogLevel.None, ConsoleColor.White); + Logger.Write("====== V ======", LogLevel.None, ConsoleColor.White); + Logger.Write($"< 100 Cp: {allPokemon.Where(x => x.CalculatePokemonValue() < 100).Count()}", LogLevel.None, ConsoleColor.White); + Logger.Write($"100-199 Cp: {allPokemon.Where(x => x.CalculatePokemonValue() >= 100 && x.CalculatePokemonValue() < 200).Count()}", LogLevel.None, ConsoleColor.White); + Logger.Write($"200-299 Cp: {allPokemon.Where(x => x.CalculatePokemonValue() >= 200 && x.CalculatePokemonValue() < 300).Count()}", LogLevel.None, ConsoleColor.White); + Logger.Write($"300-399 Cp: {allPokemon.Where(x => x.CalculatePokemonValue() >= 300 && x.CalculatePokemonValue() < 400).Count()}", LogLevel.None, ConsoleColor.White); + Logger.Write($"> 400 Cp: {allPokemon.Where(x => x.CalculatePokemonValue() >= 400).Count()}", LogLevel.None, ConsoleColor.White); } _nextWriteStatsTime = DateTime.Now.AddMinutes(_settings.DisplayRefreshMinutes); diff --git a/PokeRoadie/PokeRoadieSettings.cs b/PokeRoadie/PokeRoadieSettings.cs index 874e727..2ccb1e2 100644 --- a/PokeRoadie/PokeRoadieSettings.cs +++ b/PokeRoadie/PokeRoadieSettings.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; using System.Collections.Generic; +using System.Globalization; using System.Text.RegularExpressions; using System.Xml.Serialization; using System.Threading.Tasks; @@ -1162,9 +1163,9 @@ private IList LoadDestinations() { try { - double temp_lat = Convert.ToDouble(latlng[0]); - double temp_long = Convert.ToDouble(latlng[1]); - double temp_alt = Convert.ToDouble(latlng[2]); + double temp_lat = Convert.ToDouble(latlng[0], new CultureInfo("en-US")); + double temp_long = Convert.ToDouble(latlng[1], new CultureInfo("en-US")); + double temp_alt = Convert.ToDouble(latlng[2], new CultureInfo("en-US")); if (temp_lat >= -90 && temp_lat <= 90 && temp_long >= -180 && temp_long <= 180) { //SetCoordinates(Convert.ToDouble(latlng[0]), Convert.ToDouble(latlng[1]), Settings.DefaultAltitude);