diff --git a/PokemonGo.RocketBot.Logic/Common/Translations.cs b/PokemonGo.RocketBot.Logic/Common/Translations.cs
index 5a90885..a21f457 100644
--- a/PokemonGo.RocketBot.Logic/Common/Translations.cs
+++ b/PokemonGo.RocketBot.Logic/Common/Translations.cs
@@ -26,6 +26,7 @@ namespace PokemonGo.RocketBot.Logic.Common
public enum TranslationString
{
+ HumanWalkingVariant,
Pokeball,
GreatPokeball,
UltraPokeball,
@@ -151,6 +152,7 @@ namespace PokemonGo.RocketBot.Logic.Common
DisplayHighestMove1Header,
DisplayHighestMove2Header,
DisplayHighestCandy,
+ // ReSharper disable once InconsistentNaming
IPBannedError,
NoEggsAvailable,
UseLuckyEggActive,
@@ -207,6 +209,7 @@ namespace PokemonGo.RocketBot.Logic.Common
private readonly List<KeyValuePair<TranslationString, string>> _translationStrings = new List
<KeyValuePair<TranslationString, string>>
{
+ new KeyValuePair<TranslationString, string>(TranslationString.HumanWalkingVariant, "Walking Speed: Has been changed, {0:n2} Km/h to {1:n2} Km/h"),
new KeyValuePair<TranslationString, string>(TranslationString.Pokeball, "PokeBall"),
new KeyValuePair<TranslationString, string>(TranslationString.GreatPokeball, "GreatBall"),
new KeyValuePair<TranslationString, string>(TranslationString.UltraPokeball, "UltraBall"),
diff --git a/PokemonGo.RocketBot.Logic/ILogicSettings.cs b/PokemonGo.RocketBot.Logic/ILogicSettings.cs
index 37724d3..c979758 100644
--- a/PokemonGo.RocketBot.Logic/ILogicSettings.cs
+++ b/PokemonGo.RocketBot.Logic/ILogicSettings.cs
@@ -87,6 +87,7 @@ namespace PokemonGo.RocketBot.Logic
double WalkingSpeedOffSetInKilometerPerHour { get; }
bool UseWalkingSpeedVariant { get; }
double WalkingSpeedVariant { get; }
+ bool ShowVariantWalking { get; }
bool FastSoftBanBypass { get; }
bool EvolveAllPokemonWithEnoughCandy { get; }
bool KeepPokemonsThatCanEvolve { get; }
diff --git a/PokemonGo.RocketBot.Logic/Settings.cs b/PokemonGo.RocketBot.Logic/Settings.cs
index 3627fe9..d29b185 100644
--- a/PokemonGo.RocketBot.Logic/Settings.cs
+++ b/PokemonGo.RocketBot.Logic/Settings.cs
@@ -314,6 +314,7 @@ namespace PokemonGo.RocketBot.Logic
[DefaultValue(2)] public double WalkingSpeedOffSetInKilometerPerHour;
[DefaultValue(true)] public bool UseWalkingSpeedVariant;
[DefaultValue(1.2)] public double WalkingSpeedVariant;
+ [DefaultValue(true)] public bool ShowVariantWalking;
public int MaxSpawnLocationOffset;
@@ -1247,6 +1248,7 @@ namespace PokemonGo.RocketBot.Logic
public double WalkingSpeedOffSetInKilometerPerHour => _settings.WalkingSpeedOffSetInKilometerPerHour;
public bool UseWalkingSpeedVariant => _settings.UseWalkingSpeedVariant;
public double WalkingSpeedVariant => _settings.WalkingSpeedVariant;
+ public bool ShowVariantWalking => _settings.ShowVariantWalking;
public bool FastSoftBanBypass => _settings.FastSoftBanBypass;
public bool EvolveAllPokemonWithEnoughCandy => _settings.EvolveAllPokemonWithEnoughCandy;
public bool KeepPokemonsThatCanEvolve => _settings.KeepPokemonsThatCanEvolve;
diff --git a/PokemonGo.RocketBot.Window/ConsoleEventListener.cs b/PokemonGo.RocketBot.Window/ConsoleEventListener.cs
index ac85971..8b5eb11 100644
--- a/PokemonGo.RocketBot.Window/ConsoleEventListener.cs
+++ b/PokemonGo.RocketBot.Window/ConsoleEventListener.cs
@@ -18,6 +18,16 @@ namespace PokemonGo.RocketBot.Window
[SuppressMessage("ReSharper", "UnusedParameter.Local")]
internal class ConsoleEventListener
{
+ private static void HandleEvent(HumanWalkingEvent humanWalkingEvent, ISession session)
+ {
+ if (session.LogicSettings.ShowVariantWalking)
+ Logger.Write(
+ session.Translation.GetTranslation(TranslationString.HumanWalkingVariant,
+ humanWalkingEvent.OldWalkingSpeed,
+ humanWalkingEvent.CurrentWalkingSpeed),
+ LogLevel.Info, ConsoleColor.DarkCyan);
+ }
+
private static void HandleEvent(ProfileEvent profileEvent, ISession session)
{
Logger.Write(session.Translation.GetTranslation(TranslationString.EventProfileLogin,
You may download the files in Public Git.