fine-tuning
This commit is contained in:
@@ -30,7 +30,7 @@ class IChar:
|
||||
# It actually is 0.04s per frame but many people have issues with it (because of lag?)
|
||||
self._cast_duration = self._char_config["casting_frames"] * 0.05 + 0.04
|
||||
|
||||
def pick_up_item(self, pos: Tuple[float, float], item_name: str = ''):
|
||||
def pick_up_item(self, pos: Tuple[float, float], item_name: str = None):
|
||||
mouse.move(pos[0], pos[1])
|
||||
time.sleep(0.1)
|
||||
mouse.click(button="left")
|
||||
|
||||
@@ -19,7 +19,7 @@ class Sorceress(IChar):
|
||||
super().__init__(skill_hotkeys, char_config, screen, template_finder, ui_manager)
|
||||
self._pather = pather
|
||||
|
||||
def pick_up_item(self, pos: Tuple[float, float], item_name: str = ''):
|
||||
def pick_up_item(self, pos: Tuple[float, float], item_name: str = None):
|
||||
if self._skill_hotkeys["telekinesis"] and any(x in item_name for x in ['potion', 'misc_gold']):
|
||||
keyboard.send(self._skill_hotkeys["telekinesis"])
|
||||
wait(0.1, 0.2)
|
||||
|
||||
Reference in New Issue
Block a user