| 1811 | } |
| 1812 | |
| 1813 | void |
| 1814 | setmnotwielded(struct monst *mon, struct obj *obj) |
| 1815 | { |
| 1816 | if (!obj) |
| 1817 | return; |
| 1818 | if (artifact_light(obj) && obj->lamplit) { |
| 1819 | end_burn(obj, FALSE); |
| 1820 | if (canseemon(mon)) |
| 1821 | pline("%s in %s %s %s shining.", The(xname(obj)), |
| 1822 | s_suffix(mon_nam(mon)), mbodypart(mon, HAND), |
| 1823 | otense(obj, "stop")); |
| 1824 | } |
| 1825 | if (MON_WEP(mon) == obj) |
| 1826 | MON_NOWEP(mon); |
| 1827 | obj->owornmask &= ~W_WEP; |
| 1828 | } |
| 1829 | |
| 1830 | #undef PN_BARE_HANDED |
| 1831 | #undef PN_RIDING |
no test coverage detected