From e840dbc621d2869de46aeb5fae68af6a2daaa035 Mon Sep 17 00:00:00 2001 From: cawk Date: Sun, 31 Jul 2016 16:43:55 +0100 Subject: [PATCH] Add Settings --- PoGo.NecroBot.Logic/ILogicSettings.cs | 2 ++ PoGo.NecroBot.Logic/Settings.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/PoGo.NecroBot.Logic/ILogicSettings.cs b/PoGo.NecroBot.Logic/ILogicSettings.cs index 5777b3b58..6ad7ea70b 100644 --- a/PoGo.NecroBot.Logic/ILogicSettings.cs +++ b/PoGo.NecroBot.Logic/ILogicSettings.cs @@ -82,6 +82,8 @@ public interface ILogicSettings int KeepMinDuplicatePokemon { get; } bool PrioritizeIvOverCp { get; } int AmountOfTimesToUpgradeLoop { get; } + + int GetMinStarDustForLevelUp { get; } int MaxTravelDistanceInMeters { get; } bool UseGpxPathing { get; } string GpxFile { get; } diff --git a/PoGo.NecroBot.Logic/Settings.cs b/PoGo.NecroBot.Logic/Settings.cs index d80824fa4..b176b06fa 100644 --- a/PoGo.NecroBot.Logic/Settings.cs +++ b/PoGo.NecroBot.Logic/Settings.cs @@ -103,6 +103,7 @@ public class GlobalSettings public bool AutomaticallyLevelUpPokemon = false; public int AmountOfTimesToUpgradeLoop = 5; + public int GetMinStarDustForLevelUp = 5000; public bool AutoUpdate = true; public double DefaultAltitude = 10; @@ -584,6 +585,7 @@ public LogicSettings(GlobalSettings settings) public bool AutomaticallyLevelUpPokemon => _settings.AutomaticallyLevelUpPokemon; public int AmountOfTimesToUpgradeLoop => _settings.AmountOfTimesToUpgradeLoop; public string LevelUpByCPorIv => _settings.LevelUpByCPorIv; + public int GetMinStarDustForLevelUp => _settings.GetMinStarDustForLevelUp; public float UpgradePokemonIvMinimum => _settings.UpgradePokemonIvMinimum; public float UpgradePokemonCpMinimum => _settings.UpgradePokemonCpMinimum; public double WalkingSpeedInKilometerPerHour => _settings.WalkingSpeedInKilometerPerHour;