Allow bo and bc for weapon switch (#373)

This commit is contained in:
aeon0
2022-01-01 20:24:36 +01:00
committed by GitHub
parent 36d5f2a532
commit 32011d815b
4 changed files with 3 additions and 3 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

+1 -1
View File
@@ -164,7 +164,7 @@ class IChar:
wait(0.3, 0.35)
keyboard.send(self._char_config["battle_command"])
wait(0.1, 0.19)
if self._ui_manager.is_right_skill_selected(["BC"]):
if self._ui_manager.is_right_skill_selected(["BC", "BO"]):
switch_sucess = True
break
+2 -2
View File
@@ -73,7 +73,7 @@ class UiManager():
:return: Bool if skill is currently the selected skill on the right skill slot.
"""
for template in template_list:
if self._template_finder.search(template, self._screen.grab(), threshold=0.87, roi=self._config.ui_roi["skill_right"]).valid:
if self._template_finder.search(template, self._screen.grab(), threshold=0.84, roi=self._config.ui_roi["skill_right"]).valid:
return True
return False
@@ -82,7 +82,7 @@ class UiManager():
:return: Bool if skill is currently the selected skill on the left skill slot.
"""
for template in template_list:
if self._template_finder.search(template, self._screen.grab(), threshold=0.87, roi=self._config.ui_roi["skill_left"]).valid:
if self._template_finder.search(template, self._screen.grab(), threshold=0.84, roi=self._config.ui_roi["skill_left"]).valid:
return True
return False