-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add random delay for animation if new to dex #4714
Conversation
@mjmadsen, thanks for your PR! By analyzing the annotation information on this pull request, we identified @Quantra, @RedViper9 and @rawgni to be potential reviewers |
lgtm |
@rawgni you've had a chance to test? |
@@ -545,6 +549,10 @@ def _do_catch(self, pokemon, encounter_id, catch_rate_by_ball, is_vip=False): | |||
}, outfile) | |||
outfile.write('\n') | |||
|
|||
# if it is a new pokemon to our dex, simulate app animation delay | |||
if exp_gain >= 500: | |||
sleep (randrange(newtodex_wait_min, newtodex_wait_max)) |
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.
@mjmadsen the variable here should be catchsim_newtodex_wait_min and catchsim_newtodex_wait_max
@rawgni Fixed. 👍 |
Thanks, merging. |
Closes #4700