diff --git a/PokemonGo.RocketAPI.Console/Configs/ConfigPokemonsNotToCatch.txt b/PokemonGo.RocketAPI.Console/Configs/ConfigPokemonsNotToCatch.txt new file mode 100644 index 000000000..e69de29bb diff --git a/PokemonGo.RocketAPI.Console/Settings.cs b/PokemonGo.RocketAPI.Console/Settings.cs index 5301b2cca..12f23bdd7 100644 --- a/PokemonGo.RocketAPI.Console/Settings.cs +++ b/PokemonGo.RocketAPI.Console/Settings.cs @@ -13,8 +13,9 @@ namespace PokemonGo.RocketAPI.Console public class Settings : ISettings { private ICollection _pokemonsNotToTransfer; - private ICollection _pokemonsToEvolve; + private ICollection _pokemonsNotToCatch; + public AuthType AuthType => (AuthType) Enum.Parse(typeof(AuthType), UserSettings.Default.AuthType, true); public string PtcUsername => UserSettings.Default.PtcUsername; public string PtcPassword => UserSettings.Default.PtcPassword; @@ -95,12 +96,15 @@ public ICollection PokemonsNotToTransfer } //Do not catch those - public ICollection PokemonsNotToCatch => new[] + public ICollection PokemonsNotToCatch { - //Add pokemon here - PokemonId.Pidgey, - PokemonId.Rattata - }; + get + { + //Type of pokemons not to catch + _pokemonsNotToCatch = _pokemonsNotToCatch ?? LoadPokemonList("Configs\\ConfigPokemonsNotToCatch.txt"); + return _pokemonsNotToCatch; + } + } private static ICollection LoadPokemonList(string filename) {