From d4d1b46dfd2164a38737cd9a8eda2c0d9a0134b5 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Fri, 19 Apr 2024 00:34:05 +0800 Subject: [PATCH] Fix: screen2direction gets high DomainDoor when going downhills --- tasks/rogue/route/exit.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/rogue/route/exit.py b/tasks/rogue/route/exit.py index 7f385dedd..f8ee3c319 100644 --- a/tasks/rogue/route/exit.py +++ b/tasks/rogue/route/exit.py @@ -112,6 +112,9 @@ class RogueExit(CombatInteract): distant_point = np.array((1509.46, 247.34)) name_y = 77.60 foot_y = 621.82 + if point < 80: + logger.warning(f'screen2direction: Point {point} to high') + point[1] = 80 door_projection_bottom = ( Points([point]).link(vanish_point).get_x(name_y)[0], @@ -129,6 +132,8 @@ class RogueExit(CombatInteract): door_projection_bottom[0] - screen_middle[0], door_projection_bottom[0] - door_distant[0], ) + if planar_door[1] < 0: + logger.warning('screen2direction: planer_door at back') if abs(planar_door[0]) < 5: direction = 0 else: