Skip to content

Commit

Permalink
burgle - update room to accept an array
Browse files Browse the repository at this point in the history
burgle room can now be an array and the script will go to the room that's closest to you.

```
burgle_settings:
  room: [1, 1001, 2001, 3001, 4001, 5001]
```
  • Loading branch information
BinuDR authored Aug 4, 2023
1 parent 274abc3 commit 3bb8cc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions burgle.lic
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ class Burgle
DRC.message("You have empty burgle_settings. These must be set before running.")
return false
end
if @burgle_room.is_a?(Array)
@burgle_room = DRCT.sort_destinations(@burgle_room)[0]
end
unless @burgle_room.is_a?(Integer)
DRC.message("Invalid burgle_settings:room setting. This must be room id of the room you want to burgle from.")
return false
Expand Down

0 comments on commit 3bb8cc5

Please sign in to comment.