Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When no Fort is nearby, bot attempts to call GetMapObjects() quickly. #1649

Merged
merged 2 commits into from
Aug 1, 2016
Merged

When no Fort is nearby, bot attempts to call GetMapObjects() quickly. #1649

merged 2 commits into from
Aug 1, 2016

Conversation

dddbliss
Copy link
Contributor

@dddbliss dddbliss commented Aug 1, 2016

Applies a 30 second cooldown to the check for the next stop is there is no more nearby. Also fixes a bug where if you set MaxTravelDistanceInMeters to 0 it would attempt to spin forts.

I am open to comments on where to put it, it seemed the best place for the cooldown that was reachable for other places was in Navigation.

dddbliss added 2 commits July 31, 2016 18:18
…are no nearby Forts. Also fix logic so if MaxTravel is 0, we don't hit gyms.
@NecronomiconCoding NecronomiconCoding merged commit 074af4a into NecronomiconCoding:master Aug 1, 2016
@dddbliss dddbliss deleted the feature/getmapobjects_fix branch August 9, 2016 01:46
schnapster pushed a commit to schnapster/NecroBot that referenced this pull request Dec 8, 2016
…apobjects_fix

When no Fort is nearby, bot attempts to call GetMapObjects() quickly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants