-
Notifications
You must be signed in to change notification settings - Fork 149
Encounter limited to lvl30+ #307
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
Open
sebast1219
wants to merge
45
commits into
Noctem:develop
Choose a base branch
from
sebast1219:encounter_30
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
7792ae7
WIP
Noctem 5321881
WIP2
Noctem b7d0ad1
WIP3
Noctem d2441b7
Use pogeo's AltitudeCache
Noctem ec1cc6f
Update solve_captchas
Noctem 9861703
DB improvements
Noctem da68e70
Small Travis improvement
Noctem 013d745
WIP4
Noctem b0cd60f
Update JS
Noctem b06b4fc
Update jquery to 3.2.1
Noctem 88e5f2d
lint and clang-format main.js
Noctem e8d4f31
Update displaying scan area for new shape types
Noctem 90ad98b
Speed up PokéStop responses
Noctem 7784e98
Use AioSightingCache in web_sanic
Noctem 6ca81f8
Update web.py for pogeo changes
Noctem 9b72cb7
Skip tasks that are now done server-side
Noctem 9075028
Add favicon and tidy up HTML
Noctem 5ed1dcf
Merge branch 'develop' into WIP
Noctem 8ff947c
Change requirements to use pogeo develop branch
Noctem 98b9cab
Merge branch 'develop' into WIP
Noctem 90441a1
Merge branch 'develop' into WIP
Noctem d291663
Use AioSpawnCache
Noctem e4baa9c
Use pogeo shapes instead of shapely for landmarks
Noctem b810e2b
Add a script for converting landmarks config
Noctem 12d1a85
Bug fixes
Noctem 0ea754e
Merge branch 'develop' into WIP
Noctem aa6770d
Merge remote-tracking branch 'upstream/develop' into develop
b2d9ecd
ff23ca3
f687ebc
f8e8190
993ca61
a1785e2
eb4c1e8
af9171a
Merge remote-tracking branch 'upstream/develop' into develop
96d84c0
4ffff07
741363a
8a2c5e1
Merge remote-tracking branch 'upstream/develop' into develop
5476e33
677a9ab
Removing cp from this branch
sebast1219 ae997b8
Resetting error codes
sebast1219 9d7f45f
Clean branch
sebast1219 bbcd3f4
462bc0f
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -786,9 +786,10 @@ async def visit_point(self, point, spawn_id, bootstrap, | |
|
|
||
| if (normalized not in SIGHTING_CACHE and | ||
| normalized not in MYSTERY_CACHE): | ||
| if (encounter_conf == 'all' | ||
| if ((encounter_conf == 'all' | ||
| or (encounter_conf == 'some' | ||
| and normalized['pokemon_id'] in conf.ENCOUNTER_IDS)): | ||
| and normalized['pokemon_id'] in conf.ENCOUNTER_IDS)) | ||
| and self.player_level != None and self.player_level >= 30): | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
or something like that |
||
| try: | ||
| await self.encounter(normalized, pokemon.spawn_point_id) | ||
| except CancelledError: | ||
|
|
||
Empty file.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, but doesn't this mean that if there is no level 30 worker nearby it just won't encounter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact we shouldn't encounter with a bot less than lvl30 because IV and CPs are same just for lvl30+
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as information is sent to webooks even if no encounter happened.
So we atleast can get notified of a pokemon with no IV info, than no pokemon at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No encounter doesn't mean no pokemon...
Encounter is used to get IV, CP and moves