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

layer-farms-find: limit farm portals to desired min level #1308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maqifrnswa
Copy link

Portals listed as possible farm portals should be at least the minlevel. This fixes a a crazy corner case I came across:
4 farm-level portals in a cluster, two level 1 portals about 400m east, then another farm-level portal 400m east of the level 1 portals.
The current algorithm thinks the 2 level 1 portals are a farm (since 5 farm-level portals are within 500m radius of the level 1 portals) and draws a circle only around the two level 1 portals.

Alternatively, this check can be placed in the "getNearbyPortalCount" function.

Portals listed as possible farm portals should be at least the minlevel. This fixes a a crazy corner case I came across:
4 farm-level portals in a cluster, two level 1 portals about 400m east, then another farm-level portal 400m east of the level 1 portals.
The current algorithm thinks the 2 level 1 portals are a farm (since 5 farm-level portals are within 500m radius of the level 1 portals) and draws a circle only around the two level 1 portals.

Alternatively, this check can be placed in the "getNearbyPortalCount" function.
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.

1 participant