Skip to content

Commit

Permalink
Merge pull request #2055 from redChrillz/dev1
Browse files Browse the repository at this point in the history
Add lat and long to pokemon capture event
  • Loading branch information
BornSupercharged authored Aug 2, 2016
2 parents 0ed2c54 + d6d4331 commit 7229e8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions PoGo.NecroBot.CLI/ConsoleEventListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,13 @@ private static void HandleEvent(PokemonCaptureEvent pokemonCaptureEvent, ISessio
var familyCandies = pokemonCaptureEvent.FamilyCandies > 0
? session.Translation.GetTranslation(TranslationString.Candies, pokemonCaptureEvent.FamilyCandies)
: "";

Logger.Write(
session.Translation.GetTranslation(TranslationString.EventPokemonCapture, catchStatus, catchType, session.Translation.GetPokemonTranslation(pokemonCaptureEvent.Id),

var message = session.Translation.GetTranslation(TranslationString.EventPokemonCapture, catchStatus, catchType, session.Translation.GetPokemonTranslation(pokemonCaptureEvent.Id),
pokemonCaptureEvent.Level, pokemonCaptureEvent.Cp, pokemonCaptureEvent.MaxCp, pokemonCaptureEvent.Perfection.ToString("0.00"), pokemonCaptureEvent.Probability,
pokemonCaptureEvent.Distance.ToString("F2"),
returnRealBallName(pokemonCaptureEvent.Pokeball), pokemonCaptureEvent.BallAmount, familyCandies), LogLevel.Caught);
returnRealBallName(pokemonCaptureEvent.Pokeball), pokemonCaptureEvent.BallAmount, familyCandies, pokemonCaptureEvent.Latitude, pokemonCaptureEvent.Longitude);

Logger.Write(message, LogLevel.Caught);
}

private static void HandleEvent(NoPokeballEvent noPokeballEvent, ISession session)
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 @@ -189,7 +189,7 @@ public class Translation : ITranslation
"{0}\t- CP: {1} IV: {2}% [Best CP: {3} IV: {4}%] (Candies: {5})"),
new KeyValuePair<TranslationString, string>(TranslationString.EventItemRecycled, "{0}x {1}"),
new KeyValuePair<TranslationString, string>(TranslationString.EventPokemonCapture,
"({0}) | ({1}) {2} Lvl: {3} CP: ({4}/{5}) IV: {6}% | Chance: {7}% | {8}m dist | with a {9} ({10} left). | {11}"),
"({0}) | ({1}) {2} Lvl: {3} CP: ({4}/{5}) IV: {6}% | Chance: {7}% | {8}m dist | with a {9} ({10} left). | {11} | lat: {12} long: {13}"),
new KeyValuePair<TranslationString, string>(TranslationString.EventNoPokeballs,
"No Pokeballs - We missed a {0} with CP {1}"),
new KeyValuePair<TranslationString, string>(TranslationString.WaitingForMorePokemonToEvolve,
Expand Down

0 comments on commit 7229e8a

Please sign in to comment.