remove an item of armor and then drop it */
| 1037 | |
| 1038 | /* remove an item of armor and then drop it */ |
| 1039 | staticfn void |
| 1040 | m_lose_armor( |
| 1041 | struct monst *mon, |
| 1042 | struct obj *obj, |
| 1043 | boolean polyspot) |
| 1044 | { |
| 1045 | extract_from_minvent(mon, obj, TRUE, FALSE); |
| 1046 | place_object(obj, mon->mx, mon->my); |
| 1047 | if (polyspot) |
| 1048 | bypass_obj(obj); |
| 1049 | /* call stackobj() if we ever drop anything that can merge */ |
| 1050 | newsym(mon->mx, mon->my); |
| 1051 | } |
| 1052 | |
| 1053 | /* clear bypass bits for an object chain, plus contents if applicable */ |
| 1054 | staticfn void |
no test coverage detected