If in doubt, just use path a (#318)

This commit is contained in:
aeon0
2021-12-23 21:53:09 +01:00
committed by GitHub
parent 2cc9ee36c7
commit f60f6539ff
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -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
+5 -2
View File
@@ -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)