Skip to content

Commit

Permalink
open containers show contents when examined
Browse files Browse the repository at this point in the history
(John Gabriele)++ for reporting.
  • Loading branch information
Carl Masak committed Jul 25, 2011
1 parent fef6779 commit ea1661a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypt.pl
Expand Up @@ -198,6 +198,10 @@ ()
if there_is_light() {
say $!description;
self.?on_examine;
if self !~~ Room && player_can_see_inside(self) && self.contents {
say "The ", self.name, " contains:";
self.list_container_contents("A %s");
}
}
else {
say "You can't see anything, because it's pitch black.";
Expand Down

0 comments on commit ea1661a

Please sign in to comment.