| 3553 | } |
| 3554 | |
| 3555 | void |
| 3556 | hit( |
| 3557 | const char *str, /* zap text or missile name */ |
| 3558 | struct monst *mtmp, /* target; for missile, might be hero */ |
| 3559 | const char *force) /* usually either "." or "!" via exclam() */ |
| 3560 | { |
| 3561 | boolean verbosely = (mtmp == &gy.youmonst |
| 3562 | || (flags.verbose |
| 3563 | && (cansee(gb.bhitpos.x, gb.bhitpos.y) |
| 3564 | || canspotmon(mtmp) || engulfing_u(mtmp)))); |
| 3565 | |
| 3566 | pline("%s %s %s%s", The(str), vtense(str, "hit"), |
| 3567 | verbosely ? mon_nam(mtmp) : "it", force); |
| 3568 | } |
| 3569 | |
| 3570 | void |
| 3571 | miss(const char *str, struct monst *mtmp) |
no test coverage detected