Skip to content

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