fine-tuning

This commit is contained in:
mgleed
2021-11-24 16:19:02 -05:00
parent 00833e3228
commit 16b6f9d231
2 changed files with 2 additions and 2 deletions

View File

@@ -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")

View File

@@ -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)