Skip to content

Commit

Permalink
astral high priests revisited (trunk only)
Browse files Browse the repository at this point in the history
     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".
  • Loading branch information
nethack.rankin committed Jun 2, 2007
1 parent 2772b09 commit 9abdff3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/priest.c
Original file line number Diff line number Diff line change
@@ -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. */

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 9abdff3

Please sign in to comment.