From 24cb5a7e3e09e114e827d23033a649f9835ca8d6 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sun, 14 Jul 2002 15:59:04 +0000 Subject: [PATCH] do_look at warning co-located with boulder This does not fix a reported bug where you can't attack a hidden creature that is co-located with a boulder, but it might assist the player in understanding what is going on. --- src/pager.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pager.c b/src/pager.c index 1d794754d..9d1f6b8a2 100644 --- a/src/pager.c +++ b/src/pager.c @@ -642,6 +642,10 @@ do_look(quick) } else { found += append_str(out_str, def_warnsyms[i].explanation); } + /* Kludge: warning trumps boulders on the display. + Reveal the boulder too or player can get confused */ + if (sobj_at(BOULDER, cc.x, cc.y)) + Strcat(out_str, " co-located with a boulder"); break; /* out of for loop*/ } }