Remove unnecessary message when evolving pokemons
Brian [2016-08-02 08:56:56]
Remove unnecessary message when evolving pokemons
diff --git a/PokemonGo/RocketAPI/Window/MainForm.cs b/PokemonGo/RocketAPI/Window/MainForm.cs
index 97acf92..789dbe9 100644
--- a/PokemonGo/RocketAPI/Window/MainForm.cs
+++ b/PokemonGo/RocketAPI/Window/MainForm.cs
@@ -219,6 +219,7 @@ namespace PokemonGo.RocketAPI.Window
foreach (var pokemon in pokemonToEvolve)
{
var countOfEvolvedUnits = 0;
+ var xpCount = 0;
EvolvePokemonOut evolvePokemonOutProto;
do
@@ -228,25 +229,16 @@ namespace PokemonGo.RocketAPI.Window
if (evolvePokemonOutProto.Result == 1)
{
- ColoredConsoleWrite(Color.Cyan,
- $"Evolved {pokemon.PokemonId} successfully for {evolvePokemonOutProto.ExpAwarded}xp");
-
countOfEvolvedUnits++;
+ xpCount += evolvePokemonOutProto.ExpAwarded;
TotalExperience += evolvePokemonOutProto.ExpAwarded;
}
- else
- {
- var result = evolvePokemonOutProto.Result;
- ColoredConsoleWrite(Color.White, $"Failed to evolve {pokemon.PokemonId}. " +
- $"EvolvePokemonOutProto.Result was {result}");
- ColoredConsoleWrite(Color.White, $"Due to above error, stopping evolving {pokemon.PokemonId}");
- }
} while (evolvePokemonOutProto.Result == 1);
- /*
+
if (countOfEvolvedUnits > 0)
ColoredConsoleWrite(Color.Cyan,
$"Evolved {countOfEvolvedUnits} pieces of {pokemon.PokemonId} for {xpCount}xp");
- */
+
await Task.Delay(3000);
}
}
You may download the files in Public Git.