Merge pull request #114 from fishyboteso/bugfix/look-hole-racing

This commit is contained in:
Adam Saudagar 2022-04-15 07:01:59 +05:30 committed by GitHub
commit 5f040aafd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -91,6 +91,7 @@ class Player(IMode):
return
self.engine.fisher.turn_on()
helper.wait_until(lambda: self.engine.fisher.first_loop_done)
# scan for fish hole
logging.info("scanning")
# if found start fishing and wait for hole to complete

View File

@ -23,6 +23,7 @@ class SemiFisherEngine(IEngine):
self.window = None
self.values = None
self.name = "SemiFisher"
self.first_loop_done = False
def run(self):
"""
@ -53,6 +54,7 @@ class SemiFisherEngine(IEngine):
print_exc()
fishing_event.unsubscribe()
self.first_loop_done = False
def _engine_loop(self):
skip_count = 0
@ -78,6 +80,7 @@ class SemiFisherEngine(IEngine):
if self.values:
fishing_mode.loop(self.values[3])
self.first_loop_done = True
time.sleep(0.1)
def _wait_and_check(self):