Skip to content

Commit

Permalink
If in doubt, just use path a (aeon0#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeon0 authored Dec 23, 2021
1 parent 366f949 commit 788422e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/game.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions src/run/nihlatak.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ class EyeCheckData:
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)
Expand Down

0 comments on commit 788422e

Please sign in to comment.