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

Function enexto

src/teleport.c:195–203  ·  view source on GitHub ↗

* "entity next to" * * Attempt to find a good place for the given monster type in the closest * position to (xx,yy). Do so in successive square rings around (xx,yy). * If there is more than one valid position in the ring, choose one randomly. * Return TRUE and the position chosen when successful, FALSE otherwise. */

Source from the content-addressed store, hash-verified

193 * Return TRUE and the position chosen when successful, FALSE otherwise.
194 */
195boolean
196enexto(
197 coord *cc,
198 coordxy xx, coordxy yy,
199 struct permonst *mdat)
200{
201 return (enexto_core(cc, xx, yy, mdat, GP_CHECKSCARY)
202 || enexto_core(cc, xx, yy, mdat, NO_MM_FLAGS));
203}
204
205boolean
206enexto_gpflags(

Callers 15

mkundeadFunction · 0.85
fixuporacleFunction · 0.85
landing_spotFunction · 0.85
dismount_steedFunction · 0.85
mcast_insectsFunction · 0.85
tele_trapFunction · 0.85
u_teleport_monFunction · 0.85
u_collide_mFunction · 0.85
revive_nastyFunction · 0.85
nastyFunction · 0.85
md_startFunction · 0.85
md_stopFunction · 0.85

Calls 1

enexto_coreFunction · 0.85

Tested by

no test coverage detected