| 1634 | } |
| 1635 | |
| 1636 | staticfn void |
| 1637 | hmon_hitmon_msg_hit( |
| 1638 | struct _hitmon_data *hmd, |
| 1639 | struct monst *mon, |
| 1640 | struct obj *obj) /* obj can be NULL for hand_to_hand; otherwise not */ |
| 1641 | { |
| 1642 | if (!hmd->hittxt /*( thrown => obj exists )*/ |
| 1643 | && (!hmd->destroyed |
| 1644 | || (hmd->thrown && gm.m_shot.n > 1 |
| 1645 | && gm.m_shot.o == obj->otyp))) { |
| 1646 | if (hmd->thrown) |
| 1647 | hit(mshot_xname(obj), mon, exclam(hmd->dmg)); |
| 1648 | else if (!flags.verbose) |
| 1649 | You("hit it."); |
| 1650 | else /* hand_to_hand */ |
| 1651 | You("%s %s%s", |
| 1652 | (obj && (is_shield(obj) |
| 1653 | || obj->otyp == HEAVY_IRON_BALL)) ? "bash" |
| 1654 | : (obj && (objects[obj->otyp].oc_skill == P_WHIP |
| 1655 | || is_wet_towel(obj))) ? "lash" |
| 1656 | : Role_if(PM_BARBARIAN) ? "smite" |
| 1657 | : "hit", |
| 1658 | mon_nam(mon), canseemon(mon) ? exclam(hmd->dmg) : "."); |
| 1659 | } |
| 1660 | } |
| 1661 | |
| 1662 | staticfn void |
| 1663 | hmon_hitmon_msg_silver( |
no test coverage detected