Angels used the epri extension even though they're never priests,
presumeably because they're sometimes flagged as "renegade". Since the
only priests ever flagged as renegade are roaming minions rather than
temple priests, move the renegade flag to the emin extension and switch
Angels over to that. Summoned Angels will now always have the isminion
flag set.
Makefiles need updating: monst.{c,o} now depends upon emin.h.
22 lines
609 B
C
22 lines
609 B
C
/* SCCS Id: @(#)epri.h 3.5 2005/11/02 */
|
|
/* Copyright (c) Izchak Miller, 1989. */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#ifndef EPRI_H
|
|
#define EPRI_H
|
|
|
|
struct epri {
|
|
aligntyp shralign; /* alignment of priest's shrine */
|
|
/* leave as first field to match emin */
|
|
schar shroom; /* index in rooms */
|
|
coord shrpos; /* position of shrine */
|
|
d_level shrlevel; /* level (& dungeon) of shrine */
|
|
};
|
|
|
|
#define EPRI(mon) ((struct epri *)&(mon)->mextra[0])
|
|
|
|
/* note: roaming priests (no shrine) switch from ispriest to isminion
|
|
(and emin extension) */
|
|
|
|
#endif /* EPRI_H */
|