mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 08:37:42 +00:00
Opt: Shorter combat interact interval
in case missed the door
This commit is contained in:
parent
f78049b155
commit
b457e49421
@ -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
|
||||
|
@ -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)):
|
||||
|
Loading…
Reference in New Issue
Block a user