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".
This commit is contained in:
nethack.rankin
2007-06-02 23:30:57 +00:00
parent 2772b099eb
commit 9abdff361b

View File

@@ -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;
}