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

Function ranged_attk

src/mondata.c:401–410  ·  view source on GitHub ↗

returns True if monster can attack at range */

Source from the content-addressed store, hash-verified

399
400/* returns True if monster can attack at range */
401boolean
402ranged_attk(struct permonst *ptr)
403{
404 int i;
405
406 for (i = 0; i < NATTK; i++)
407 if (DISTANCE_ATTK_TYPE(ptr->mattk[i].aatyp))
408 return TRUE;
409 return FALSE;
410}
411
412#if defined(MAKEDEFS_C) \
413 || (NH_DEVEL_STATUS != NH_STATUS_RELEASED) || defined(DEBUG)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected