From f60f6539ff802db48620a402ae91bea21b9919ae Mon Sep 17 00:00:00 2001 From: aeon0 Date: Thu, 23 Dec 2021 21:53:09 +0100 Subject: [PATCH] If in doubt, just use path a (#318) --- config/game.ini | 1 + src/run/nihlatak.py | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/game.ini b/config/game.ini index 9078aef..627a43a 100644 --- a/config/game.ini +++ b/config/game.ini @@ -134,6 +134,7 @@ ni2_circle_a=716,599 ni2_circle_b=1196,348 ni2_circle_c=686,38, 542,20 ni2_circle_d=186,272 +ni2_circle_back_to_a=136,507, 887,613, 838,490, 630,499 # Nilathak any of the 4 "arms" ni2_a_safe_dist=267,499, 279,533, 372,536, 283,529, 360,524, 513,553, 289,449, 154,219 ni2_b_safe_dist=864,373, 987,549, 842,521, 977,504, 886,453, 896,449, 861,461, 1206,279, 1068,569 diff --git a/src/run/nihlatak.py b/src/run/nihlatak.py index cb564a0..4e44ccf 100644 --- a/src/run/nihlatak.py +++ b/src/run/nihlatak.py @@ -88,9 +88,12 @@ class Nihlatak: end_nodes = data.end_nodes break - # exit if path was not found + # circle back and just assume path a if we failed to find the "eye" if end_nodes is None: - return False + self._pather.traverse_nodes_fixed("ni2_circle_back_to_a", self._char) + self._pather.traverse_nodes_fixed(check_arr[0].destination_static_path_key, self._char) + self._pather.traverse_nodes(check_arr[0].save_dist_nodes, self._char, time_out=2, do_pre_move=False) + end_nodes = check_arr[0].end_nodes # Attack & Pick items self._char.kill_nihlatak(end_nodes)