From 9abdff361ba214d5ae6f473c4da562967dbc8c9a Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Sat, 2 Jun 2007 23:30:57 +0000 Subject: [PATCH] astral high priests revisited (trunk only) Prevent remote ID of the three high priests on the Astral Plane via wand of probing or via their own actions (observing "high priest of Foo drinks a potion of speed" and so forth). When not immediately adjacent, you'll get "the high priestess" instead of "the high priestess of Foo". --- src/priest.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/priest.c b/src/priest.c index 09ed521c9..e6efb0b93 100644 --- a/src/priest.c +++ b/src/priest.c @@ -1,4 +1,4 @@ -/* SCCS Id: @(#)priest.c 3.5 2007/01/06 */ +/* SCCS Id: @(#)priest.c 3.5 2007/06/02 */ /* Copyright (c) Izchak Miller, Steve Linhart, 1989. */ /* NetHack may be freely redistributed. See license for details. */ @@ -313,8 +313,12 @@ char *pname; /* caller-supplied output buffer */ } Strcat(pname, what); - Strcat(pname, " of "); - Strcat(pname, halu_gname(mon_aligntyp(mon))); + /* same as distant_monnam(), more or less... */ + if (do_hallu || !high_priest || !Is_astralevel(&u.uz) || + distu(mon->mx, mon->my) <= 2 || program_state.gameover) { + Strcat(pname, " of "); + Strcat(pname, halu_gname(mon_aligntyp(mon))); + } return pname; }