Skip to content

Commit

Permalink
Merge pull request NecronomiconCoding#1874 from Andrerm124/master
Browse files Browse the repository at this point in the history
[Feature] Added a better config merging system
  • Loading branch information
BornSupercharged authored Aug 1, 2016
2 parents e893f08 + cd48691 commit 3a21999
Show file tree
Hide file tree
Showing 7 changed files with 193 additions and 227 deletions.
4 changes: 3 additions & 1 deletion PoGo.NecroBot.CLI/ConsoleEventListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ private static void HandleEvent(FortFailedEvent fortFailedEvent, ISession sessio

private static void HandleEvent(FortTargetEvent fortTargetEvent, ISession session)
{
int intTimeForArrival = (int) ( fortTargetEvent.Distance / ( session.LogicSettings.WalkingSpeedInKilometerPerHour * 0.277778 ) );

Logger.Write(
session.Translation.GetTranslation(TranslationString.EventFortTargeted, fortTargetEvent.Name,
Math.Round(fortTargetEvent.Distance)),
Math.Round(fortTargetEvent.Distance), intTimeForArrival ),
LogLevel.Info, ConsoleColor.DarkRed);
}

Expand Down
2 changes: 1 addition & 1 deletion PoGo.NecroBot.Logic/Common/Translations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public class Translation : ITranslation
new KeyValuePair<TranslationString, string>(TranslationString.EventFortFailed,
"Name: {0} INFO: Looting failed, possible softban. Unban in: {1}/{2}"),
new KeyValuePair<TranslationString, string>(TranslationString.EventFortTargeted,
"Traveling to Pokestop: {0} ({1}m)"),
"Traveling to Pokestop: {0} ({1}m)({2}seconds)"),
new KeyValuePair<TranslationString, string>(TranslationString.EventProfileLogin, "Playing as {0}"),
new KeyValuePair<TranslationString, string>(TranslationString.EventUsedIncense,
"Used Incense, remaining: {0}"),
Expand Down
1 change: 1 addition & 0 deletions PoGo.NecroBot.Logic/ILogicSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public interface ILogicSettings
float UpgradePokemonIvMinimum { get; }
int DelayBetweenPlayerActions { get; }
bool UsePokemonToNotCatchFilter { get; }
bool UsePokemonSniperFilterOnly { get; }
int KeepMinDuplicatePokemon { get; }
bool PrioritizeIvOverCp { get; }
int AmountOfTimesToUpgradeLoop { get; }
Expand Down
Loading

0 comments on commit 3a21999

Please sign in to comment.