Skip to content

Commit

Permalink
Added CatchWildPokemon toggle in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ActuallyTrent committed Aug 6, 2016
1 parent 84d62e3 commit beb76ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PoGo.PokeMobBot.Logic/ILogicSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ public interface ILogicSettings
int SnipeLocationServerPort { get; }
string SnipeLocationServer { get; }
int SnipeRequestTimeoutSeconds { get; }
bool CatchWildPokemon { get; }

//paths
string GeneralConfigPath { get; }
Expand All @@ -201,5 +202,6 @@ public interface ILogicSettings

Dictionary<PokemonId, TransferFilter> PokemonsTransferFilter { get; }
SnipeSettings PokemonToSnipe { get; }

}
}
4 changes: 4 additions & 0 deletions PoGo.PokeMobBot.Logic/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ public class LocationSettings

public class CatchSettings
{
public bool CatchWildPokemon = true;

//catch
public bool HumanizeThrows = false;
public double ThrowAccuracyMin = 0.80;
Expand Down Expand Up @@ -839,5 +841,7 @@ public LogicSettings(GlobalSettings settings)
public float UseBerryMinIv => _settings.CatchSettings.UseBerryMinIv;
public double UseBerryBelowCatchProbability => _settings.CatchSettings.UseBerryBelowCatchProbability;

public bool CatchWildPokemon => _settings.CatchSettings.CatchWildPokemon;

}
}

0 comments on commit beb76ab

Please sign in to comment.