returns True if monster can blow (whistle, etc) */
| 564 | |
| 565 | /* returns True if monster can blow (whistle, etc) */ |
| 566 | boolean |
| 567 | can_blow(struct monst *mtmp) |
| 568 | { |
| 569 | if ((is_silent(mtmp->data) || mtmp->data->msound == MS_BUZZ) |
| 570 | && (breathless(mtmp->data) || verysmall(mtmp->data) |
| 571 | || !has_head(mtmp->data) || mtmp->data->mlet == S_EEL)) |
| 572 | return FALSE; |
| 573 | if ((mtmp == &gy.youmonst) && Strangled) |
| 574 | return FALSE; |
| 575 | return TRUE; |
| 576 | } |
| 577 | |
| 578 | /* for casting spells and reading scrolls while blind */ |
| 579 | boolean |
no outgoing calls
no test coverage detected