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:
10
src/priest.c
10
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user