MCPcopy Create free account
hub / github.com/NetHack/NetHack / inhistemple

Function inhistemple

src/priest.c:160–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160boolean
161inhistemple(struct monst *priest)
162{
163 /* make sure we have a priest */
164 if (!priest || !priest->ispriest)
165 return FALSE;
166 /* priest must be on right level and in right room */
167 if (!histemple_at(priest, priest->mx, priest->my))
168 return FALSE;
169 /* temple room must still contain properly aligned altar */
170 return has_shrine(priest);
171}
172
173/*
174 * pri_move: return 1: moved 0: didn't -1: let m_move do it -2: died

Callers 7

rloc_pos_okFunction · 0.85
temple_priest_soundFunction · 0.85
target_onFunction · 0.85
strategyFunction · 0.85
recalc_mapseenFunction · 0.85
onscaryFunction · 0.85
priest_talkFunction · 0.85

Calls 2

histemple_atFunction · 0.85
has_shrineFunction · 0.85

Tested by

no test coverage detected