From 46ed7f314521a25a1753107649fc27d00bcd51c9 Mon Sep 17 00:00:00 2001 From: bornsupercharged Date: Fri, 29 Jul 2016 14:46:24 -0500 Subject: [PATCH 1/5] Added output alerting user they have no pokeballs --- PoGo.NecroBot.Logic/Common/Translations.cs | 14 ++++++++------ .../Tasks/CatchNearbyPokemonsTask.cs | 3 +++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/PoGo.NecroBot.Logic/Common/Translations.cs b/PoGo.NecroBot.Logic/Common/Translations.cs index 5da8ed536..e0b04260d 100644 --- a/PoGo.NecroBot.Logic/Common/Translations.cs +++ b/PoGo.NecroBot.Logic/Common/Translations.cs @@ -85,6 +85,7 @@ public enum TranslationString UpdateFinished, LookingForIncensePokemon, PokemonSkipped, + ZeroPokeballInv, InvFullTransferring, InvFullTransferManually, InvFullPokestopLooting, @@ -208,15 +209,16 @@ public class Translation : ITranslation new KeyValuePair(Common.TranslationString.FinishedDownloadingRelease, "Finished downloading newest Release..."), new KeyValuePair(Common.TranslationString.FinishedUnpackingFiles, "Finished unpacking files..."), new KeyValuePair(Common.TranslationString.UpdateFinished, "Update finished, you can close this window now."), - new KeyValuePair(Common.TranslationString.LookingForIncensePokemon, "Looking for incense pokemon..."), - new KeyValuePair(Common.TranslationString.LookingForPokemon, "Looking for pokemon..."), - new KeyValuePair(Common.TranslationString.LookingForLurePokemon, "Looking for lure pokemon..."), + new KeyValuePair(Common.TranslationString.LookingForIncensePokemon, "Looking for incense Pokemon..."), + new KeyValuePair(Common.TranslationString.LookingForPokemon, "Looking for Pokemon..."), + new KeyValuePair(Common.TranslationString.LookingForLurePokemon, "Looking for lure Pokemon..."), new KeyValuePair(Common.TranslationString.PokemonSkipped, "Skipped {0}"), - new KeyValuePair(Common.TranslationString.InvFullTransferring, "PokemonInventory is Full.Transferring pokemons..."), - new KeyValuePair(Common.TranslationString.InvFullTransferManually, "PokemonInventory is Full.Please Transfer pokemon manually or set TransferDuplicatePokemon to true in settings..."), + new KeyValuePair(Common.TranslationString.ZeroPokeballInv, "You have no pokeballs in your inventory, no more Pokemon can be caught!"), + new KeyValuePair(Common.TranslationString.InvFullTransferring, "Pokemon Inventory is full, transferring Pokemon..."), + new KeyValuePair(Common.TranslationString.InvFullTransferManually, "Pokemon Inventory is full! Please transfer Pokemon manually or set TransferDuplicatePokemon to true in settings..."), new KeyValuePair(Common.TranslationString.InvFullPokestopLooting, "Inventory is full, no items looted!"), new KeyValuePair(Common.TranslationString.EncounterProblem, "Encounter problem: {0}"), - new KeyValuePair(Common.TranslationString.EncounterProblemLurePokemon, "Encounter problem: Lure pokemon {0}"), + new KeyValuePair(Common.TranslationString.EncounterProblemLurePokemon, "Encounter problem: Lure Pokemon {0}"), new KeyValuePair(Common.TranslationString.DesiredDestTooFar, "Your desired destination of {0}, {1} is too far from your current position of {2}, {3}"), new KeyValuePair(Common.TranslationString.PokemonRename, "Pokemon {0} ({1}) renamed from {2} to {3}."), new KeyValuePair(Common.TranslationString.PokemonIgnoreFilter, "[Pokemon ignore filter] - Ignoring {0} as defined in settings"), diff --git a/PoGo.NecroBot.Logic/Tasks/CatchNearbyPokemonsTask.cs b/PoGo.NecroBot.Logic/Tasks/CatchNearbyPokemonsTask.cs index 8bff27eb1..8060b59ca 100644 --- a/PoGo.NecroBot.Logic/Tasks/CatchNearbyPokemonsTask.cs +++ b/PoGo.NecroBot.Logic/Tasks/CatchNearbyPokemonsTask.cs @@ -33,7 +33,10 @@ public static async Task Execute(ISession session, CancellationToken cancellatio var masterBallsCount = await session.Inventory.GetItemAmountByType(POGOProtos.Inventory.Item.ItemId.ItemMasterBall); if (pokeBallsCount + greatBallsCount + ultraBallsCount + masterBallsCount == 0) + { + Logger.Write(session.Translation.GetTranslation(Common.TranslationString.ZeroPokeballInv)); return; + } if (session.LogicSettings.UsePokemonToNotCatchFilter && session.LogicSettings.PokemonsNotToCatch.Contains(pokemon.PokemonId)) From 7e1ad923829ada28fa87a03b762c6c7afa5296eb Mon Sep 17 00:00:00 2001 From: bornsupercharged Date: Sat, 30 Jul 2016 00:38:04 -0500 Subject: [PATCH 2/5] Adding in current pokeball inventory display before recycling. --- PoGo.NecroBot.Logic/Inventory.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/PoGo.NecroBot.Logic/Inventory.cs b/PoGo.NecroBot.Logic/Inventory.cs index 4ea34336b..ad1255177 100644 --- a/PoGo.NecroBot.Logic/Inventory.cs +++ b/PoGo.NecroBot.Logic/Inventory.cs @@ -211,6 +211,16 @@ public async Task> GetItemsToRecycle(ISettings settings) var itemsToRecylce = new List(); var myItems = (await GetItems()).ToList(); + var amountOfPokeballsToKeep = _logicSettings.TotalAmountOfPokebalsToKeep; + var amountOfPotionsToKeep = _logicSettings.TotalAmountOfPotionsToKeep; + var amountOfRevivesToKeep = _logicSettings.TotalAmountOfRevivesToKeep; + + int currentAmountOfPokeballs = await GetItemAmountByType(ItemId.ItemPokeBall); + int currentAmountOfGreatballs = await GetItemAmountByType(ItemId.ItemGreatBall); + int currentAmountOfUltraballs = await GetItemAmountByType(ItemId.ItemUltraBall); + int currentAmountOfMasterballs = await GetItemAmountByType(ItemId.ItemMasterBall); + + Logging.Logger.Write($"[Current Inventory] Pokeballs: {currentAmountOfPokeballs} | Greatballs: {currentAmountOfGreatballs} | Ultraballs: {currentAmountOfUltraballs} | Masterballs: {currentAmountOfMasterballs}", Logging.LogLevel.Info, ConsoleColor.Yellow); if (!_logicSettings.ItemRecycleFilter.Any(s => Pokeballs.Contains(s.Key))) { @@ -219,7 +229,7 @@ public async Task> GetItemsToRecycle(ISettings settings) } else { - Logging.Logger.Write("Using ItemRecycleFilter for pokeballs", Logging.LogLevel.Info, ConsoleColor.Yellow); + Logging.Logger.Write($"Using ItemRecycleFilter for pokeballs, keeping {amountOfPokeballsToKeep}", Logging.LogLevel.Info, ConsoleColor.Yellow); } if (!_logicSettings.ItemRecycleFilter.Any(s => Potions.Contains(s.Key))) @@ -229,7 +239,7 @@ public async Task> GetItemsToRecycle(ISettings settings) } else { - Logging.Logger.Write("Using ItemRecycleFilter for potions", Logging.LogLevel.Info, ConsoleColor.Yellow); + Logging.Logger.Write($"Using ItemRecycleFilter for potions, keeping {amountOfPotionsToKeep}", Logging.LogLevel.Info, ConsoleColor.Yellow); } if (!_logicSettings.ItemRecycleFilter.Any(s => Revives.Contains(s.Key))) @@ -239,7 +249,7 @@ public async Task> GetItemsToRecycle(ISettings settings) } else { - Logging.Logger.Write("Using ItemRecycleFilter for revives", Logging.LogLevel.Info, ConsoleColor.Yellow); + Logging.Logger.Write($"Using ItemRecycleFilter for revives, keeping {amountOfRevivesToKeep}", Logging.LogLevel.Info, ConsoleColor.Yellow); } var otherItemsToRecylce = myItems From 963125a5e7bbb389854a9b4f977699116ce19972 Mon Sep 17 00:00:00 2001 From: bornsupercharged Date: Sat, 30 Jul 2016 09:25:17 -0500 Subject: [PATCH 3/5] Merged files --- PoGo.NecroBot.Logic/Inventory.cs | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/PoGo.NecroBot.Logic/Inventory.cs b/PoGo.NecroBot.Logic/Inventory.cs index b148d962d..132128d1d 100644 --- a/PoGo.NecroBot.Logic/Inventory.cs +++ b/PoGo.NecroBot.Logic/Inventory.cs @@ -224,33 +224,24 @@ public async Task> GetItemsToRecycle(ISettings settings) if (!_logicSettings.ItemRecycleFilter.Any(s => Pokeballs.Contains(s.Key))) { + Logging.Logger.Write($"Checking for balls to recycle, keeping {amountOfPokeballsToKeep}", Logging.LogLevel.Info, ConsoleColor.Yellow); var pokeballsToRecycle = GetPokeballsToRecycle(settings, myItems); itemsToRecylce.AddRange(pokeballsToRecycle); } - else - { - Logging.Logger.Write("Using ItemRecycleFilter for pokeballs", Logging.LogLevel.Info, ConsoleColor.Yellow); - } if (!_logicSettings.ItemRecycleFilter.Any(s => Potions.Contains(s.Key))) { + Logging.Logger.Write($"Checking for potions to recycle, keeping {amountOfPotionsToKeep}", Logging.LogLevel.Info, ConsoleColor.Yellow); var potionsToRecycle = GetPotionsToRecycle(settings, myItems); itemsToRecylce.AddRange(potionsToRecycle); } - else - { - Logging.Logger.Write("Using ItemRecycleFilter for potions", Logging.LogLevel.Info, ConsoleColor.Yellow); - } if (!_logicSettings.ItemRecycleFilter.Any(s => Revives.Contains(s.Key))) { + Logging.Logger.Write($"Checking for revives to recycle, keeping {amountOfRevivesToKeep}", Logging.LogLevel.Info, ConsoleColor.Yellow); var revivesToRecycle = GetRevivesToRecycle(settings, myItems); itemsToRecylce.AddRange(revivesToRecycle); } - else - { - Logging.Logger.Write("Using ItemRecycleFilter for revives", Logging.LogLevel.Info, ConsoleColor.Yellow); - } var otherItemsToRecylce = myItems .Where(x => _logicSettings.ItemRecycleFilter.Any(f => f.Key == x.ItemId && x.Count > f.Value)) @@ -262,7 +253,7 @@ public async Task> GetItemsToRecycle(ISettings settings) Count = x.Count - _logicSettings.ItemRecycleFilter.Single(f => f.Key == x.ItemId).Value, Unseen = x.Unseen }); - + itemsToRecylce.AddRange(otherItemsToRecylce); return itemsToRecylce; @@ -273,7 +264,7 @@ private List GetPokeballsToRecycle(ISettings settings, IReadOnlyList(); } @@ -288,7 +279,7 @@ private List GetPotionsToRecycle(ISettings settings, IReadOnlyList(); } From d81fad1748a237067642b3e06d17193058ca0bbd Mon Sep 17 00:00:00 2001 From: bornsupercharged Date: Sat, 30 Jul 2016 09:53:46 -0500 Subject: [PATCH 4/5] Added translations for pokeball output --- PoGo.NecroBot.Logic/Common/Translations.cs | 8 ++++++++ PoGo.NecroBot.Logic/Inventory.cs | 14 +++++++++----- PoGo.NecroBot.Logic/Tasks/RecycleItemsTask.cs | 2 +- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/PoGo.NecroBot.Logic/Common/Translations.cs b/PoGo.NecroBot.Logic/Common/Translations.cs index 2316581f7..33e548c36 100644 --- a/PoGo.NecroBot.Logic/Common/Translations.cs +++ b/PoGo.NecroBot.Logic/Common/Translations.cs @@ -87,6 +87,10 @@ public enum TranslationString LookingForIncensePokemon, PokemonSkipped, ZeroPokeballInv, + CurrentPokeballInv, + CheckingForBallsToRecycle, + CheckingForPotionsToRecycle, + CheckingForRevivesToRecycle, InvFullTransferring, InvFullTransferManually, InvFullPokestopLooting, @@ -202,6 +206,10 @@ public class Translation : ITranslation new KeyValuePair(Common.TranslationString.LookingForLurePokemon, "Looking for lure Pokemon..."), new KeyValuePair(Common.TranslationString.PokemonSkipped, "Skipped {0}"), new KeyValuePair(Common.TranslationString.ZeroPokeballInv, "You have no pokeballs in your inventory, no more Pokemon can be caught!"), + new KeyValuePair(Common.TranslationString.CurrentPokeballInv, "[Current Inventory] Pokeballs: {0} | Greatballs: {1} | Ultraballs: {2} | Masterballs: {3}"), + new KeyValuePair(Common.TranslationString.CheckingForBallsToRecycle, "Checking for balls to recycle, keeping {0}"), + new KeyValuePair(Common.TranslationString.CheckingForPotionsToRecycle, "Checking for potions to recycle, keeping {0}"), + new KeyValuePair(Common.TranslationString.CheckingForRevivesToRecycle, "Checking for revives to recycle, keeping {0}"), new KeyValuePair(Common.TranslationString.InvFullTransferring, "Pokemon Inventory is full, transferring Pokemon..."), new KeyValuePair(Common.TranslationString.InvFullTransferManually, "Pokemon Inventory is full! Please transfer Pokemon manually or set TransferDuplicatePokemon to true in settings..."), new KeyValuePair(Common.TranslationString.InvFullPokestopLooting, "Inventory is full, no items looted!"), diff --git a/PoGo.NecroBot.Logic/Inventory.cs b/PoGo.NecroBot.Logic/Inventory.cs index 132128d1d..f5177c264 100644 --- a/PoGo.NecroBot.Logic/Inventory.cs +++ b/PoGo.NecroBot.Logic/Inventory.cs @@ -5,6 +5,9 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; +using PoGo.NecroBot.Logic.Event; +using PoGo.NecroBot.Logic.State; +using PoGo.NecroBot.Logic.Utils; using PoGo.NecroBot.Logic.PoGoUtils; using PokemonGo.RocketAPI; using POGOProtos.Data; @@ -206,8 +209,9 @@ public async Task> GetItems() .Where(p => p != null); } - public async Task> GetItemsToRecycle(ISettings settings) + public async Task> GetItemsToRecycle(ISession session) { + var settings = session.Settings; var itemsToRecylce = new List(); var myItems = (await GetItems()).ToList(); @@ -220,25 +224,25 @@ public async Task> GetItemsToRecycle(ISettings settings) int currentAmountOfUltraballs = await GetItemAmountByType(ItemId.ItemUltraBall); int currentAmountOfMasterballs = await GetItemAmountByType(ItemId.ItemMasterBall); - Logging.Logger.Write($"[Current Inventory] Pokeballs: {currentAmountOfPokeballs} | Greatballs: {currentAmountOfGreatballs} | Ultraballs: {currentAmountOfUltraballs} | Masterballs: {currentAmountOfMasterballs}", Logging.LogLevel.Info, ConsoleColor.Yellow); + Logging.Logger.Write(session.Translation.GetTranslation(Common.TranslationString.CurrentPokeballInv, currentAmountOfPokeballs, currentAmountOfGreatballs, currentAmountOfUltraballs, currentAmountOfMasterballs)); if (!_logicSettings.ItemRecycleFilter.Any(s => Pokeballs.Contains(s.Key))) { - Logging.Logger.Write($"Checking for balls to recycle, keeping {amountOfPokeballsToKeep}", Logging.LogLevel.Info, ConsoleColor.Yellow); + Logging.Logger.Write(session.Translation.GetTranslation(Common.TranslationString.CheckingForBallsToRecycle, amountOfPokeballsToKeep)); var pokeballsToRecycle = GetPokeballsToRecycle(settings, myItems); itemsToRecylce.AddRange(pokeballsToRecycle); } if (!_logicSettings.ItemRecycleFilter.Any(s => Potions.Contains(s.Key))) { - Logging.Logger.Write($"Checking for potions to recycle, keeping {amountOfPotionsToKeep}", Logging.LogLevel.Info, ConsoleColor.Yellow); + Logging.Logger.Write(session.Translation.GetTranslation(Common.TranslationString.CheckingForPotionsToRecycle, amountOfPotionsToKeep)); var potionsToRecycle = GetPotionsToRecycle(settings, myItems); itemsToRecylce.AddRange(potionsToRecycle); } if (!_logicSettings.ItemRecycleFilter.Any(s => Revives.Contains(s.Key))) { - Logging.Logger.Write($"Checking for revives to recycle, keeping {amountOfRevivesToKeep}", Logging.LogLevel.Info, ConsoleColor.Yellow); + Logging.Logger.Write(session.Translation.GetTranslation(Common.TranslationString.CheckingForRevivesToRecycle, amountOfRevivesToKeep)); var revivesToRecycle = GetRevivesToRecycle(settings, myItems); itemsToRecylce.AddRange(revivesToRecycle); } diff --git a/PoGo.NecroBot.Logic/Tasks/RecycleItemsTask.cs b/PoGo.NecroBot.Logic/Tasks/RecycleItemsTask.cs index 6622998aa..3b33e5ecd 100644 --- a/PoGo.NecroBot.Logic/Tasks/RecycleItemsTask.cs +++ b/PoGo.NecroBot.Logic/Tasks/RecycleItemsTask.cs @@ -16,7 +16,7 @@ public static async Task Execute(ISession session, CancellationToken cancellatio { cancellationToken.ThrowIfCancellationRequested(); - var items = await session.Inventory.GetItemsToRecycle(session.Settings); + var items = await session.Inventory.GetItemsToRecycle(session); foreach (var item in items) { From 38500781f0e0230b726e7053266b1da4c1b490b4 Mon Sep 17 00:00:00 2001 From: bornsupercharged Date: Sat, 30 Jul 2016 11:22:56 -0500 Subject: [PATCH 5/5] Fixed remaining translations --- PoGo.NecroBot.Logic/Common/Translations.cs | 6 ++++++ PoGo.NecroBot.Logic/Inventory.cs | 21 ++++++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/PoGo.NecroBot.Logic/Common/Translations.cs b/PoGo.NecroBot.Logic/Common/Translations.cs index 33e548c36..cfbf93582 100644 --- a/PoGo.NecroBot.Logic/Common/Translations.cs +++ b/PoGo.NecroBot.Logic/Common/Translations.cs @@ -91,6 +91,9 @@ public enum TranslationString CheckingForBallsToRecycle, CheckingForPotionsToRecycle, CheckingForRevivesToRecycle, + PokeballsToKeepIncorrect, + PotionsToKeepIncorrect, + RevivesToKeepIncorrect, InvFullTransferring, InvFullTransferManually, InvFullPokestopLooting, @@ -210,6 +213,9 @@ public class Translation : ITranslation new KeyValuePair(Common.TranslationString.CheckingForBallsToRecycle, "Checking for balls to recycle, keeping {0}"), new KeyValuePair(Common.TranslationString.CheckingForPotionsToRecycle, "Checking for potions to recycle, keeping {0}"), new KeyValuePair(Common.TranslationString.CheckingForRevivesToRecycle, "Checking for revives to recycle, keeping {0}"), + new KeyValuePair(Common.TranslationString.PokeballsToKeepIncorrect, "TotalAmountOfPokebalsToKeep is configured incorrectly. The number is smaller than 1."), + new KeyValuePair(Common.TranslationString.PotionsToKeepIncorrect, "TotalAmountOfPotionsToKeep is configured incorrectly. The number is smaller than 1."), + new KeyValuePair(Common.TranslationString.RevivesToKeepIncorrect, "TotalAmountOfRevivesToKeep is configured incorrectly. The number is smaller than 1."), new KeyValuePair(Common.TranslationString.InvFullTransferring, "Pokemon Inventory is full, transferring Pokemon..."), new KeyValuePair(Common.TranslationString.InvFullTransferManually, "Pokemon Inventory is full! Please transfer Pokemon manually or set TransferDuplicatePokemon to true in settings..."), new KeyValuePair(Common.TranslationString.InvFullPokestopLooting, "Inventory is full, no items looted!"), diff --git a/PoGo.NecroBot.Logic/Inventory.cs b/PoGo.NecroBot.Logic/Inventory.cs index f5177c264..c9a87a25b 100644 --- a/PoGo.NecroBot.Logic/Inventory.cs +++ b/PoGo.NecroBot.Logic/Inventory.cs @@ -229,21 +229,21 @@ public async Task> GetItemsToRecycle(ISession session) if (!_logicSettings.ItemRecycleFilter.Any(s => Pokeballs.Contains(s.Key))) { Logging.Logger.Write(session.Translation.GetTranslation(Common.TranslationString.CheckingForBallsToRecycle, amountOfPokeballsToKeep)); - var pokeballsToRecycle = GetPokeballsToRecycle(settings, myItems); + var pokeballsToRecycle = GetPokeballsToRecycle(session, myItems); itemsToRecylce.AddRange(pokeballsToRecycle); } if (!_logicSettings.ItemRecycleFilter.Any(s => Potions.Contains(s.Key))) { Logging.Logger.Write(session.Translation.GetTranslation(Common.TranslationString.CheckingForPotionsToRecycle, amountOfPotionsToKeep)); - var potionsToRecycle = GetPotionsToRecycle(settings, myItems); + var potionsToRecycle = GetPotionsToRecycle(session, myItems); itemsToRecylce.AddRange(potionsToRecycle); } if (!_logicSettings.ItemRecycleFilter.Any(s => Revives.Contains(s.Key))) { Logging.Logger.Write(session.Translation.GetTranslation(Common.TranslationString.CheckingForRevivesToRecycle, amountOfRevivesToKeep)); - var revivesToRecycle = GetRevivesToRecycle(settings, myItems); + var revivesToRecycle = GetRevivesToRecycle(session, myItems); itemsToRecylce.AddRange(revivesToRecycle); } @@ -263,12 +263,13 @@ public async Task> GetItemsToRecycle(ISession session) return itemsToRecylce; } - private List GetPokeballsToRecycle(ISettings settings, IReadOnlyList myItems) + private List GetPokeballsToRecycle(ISession session, IReadOnlyList myItems) { + var settings = session.Settings; var amountOfPokeballsToKeep = _logicSettings.TotalAmountOfPokebalsToKeep; if (amountOfPokeballsToKeep < 1) { - Logging.Logger.Write("TotalAmountOfPokebalsToKeep is configured incorrectly. The number is smaller than 1.", Logging.LogLevel.Error, ConsoleColor.Red); + Logging.Logger.Write(session.Translation.GetTranslation(Common.TranslationString.PokeballsToKeepIncorrect), Logging.LogLevel.Error, ConsoleColor.Red); return new List(); } @@ -278,12 +279,13 @@ private List GetPokeballsToRecycle(ISettings settings, IReadOnlyList GetPotionsToRecycle(ISettings settings, IReadOnlyList myItems) + private List GetPotionsToRecycle(ISession session, IReadOnlyList myItems) { + var settings = session.Settings; var amountOfPotionsToKeep = _logicSettings.TotalAmountOfPotionsToKeep; if (amountOfPotionsToKeep < 1) { - Logging.Logger.Write("TotalAmountOfPotionsToKeep is configured incorrectly. The number is smaller than 1.", Logging.LogLevel.Error, ConsoleColor.Red); + Logging.Logger.Write(session.Translation.GetTranslation(Common.TranslationString.PotionsToKeepIncorrect), Logging.LogLevel.Error, ConsoleColor.Red); return new List(); } @@ -293,12 +295,13 @@ private List GetPotionsToRecycle(ISettings settings, IReadOnlyList GetRevivesToRecycle(ISettings settings, IReadOnlyList myItems) + private List GetRevivesToRecycle(ISession session, IReadOnlyList myItems) { + var settings = session.Settings; var amountOfRevivesToKeep = _logicSettings.TotalAmountOfRevivesToKeep; if (amountOfRevivesToKeep < 1) { - Logging.Logger.Write("TotalAmountOfRevivesToKeep is wrong configured. The number is smaller than 1.", Logging.LogLevel.Error, ConsoleColor.Red); + Logging.Logger.Write(session.Translation.GetTranslation(Common.TranslationString.RevivesToKeepIncorrect), Logging.LogLevel.Error, ConsoleColor.Red); return new List(); }