Opt: Faster retry after contract lost

This commit is contained in:
LmeSzinc 2023-10-02 17:17:06 +08:00
parent b0acd6aac8
commit 0b1c9a1c9d
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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]: