From bf14b81ede552b2961ad96f45daf62c29f94483b Mon Sep 17 00:00:00 2001 From: PatR Date: Tue, 16 Feb 2016 17:58:15 -0800 Subject: [PATCH] looking at hidden monsters followup The new code wasn't handling the Wizard mimicking another monster correctly for probing. --- src/pager.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pager.c b/src/pager.c index bff09ca28..3e95336b0 100644 --- a/src/pager.c +++ b/src/pager.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 pager.c $NHDT-Date: 1455672994 2016/02/17 01:36:34 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.92 $ */ +/* NetHack 3.6 pager.c $NHDT-Date: 1455674291 2016/02/17 01:58:11 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.93 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -106,11 +106,13 @@ char *outbuf; : an(obj_descr[STRANGE_OBJECT].oc_name)); if (fakeobj) dealloc_obj(otmp); - } else if (mon->m_ap_type == M_AP_MONSTER && altmon) { - Strcat(outbuf, an(mons[mon->mappearance].mname)); } else { Strcat(outbuf, something); } + } else if (mon->m_ap_type == M_AP_MONSTER) { + if (altmon) + Sprintf(outbuf, ", masquerading as %s", + an(mons[mon->mappearance].mname)); } else if (mon->mundetected) { Strcpy(outbuf, ", hiding"); if (hides_under(mon->data)) { -- 2.50.1