Skip to content

Commit

Permalink
Merge pull request #6828 from MahtraDR/pick_exit_no_key
Browse files Browse the repository at this point in the history
[scripts][pick]If using skeleton key, exit if can't get key
  • Loading branch information
MahtraDR authored Jun 2, 2024
2 parents fbe0504 + a6defa3 commit 6c5c774
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pick.lic
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,11 @@ class Pick

def try_unlock_box_with_key(box)
return unless @settings.use_skeleton_key
return unless DRCI.get_item_if_not_held?(@settings.skeleton_key)

unless DRCI.get_item_if_not_held?(@settings.skeleton_key)
echo("Couldn't get skeleton key. Exiting.")
exit
end

result = DRC.bput("turn my #{@settings.skeleton_key} at my #{box['noun']}", "^You turn", "that doesn't seem to do much", "I could not find", "What were you referring")
waitrt?
Expand Down

0 comments on commit 6c5c774

Please sign in to comment.