Opt: Shorter combat interact interval

in case missed the door
This commit is contained in:
LmeSzinc 2023-10-07 12:35:02 +08:00
parent f78049b155
commit b457e49421
2 changed files with 3 additions and 3 deletions

View File

@ -5,12 +5,12 @@ from tasks.map.assets.assets_map_control import A_BUTTON
class CombatInteract(UI):
def handle_combat_interact(self):
def handle_combat_interact(self, interval=2):
"""
Returns:
bool: If clicked.
"""
if self.appear_then_click(DUNGEON_COMBAT_INTERACT, interval=2):
if self.appear_then_click(DUNGEON_COMBAT_INTERACT, interval=interval):
return True
return False

View File

@ -211,7 +211,7 @@ class MapControl(Combat, AimDetectorMixin):
return result
if waypoint.interact_radius > 0:
if diff < waypoint.interact_radius:
self.handle_combat_interact()
self.handle_combat_interact(interval=1)
# Arrive
if near := self.minimap.is_position_near(waypoint.position, threshold=waypoint.get_threshold(end_opt)):