Skip to content

Commit

Permalink
[scripts][common-travel] Expand nemesis avoidance
Browse files Browse the repository at this point in the history
Avoids a room with a nemesis in it, even if a friend is in that room.
  • Loading branch information
MahtraDR committed Feb 17, 2024
1 parent 08920e0 commit 2bba05c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common-travel.lic
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ module DRCT
rooms_searched += 1

if priotize_buddies && (rooms_searched <= search_rooms.size)
suitable_room = (DRRoom.pcs & UserVars.friends).any?
if (rooms_searched == search_rooms.size && (DRRoom.pcs & UserVars.friends).empty?)
suitable_room = ((DRRoom.pcs & UserVars.friends).any? && (DRRoom.pcs & UserVars.hunting_nemesis).none?)
if (rooms_searched == search_rooms.size && (DRRoom.pcs & UserVars.friends).empty? && (DRRoom.pcs & UserVars.hunting_nemesis).empty?)
echo("*** Reached last room in list, and found no buddies. Retrying for empty room. ***")
return find_empty_room(search_rooms, idle_room, predicate, min_mana, strict_mana, max_search_attempts, priotize_buddies = false)
end
Expand Down

0 comments on commit 2bba05c

Please sign in to comment.