From ea1661a6773fd14c6703ee649e1184036c26f2e9 Mon Sep 17 00:00:00 2001 From: Carl Masak Date: Mon, 25 Jul 2011 14:09:06 +0200 Subject: [PATCH] open containers show contents when examined (John Gabriele)++ for reporting. --- crypt.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypt.pl b/crypt.pl index 980682c..5fd8636 100644 --- a/crypt.pl +++ b/crypt.pl @@ -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.";