| 1058 | } |
| 1059 | |
| 1060 | void |
| 1061 | weldmsg(struct obj *obj) |
| 1062 | { |
| 1063 | long savewornmask; |
| 1064 | const char *hand = body_part(HAND); |
| 1065 | |
| 1066 | if (bimanual(obj)) |
| 1067 | hand = makeplural(hand); |
| 1068 | savewornmask = obj->owornmask; |
| 1069 | obj->owornmask = 0L; /* suppress doname()'s "(weapon in hand)"; |
| 1070 | * Yobjnam2() doesn't actually need this because |
| 1071 | * it is based on xname() rather than doname() */ |
| 1072 | pline("%s welded to your %s!", Yobjnam2(obj, "are"), hand); |
| 1073 | obj->owornmask = savewornmask; |
| 1074 | } |
| 1075 | |
| 1076 | /* test whether monster's wielded weapon is stuck to hand/paw/whatever */ |
| 1077 | boolean |
no test coverage detected