Skip to content

Commit

Permalink
Merge pull request #3212 from Saiteik/master
Browse files Browse the repository at this point in the history
PokemonCatch event logging cleanup
  • Loading branch information
GrimmGringo committed Aug 8, 2016
2 parents 402fc38 + faf7a9b commit ac1e9b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PoGo.NecroBot.Logic/ILogicSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public interface ILogicSettings
int TotalAmountOfRevivesToKeep { get; }
int TotalAmountOfBerriesToKeep { get; }

bool ShowPokeballCountsBeforeRecycle { get; }
bool DetailedCountsBeforeRecycling { get; }
bool VerboseRecycling { get; }
double RecycleInventoryAtUsagePercentage { get; }
double EvolveKeptPokemonsAtStorageUsagePercentage { get; }
Expand Down
4 changes: 2 additions & 2 deletions PoGo.NecroBot.Logic/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public class GlobalSettings
[DefaultValue(10)]
public int AmountOfPokemonToDisplayOnStart;
[DefaultValue(true)]
public bool ShowPokeballCountsBeforeRecycle;
public bool DetailedCountsBeforeRecycling;
//pokemon
[DefaultValue(true)]
public bool CatchPokemon;
Expand Down Expand Up @@ -1266,7 +1266,7 @@ public LogicSettings(GlobalSettings settings)
public int AmountOfPokemonToDisplayOnStart => _settings.AmountOfPokemonToDisplayOnStart;
public bool DumpPokemonStats => _settings.DumpPokemonStats;
public string TranslationLanguageCode => _settings.TranslationLanguageCode;
public bool ShowPokeballCountsBeforeRecycle => _settings.ShowPokeballCountsBeforeRecycle;
public bool DetailedCountsBeforeRecycling => _settings.DetailedCountsBeforeRecycling;
public bool VerboseRecycling => _settings.VerboseRecycling;
public double RecycleInventoryAtUsagePercentage => _settings.RecycleInventoryAtUsagePercentage;
public double EvolveKeptPokemonsAtStorageUsagePercentage => _settings.EvolveKeptPokemonsAtStorageUsagePercentage;
Expand Down
8 changes: 4 additions & 4 deletions PoGo.NecroBot.Logic/Tasks/RecycleItemsTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static async Task Execute(ISession session, CancellationToken cancellatio
var currentAmountOfUltraballs = await session.Inventory.GetItemAmountByType(ItemId.ItemUltraBall);
var currentAmountOfMasterballs = await session.Inventory.GetItemAmountByType(ItemId.ItemMasterBall);

if (session.LogicSettings.ShowPokeballCountsBeforeRecycle)
if (session.LogicSettings.DetailedCountsBeforeRecycling)
Logger.Write(session.Translation.GetTranslation(TranslationString.CurrentPokeballInv,
currentAmountOfPokeballs, currentAmountOfGreatballs, currentAmountOfUltraballs,
currentAmountOfMasterballs));
Expand All @@ -38,7 +38,7 @@ public static async Task Execute(ISession session, CancellationToken cancellatio

var currentAmountOfPotions = currentPotions + currentSuperPotions + currentHyperPotions + currentMaxPotions;

if (session.LogicSettings.ShowPokeballCountsBeforeRecycle)
if (session.LogicSettings.DetailedCountsBeforeRecycling)
Logger.Write(session.Translation.GetTranslation(TranslationString.CurrentPotionInv,
currentPotions, currentSuperPotions, currentHyperPotions, currentMaxPotions));

Expand All @@ -47,7 +47,7 @@ public static async Task Execute(ISession session, CancellationToken cancellatio

var currentAmountOfRevives = currentRevives + currentMaxRevives;

if (session.LogicSettings.ShowPokeballCountsBeforeRecycle)
if (session.LogicSettings.DetailedCountsBeforeRecycling)
Logger.Write(session.Translation.GetTranslation(TranslationString.CurrentReviveInv,
currentRevives, currentMaxRevives));

Expand All @@ -63,7 +63,7 @@ public static async Task Execute(ISession session, CancellationToken cancellatio
var currentAmountOfLuckyEggs = await session.Inventory.GetItemAmountByType(ItemId.ItemLuckyEgg);
var currentAmountOfLures = await session.Inventory.GetItemAmountByType(ItemId.ItemTroyDisk);

if (session.LogicSettings.ShowPokeballCountsBeforeRecycle)
if (session.LogicSettings.DetailedCountsBeforeRecycling)
Logger.Write(session.Translation.GetTranslation(TranslationString.CurrentMiscItemInv,
currentAmountOfBerries, currentAmountOfIncense, currentAmountOfLuckyEggs, currentAmountOfLures));

Expand Down

0 comments on commit ac1e9b1

Please sign in to comment.