mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 08:37:42 +00:00
Opt: Faster retry after contract lost
This commit is contained in:
parent
b0acd6aac8
commit
0b1c9a1c9d
@ -169,8 +169,8 @@ class MapControl(Combat, AimDetectorMixin):
|
||||
self.aim.predict(self.device.image)
|
||||
diff = self.minimap.position_diff(waypoint.position)
|
||||
direction = self.minimap.position2direction(waypoint.position)
|
||||
rotation_diff = self.minimap.direction_diff(direction)
|
||||
logger.info(f'Position diff: {diff}, rotation: {rotation_diff}')
|
||||
rotation_diff = self.minimap.rotation_diff(direction)
|
||||
logger.info(f'Pdiff: {diff}, Ddiff: {direction}, Rdiff: {rotation_diff}')
|
||||
|
||||
# Interact
|
||||
if self.aim.aimed_enemy:
|
||||
|
@ -147,7 +147,7 @@ class MapControlJoystick(UI):
|
||||
map_E_timer = Timer(1)
|
||||
map_run_2x_timer = Timer(1)
|
||||
|
||||
joystick_lost_timer = Timer(1, count=2)
|
||||
joystick_lost_timer = Timer(1, count=1)
|
||||
|
||||
@cached_property
|
||||
def joystick_center(self) -> tuple[int, int]:
|
||||
|
Loading…
Reference in New Issue
Block a user