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

Improve walking #42

Merged
merged 1 commit into from
Jul 24, 2016
Merged

Improve walking #42

merged 1 commit into from
Jul 24, 2016

Conversation

Gary-BOT
Copy link
Contributor

Short Description:

Walking would travel to the ends of the earths in some cases, this was unnecessary.

Changes:

  • Refactor monolith method inside of init.py into smaller bitesize chunks.
  • Ensure we only walk to nearby, available Pokestops

@OpenPoGo/maintainers

@Gary-BOT Gary-BOT force-pushed the feature/pokestop_improvements branch 2 times, most recently from 9745a9b to c77feb6 Compare July 24, 2016 14:20
@MaxLeiter
Copy link
Contributor

MaxLeiter commented Jul 24, 2016

Possibly unrelated to the PR, but while catching worked fine my bot account was softbanned as soon as it went to a pokestop (or, at least, reported being softbanned)

EDIT: doesn't seem the account was soft-banned due to catching pokemon on another run, so I think this PR causes the soft-ban message to show unnecessarily.

EDIT2: Tried PR again, worked at one pokestop then soft-ban warning

@Gary-BOT Gary-BOT force-pushed the feature/pokestop_improvements branch 2 times, most recently from a89f404 to 211786e Compare July 24, 2016 14:36
@Maximum-throwaway
Copy link

@MaxLeiter I had that issue too until I noticed that @Gary-BOT is merging from a branch on this repo, not their own. Double check that.

Anyways, I tested this with Gary for a good 30 minutes or so working out some interesting edge cases. LGTM

@jtdroste
Copy link
Contributor

Just adding some information from slack. Seems like a movement speed of 30 == softban.

@MaxLeiter
Copy link
Contributor

MaxLeiter commented Jul 24, 2016

👍 from me, nice work 💯

Approved with PullApprove

def work_on_cell(self, map_cells, position, include_fort_on_path):
self._remove_ignored_pokemon(map_cells)

if (self.config.mode == "all" or self.config.mode == "poke"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we make this and the lines below on if statement? Or is there a reason to not do so?

@meyer9
Copy link
Contributor

meyer9 commented Jul 24, 2016

👍 seems ready to merge

Approved with PullApprove

@jtdroste
Copy link
Contributor

jtdroste commented Jul 24, 2016

Branch needs to be updated / rebased

👎

Rejected with PullApprove

@Gary-BOT Gary-BOT force-pushed the feature/pokestop_improvements branch from 211786e to 6ae10b3 Compare July 24, 2016 15:15
@jtdroste
Copy link
Contributor

jtdroste commented Jul 24, 2016

👍
🎉

Approved with PullApprove

@meyer9
Copy link
Contributor

meyer9 commented Jul 24, 2016

👍

Approved with PullApprove

@MaxLeiter
Copy link
Contributor

MaxLeiter commented Jul 24, 2016

👍

Approved with PullApprove

@jtdroste jtdroste merged commit d8f642d into master Jul 24, 2016
@jtdroste
Copy link
Contributor

🎉

@jtdroste jtdroste deleted the feature/pokestop_improvements branch July 24, 2016 15:17
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.

5 participants