Skip to content

Commit

Permalink
Fix debug error and Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
cawk committed Aug 9, 2016
1 parent 5e115e8 commit fd7c8e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PoGo.NecroBot.Logic/ILogicSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public interface ILogicSettings

int DelayBetweenPokemonCatch { get; }
bool AutomaticallyLevelUpPokemon { get; }
bool OnlyUpgradeFaveriots { get; }
bool OnlyUpgradeFavorites { get; }
bool UseLevelUpList { get; }
string LevelUpByCPorIv { get; }
float UpgradePokemonCpMinimum { 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 @@ -276,7 +276,7 @@ public class GlobalSettings
[DefaultValue(false)]
public bool AutomaticallyLevelUpPokemon;
[DefaultValue(true)]
public bool OnlyUpgradeFaveriots;
public bool OnlyUpgradeFavorites;

[DefaultValue((true))]
public bool UseLevelUpList;
Expand Down Expand Up @@ -1235,7 +1235,7 @@ public LogicSettings(GlobalSettings settings)
public int KeepMinLvl => _settings.KeepMinLvl;
public bool UseKeepMinLvl => _settings.UseKeepMinLvl;
public bool AutomaticallyLevelUpPokemon => _settings.AutomaticallyLevelUpPokemon;
public bool OnlyUpgradeFaveriots => _settings.OnlyUpgradeFaveriots;
public bool OnlyUpgradeFavorites => _settings.OnlyUpgradeFavorites;
public bool UseLevelUpList => _settings.UseLevelUpList;
public int AmountOfTimesToUpgradeLoop => _settings.AmountOfTimesToUpgradeLoop;
public string LevelUpByCPorIv => _settings.LevelUpByCPorIv;
Expand Down
6 changes: 3 additions & 3 deletions PoGo.NecroBot.Logic/Tasks/LevelUpPokemonTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public static async Task Execute(ISession session, CancellationToken cancellatio
{


// if (session.Inventory.GetStarDust() <= session.LogicSettings.GetMinStarDustForLevelUp)
// return;
if (session.LogicSettings.OnlyUpgradeFaveriots)
if (session.Inventory.GetStarDust() <= session.LogicSettings.GetMinStarDustForLevelUp)
return;
if (session.LogicSettings.OnlyUpgradeFavorites)
{
upgradablePokemon = await session.Inventory.GetFaveriotPokemon();
}
Expand Down

0 comments on commit fd7c8e5

Please sign in to comment.