A2 Pathing + Arcane run + Static for Sorc + Static Tele robustification + Chest class (#348)

This commit is contained in:
aeon0
2022-01-01 14:15:13 +01:00
committed by GitHub
parent 0fe0b55661
commit d8942f92b4
108 changed files with 492 additions and 52 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class UiManager():
:param act: Index of the desired act starting at 1 [A1 = 1, A2 = 2, A3 = 3, ...]
:param idx: Index of the waypoint from top. Note that it start at 0!
"""
str_to_idx_map = {"WP_A3_ACTIVE": 3, "WP_A4_ACTIVE": 4, "WP_A5_ACTIVE": 5}
str_to_idx_map = {"WP_A2_ACTIVE": 2, "WP_A3_ACTIVE": 3, "WP_A4_ACTIVE": 4, "WP_A5_ACTIVE": 5}
template_match = self._template_finder.search([*str_to_idx_map], self._screen.grab(), threshold=0.7, best_match=True, roi=self._config.ui_roi["wp_act_roi"])
curr_active_act = str_to_idx_map[template_match.name] if template_match.valid else -1
if curr_active_act != act: