decrease the delays so it should work a little faster

Spegeli [2016-07-23 13:09:36]
decrease the delays so it should work a little faster
Filename
PokemonGo.RocketAPI.Logic/Logic.cs
PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
PokemonGo.RocketAPI/Properties/AssemblyInfo.cs
diff --git a/PokemonGo.RocketAPI.Logic/Logic.cs b/PokemonGo.RocketAPI.Logic/Logic.cs
index 4366012..75a6e0f 100644
--- a/PokemonGo.RocketAPI.Logic/Logic.cs
+++ b/PokemonGo.RocketAPI.Logic/Logic.cs
@@ -210,7 +210,7 @@ namespace PokemonGo.RocketAPI.Logic
                 if (fortSearch.ExperienceAwarded > 0)
                     Logger.Normal(ConsoleColor.Cyan, $"(POKESTOP) XP: {fortSearch.ExperienceAwarded}, Gems: { fortSearch.GemsAwarded}, Eggs: {fortSearch.PokemonDataEgg} Items: {StringUtils.GetSummedFriendlyNameOfItemAwardList(fortSearch.ItemsAwarded)}");

-                await RandomHelper.RandomDelay(500,1000);
+                await RandomHelper.RandomDelay(50, 200);
                 await RecycleItems();
             }
         }
@@ -233,7 +233,7 @@ namespace PokemonGo.RocketAPI.Logic
             foreach (var pokemon in pokemons)
             {
                 var distance = Navigation.DistanceBetween2Coordinates(_client.CurrentLat, _client.CurrentLng, pokemon.Latitude, pokemon.Longitude);
-                await Task.Delay(distance > 100 ? 5000 : 500);
+                await Task.Delay(distance > 100 ? 1000 : 100);

                 var encounter = await _client.EncounterPokemon(pokemon.EncounterId, pokemon.SpawnpointId);

@@ -242,7 +242,7 @@ namespace PokemonGo.RocketAPI.Logic
                 else
                     Logger.Normal($"Encounter problem: {encounter.Status}");
             }
-            await RandomHelper.RandomDelay(500, 1000);
+            await RandomHelper.RandomDelay(50, 200);
         }

         private async Task CatchEncounter(EncounterResponse encounter, MapPokemon pokemon)
@@ -258,7 +258,7 @@ namespace PokemonGo.RocketAPI.Logic
                 {
                     var useRaspberry = await _client.UseCaptureItem(pokemon.EncounterId, bestBerry, pokemon.SpawnpointId);
                     Logger.Normal($"(BERRY) {bestBerry} used, remaining: {berries.Count}");
-                    await RandomHelper.RandomDelay(500, 1000);
+                    await RandomHelper.RandomDelay(50, 200);
                 }

                 var bestPokeball = await GetBestBall(encounter?.WildPokemon);
@@ -285,7 +285,7 @@ namespace PokemonGo.RocketAPI.Logic
                     ? $"(POKEBATTLE) Caught {pokemon.PokemonId} (CP {encounter?.WildPokemon?.PokemonData?.Cp} | {Math.Round(CalculatePokemonPerfection(encounter?.WildPokemon?.PokemonData)).ToString("0.00")} % perfect) | Chance: {(float)((int)(encounter?.CaptureProbability?.CaptureProbability_.First() * 100)) / 100} | {Math.Round(distance)}m distance | with {bestPokeball} and received XP {caughtPokemonResponse.Scores.Xp.Sum()}"
                     : $"(POKEBATTLE) Missed/Escaped {pokemon.PokemonId} (CP {encounter?.WildPokemon?.PokemonData?.Cp} | {Math.Round(CalculatePokemonPerfection(encounter?.WildPokemon?.PokemonData)).ToString("0.00")} % perfect) | Chance: {(float)((int)(encounter?.CaptureProbability?.CaptureProbability_.First() * 100)) / 100} {caughtPokemonResponse.Status} | {Math.Round(distance)}m distance | using a {bestPokeball}.."
                     );
-                await RandomHelper.RandomDelay(1750, 2250);
+                await RandomHelper.RandomDelay(750, 1250);
             }
             while (caughtPokemonResponse.Status == CatchPokemonResponse.Types.CatchStatus.CatchMissed || caughtPokemonResponse.Status == CatchPokemonResponse.Types.CatchStatus.CatchEscape);
         }
@@ -306,7 +306,7 @@ namespace PokemonGo.RocketAPI.Logic
                         : $"(EVOLVE) Failed: {pokemon.PokemonId}. EvolvePokemonOutProto.Result was {evolvePokemonOutProto.Result}, stopping evolving {pokemon.PokemonId}"
                     );

-                await Task.Delay(3000);
+                await Task.Delay(1000);
             }
         }

@@ -329,7 +329,7 @@ namespace PokemonGo.RocketAPI.Logic

                 var bestPokemonOfType = await _inventory.GetHighestPokemonOfTypeByCP(duplicatePokemon);
                 Logger.Normal(ConsoleColor.DarkYellow, $"(TRANSFER) {duplicatePokemon.PokemonId} (CP {duplicatePokemon.Cp} | {CalculatePokemonPerfection(duplicatePokemon).ToString("0.00")} % perfect) | (Best: {bestPokemonOfType.Cp} CP | {CalculatePokemonPerfection(bestPokemonOfType).ToString("0.00")} % perfect)");
-                await Task.Delay(500);
+                await Task.Delay(100);
             }
         }

@@ -347,7 +347,7 @@ namespace PokemonGo.RocketAPI.Logic
                 _stats.addItemsRemoved(item.Count);
                 _stats.updateConsoleTitle(_inventory);

-                await Task.Delay(500);
+                await Task.Delay(100);
             }
         }

diff --git a/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj b/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
index 6dadd5c..55ffbe4 100644
--- a/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
+++ b/PokemonGo.RocketAPI/PokemonGo.RocketAPI.csproj
@@ -17,7 +17,7 @@
     <UpdateAssemblyInfoVersion>False</UpdateAssemblyInfoVersion>
     <AssemblyVersionSettings>YearStamp.MonthStamp.DayStamp.Increment</AssemblyVersionSettings>
     <PrimaryVersionType>AssemblyVersionAttribute</PrimaryVersionType>
-    <AssemblyVersion>2016.7.23.105</AssemblyVersion>
+    <AssemblyVersion>2016.7.23.107</AssemblyVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
diff --git a/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs b/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs
index 2a5982b..ecd1d87 100644
--- a/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs
+++ b/PokemonGo.RocketAPI/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
 // You can specify all the values or you can default the Build and Revision Numbers
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2016.7.23.105")]
+[assembly: AssemblyVersion("2016.7.23.107")]
 [assembly: AssemblyFileVersion("1.0.0.0")]
You may download the files in Public Git.