-
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
Experimental #5002 #5106
Experimental #5002 #5106
Conversation
@sohje, thanks for your PR! By analyzing the annotation information on this pull request, we identified @douglascamata, @TheSavior and @z4ppy to be potential reviewers |
question (can't undertand code ) when it stop near fort, gps noise is active or is extremely fixed? |
@sohje I cannot see how you are waiting... |
@th3w4y We filter forts by 'active_fort_modifier' if self.wait_at_fort enabled. |
x.get('active_fort_modifier', False) and self.wait_at_fort | ||
), | ||
forts | ||
) |
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.
is this still removing the forts on timeout?
In [31]: wait_at_fort = True
In [32]: forts
Out[32]:
[{'active': True, 'id': 10},
{'active': True, 'id': 20},
{'active': True, 'id': 40}]
In [33]: timeouts_ids
Out[33]: [10, 20, 30]
In [34]: filter(lambda q: q["id"] not in timeouts_ids or (q.get("active", False) and wait_at_fort), forts)
Out[34]:
[{'active': True, 'id': 10},
{'active': True, 'id': 20},
{'active': True, 'id': 40}]
In [35]:
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.
Nope, cause we dont need to care about forts_on timeout here. We standing and waiting for lures and spin fort with lure module on timeout(check spin_fort.py update L186)
Nice PR ! thanks you :) |
@sohje Will it spin forts when wait on fort? is the |
@solderzzc Yeap, bot will spin forts. def get_forts_in_range(self):
forts = self.bot.get_forts(order_by_distance=True)
now = time.time() * 1000
forts = filter(lambda x: x.get('cooldown_complete_timestamp_ms', 0) < now, forts)
# forts = filter(lambda fort: fort["id"] not in self.bot.fort_timeouts, forts) |
@solderzzc re-approve and merge? |
Short Description:
Experimental wait at fort with lure module plugged
Fixes/Resolves/Closes (please use correct syntax):
To enable:
TODO: