returns True if monster can attack at range */
| 399 | |
| 400 | /* returns True if monster can attack at range */ |
| 401 | boolean |
| 402 | ranged_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) |
nothing calls this directly
no outgoing calls
no test coverage detected