]> granicus.if.org Git - nethack/commitdiff
lookat() trapped detail
authornethack.allison <nethack.allison>
Sun, 30 Jun 2002 00:52:49 +0000 (00:52 +0000)
committernethack.allison <nethack.allison>
Sun, 30 Jun 2002 00:52:49 +0000 (00:52 +0000)
<email deleted>
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.

src/pager.c

index d89e6908637fb8688728d295898c7ea1a1fc55fe..07233422453589844993bade1143040f72d8807f 100644 (file)
@@ -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);
+               }
            }
 
            {