From: nethack.allison Date: Sun, 30 Jun 2002 00:52:49 +0000 (+0000) Subject: lookat() trapped detail X-Git-Tag: MOVE2GIT~2712 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65325f40675f7ed535c23de805cfaeddd658ba54;p=nethack lookat() trapped detail Sent: Thursday, June 13, 2002 12:03 PM Subject: Beta 1 comments >A minor thing, but it'd be nice if the "trapped" now in lookat() >had a defsyms[trap_to_defsym(tt)].explanation to tell you _how_ >the monster's trapped. --- diff --git a/src/pager.c b/src/pager.c index d89e69086..072334224 100644 --- a/src/pager.c +++ b/src/pager.c @@ -127,8 +127,10 @@ lookat(x, y, buf, monbuf) /* newsym lets you know of the trap, so mention it here */ if (tt == BEAR_TRAP || tt == PIT || - tt == SPIKED_PIT ||tt == WEB) - Strcat(buf, ", trapped"); + tt == SPIKED_PIT ||tt == WEB) { + Strcat(buf, ", trapped in "); + Strcat(buf, defsyms[trap_to_defsym(tt)].explanation); + } } {