Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/eloot.lic
Original file line number Diff line number Diff line change
Expand Up @@ -4563,7 +4563,7 @@ module ELoot # Room looting

box_list.each do |box|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure the regex exactly matches the game's current locked message. If the message changes in the future, consider parameterizing or expanding the match to cover variations.

line = ELoot.get_res("open ##{box.id}", /open|locked/)
next if line&.match?(/That is locked/)
next if line&.match?(/It appears to be locked/)

quiet_msg = ELoot.data.settings[:display_box_contents] ? false : true
ELoot.get_command("look in ##{box.id}", ELoot.data.look_regex, silent: quiet_msg, quiet: quiet_msg)
Expand Down