From: nethack.allison Date: Sun, 14 Jul 2002 15:59:04 +0000 (+0000) Subject: do_look at warning co-located with boulder X-Git-Tag: MOVE2GIT~2639 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24cb5a7e3e09e114e827d23033a649f9835ca8d6;p=nethack 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. --- 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*/ } }