mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
0.3.1 hotfix: doesnt throw the stick back when action key is changed
This commit is contained in:
parent
bb83a33b82
commit
66eeb9d6f8
@ -1,2 +1,2 @@
|
||||
from fishy.__main__ import main
|
||||
__version__ = "0.3.0"
|
||||
__version__ = "0.3.1"
|
||||
|
@ -50,7 +50,7 @@ class Fishy:
|
||||
# initializes fishing modes and their callbacks
|
||||
FishingMode("hook", 0, HookEvent(action_key, collect_r))
|
||||
FishingMode("stick", 1, StickEvent())
|
||||
FishingMode("look", 2, LookEvent())
|
||||
FishingMode("look", 2, LookEvent(action_key))
|
||||
FishingMode("idle", 3, IdleEvent(self.config.get("uid")))
|
||||
|
||||
self.fishPixWindow = Window(color=cv2.COLOR_RGB2HSV)
|
||||
|
@ -58,12 +58,15 @@ class LookEvent(FishEvent):
|
||||
state when looking on a fishing hole
|
||||
"""
|
||||
|
||||
def __init__(self, action_key: str):
|
||||
self.action_key = action_key
|
||||
|
||||
def onEnterCallback(self, previousMode):
|
||||
"""
|
||||
presses e to throw the fishing rod
|
||||
:param previousMode: previous mode in the state machine
|
||||
"""
|
||||
pyautogui.press('e')
|
||||
pyautogui.press(self.action_key)
|
||||
|
||||
def onExitCallback(self, currentMode):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user