#include "hack.h"
#include "mfndpos.h"
#include "eshk.h"
#include "epri.h"
#include "emin.h"
Defines | |
#define | ALGN_SINNED (-4) |
#define | GDIST(x, y) (dist2(x,y,gx,gy)) |
Functions | |
STATIC_DCL boolean | FDECL (histemple_at,(struct monst *, XCHAR_P, XCHAR_P)) |
STATIC_DCL boolean | FDECL (has_shrine,(struct monst *)) |
int | move_special (struct monst *mtmp, boolean in_his_shop, schar appr, boolean uondoor, boolean avoid, xchar omx, xchar omy, xchar gx, xchar gy) |
char | temple_occupied (char *array) |
STATIC_OVL boolean | histemple_at (struct monst *priest, xchar x, xchar y) |
int | pri_move (struct monst *priest) |
void | priestini (d_level *lvl, struct mkroom *sroom, int sx, int sy, boolean sanctum) |
char * | priestname (struct monst *mon, char *pname) |
boolean | p_coaligned (struct monst *priest) |
STATIC_OVL boolean | has_shrine (struct monst *pri) |
struct monst * | findpriest (char roomno) |
void | intemple (int roomno) |
void | priest_talk (struct monst *priest) |
struct monst * | mk_roamer (struct permonst *ptr, aligntyp alignment, xchar x, xchar y, boolean peaceful) |
void | reset_hostility (struct monst *roamer) |
boolean | in_your_sanctuary (struct monst *mon, xchar x, xchar y) |
void | ghod_hitsu (struct monst *priest) |
void | angry_priest () |
void | clearpriests () |
void | restpriest (struct monst *mtmp, boolean ghostly) |
#define ALGN_SINNED (-4) |
Referenced by in_your_sanctuary(), intemple(), and priest_talk().
void angry_priest | ( | ) |
References AM_MASK, Amask2align, EPRI, findpriest(), IS_ALTAR, levl, temple_occupied(), rm::typ, u, you::urooms, and wakeup().
Referenced by breakobj(), dig(), and dosacrifice().
void clearpriests | ( | ) |
References DEADMONSTER, EPRI, fmon, mongone(), monst::nmon, on_level(), u, and you::uz.
Referenced by done().
struct monst* findpriest | ( | char | roomno ) | [read] |
References DEADMONSTER, EPRI, fmon, histemple_at(), monst::mx, monst::my, and monst::nmon.
Referenced by angry_priest(), dosacrifice(), in_your_sanctuary(), and intemple().
void ghod_hitsu | ( | struct monst * | priest ) |
References a_gname_at(), A_WIS, AD_ELEC, buzz(), EPRI, exercise(), FALSE, has_shrine(), mkroom::hx, mkroom::hy, IS_DOOR, levl, linedup(), mkroom::lx, mkroom::ly, pline(), rn2(), ROOMOFFSET, rooms, s_suffix(), sgn(), tbx, tby, temple_occupied(), u, you::urooms, you::ux, and you::uy.
Referenced by hmon(), and zap_over_floor().
References AM_SHRINE, Amask2align, EPRI, FALSE, IS_ALTAR, levl, and rm::typ.
Referenced by ghod_hitsu(), in_your_sanctuary(), intemple(), and priest_talk().
References EPRI, in_rooms(), on_level(), TEMPLE, u, and you::uz.
Referenced by findpriest(), pri_move(), and priest_talk().
References ALGN_SINNED, FALSE, findpriest(), has_shrine(), in_rooms(), is_minion, is_rider, p_coaligned(), align::record, TEMPLE, temple_occupied(), u, you::ualign, and you::urooms.
Referenced by distfleeck(), find_offensive(), and mfndpos().
void intemple | ( | int | roomno ) |
References ALGN_SINNED, Blind, body_part(), BUFSZ, canseemon, findpriest(), flags, Hallucination, has_shrine(), In_endgame, Is_sanctum, makemon(), Monnam(), mons, NO_MM_FLAGS, nomovemsg, nomul(), p_coaligned(), pline(), PM_GHOST, align::record, rn2(), sensemon, set_malign(), flag::soundok, SPINE, Sprintf, temple_occupied(), u, you::ualign, you::urooms0, you::ux, you::uy, you::uz, and flag::verbose.
Referenced by check_special_room().
struct monst* mk_roamer | ( | struct permonst * | ptr, |
aligntyp | alignment, | ||
xchar | x, | ||
xchar | y, | ||
boolean | peaceful | ||
) | [read] |
References EPRI, FALSE, m_at, makemon(), MON_AT, mons, monst::mtrapseen, NO_MM_FLAGS, PM_ALIGNED_PRIEST, PM_ANGEL, rloc(), set_malign(), TRUE, align::type, u, and you::ualign.
Referenced by create_monster(), dog_move(), and final_level().
int move_special | ( | struct monst * | mtmp, |
boolean | in_his_shop, | ||
schar | appr, | ||
boolean | uondoor, | ||
boolean | avoid, | ||
xchar | omx, | ||
xchar | omy, | ||
xchar | gx, | ||
xchar | gy | ||
) |
References ALLOW_DIG, ALLOW_ROCK, ALLOW_SANCT, ALLOW_SSM, ALLOW_WALL, ALTAR, BUSTDOOR, cansee, check_special_room(), distant_name(), doname(), ESHK, FALSE, GDIST, inhishop(), is_giant, levl, m_carrying(), mfndpos(), Monnam(), mpickobj(), newsym(), nohands, NOTONL, obj_extract_self(), onlineu, OPENDOOR, passes_walls, pline(), remove_monster(), rn2(), ROOM, SKELETON_KEY, throws_rocks, tunnels, verysmall, nhcoord::x, and nhcoord::y.
Referenced by pri_move(), and shk_move().
References EPRI, align::type, u, and you::ualign.
Referenced by dosacrifice(), in_your_sanctuary(), intemple(), priest_talk(), priestini(), setmangry(), and xkilled().
int pri_move | ( | struct monst * | priest ) |
References Conflict, Displaced, EPRI, FALSE, gx, gy, histemple_at(), index, Invis, m_canseeu, mattacku(), mon_nam(), monnear(), move_special(), resist(), RING_CLASS, rn1, TRUE, u, you::urooms, you::ux, and you::uy.
Referenced by m_move().
void priest_talk | ( | struct monst * | priest ) |
References A_WIS, adjalign(), ALGN_SINNED, flag::botl, bribe(), exercise(), flags, FROMOUTSIDE, u_conduct::gnostic, has_shrine(), HClairvoyant, histemple_at(), HProtection, in_rooms(), incr_itimeout(), INTRINSIC, invent, mhis, Monnam(), moves, p_coaligned(), pline(), align::record, rn1, rn2(), TEMPLE, TRUE, u, you::ualign, you::ublessed, you::ucleansed, you::uconduct, you::ugold, and you::ulevel.
Referenced by domonnoise().
References altarmask, Amask2align, assign_level(), curse(), EPRI, FALSE, levl, m_at, makemon(), mkobj(), MON_AT, mons, mpickobj(), monst::mtrapseen, NO_MM_FLAGS, otmp, p_coaligned(), PM_ALIGNED_PRIEST, PM_HIGH_PRIEST, rloc(), rn1, rn2(), ROOMOFFSET, rooms, set_malign(), SPBOOK_CLASS, uncurse(), W_ARMC, and which_armor().
Referenced by create_altar(), and mktemple().
char* priestname | ( | struct monst * | mon, |
char * | pname | ||
) |
References distu, EMIN, EPRI, Hallucination, halu_gname(), Is_astralevel, RoleName::m, mons, Role::name, PM_ALIGNED_PRIEST, PM_ANGEL, PM_HIGH_PRIEST, renegade, rnd_gname(), rndmonnam(), str2role(), Strcat, Strcpy, u, urole, you::uz, and what.
Referenced by x_monnam().
void reset_hostility | ( | struct monst * | roamer ) |
References EPRI, mons, monst::mtame, newsym(), PM_ALIGNED_PRIEST, PM_ANGEL, set_malign(), align::type, u, and you::ualign.
Referenced by final_level().
References assign_level(), d_level::dlevel, EPRI, u, and you::uz.
Referenced by restmonchn().
char temple_occupied | ( | char * | array ) |
References ROOMOFFSET, rooms, and TEMPLE.
Referenced by angry_priest(), dosacrifice(), ghod_hitsu(), in_your_sanctuary(), and intemple().