monster disappears, not dies */
| 3264 | |
| 3265 | /* monster disappears, not dies */ |
| 3266 | void |
| 3267 | mongone(struct monst *mdef) |
| 3268 | { |
| 3269 | mdef->mhp = 0; /* can skip some inventory bookkeeping */ |
| 3270 | |
| 3271 | /* dead vault guard is actually kept at coordinate <0,0> until |
| 3272 | his temporary corridor to/from the vault has been removed */ |
| 3273 | if (mdef->isgd && !grddead(mdef)) |
| 3274 | return; |
| 3275 | /* stuck to you? release */ |
| 3276 | unstuck(mdef); |
| 3277 | /* drop special items like the Amulet so that a dismissed Kop or nurse |
| 3278 | can't remove them from the game */ |
| 3279 | mdrop_special_objs(mdef); |
| 3280 | /* release rest of monster's inventory--it is removed from game */ |
| 3281 | discard_minvent(mdef, FALSE); |
| 3282 | m_detach(mdef, mdef->data, FALSE); |
| 3283 | } |
| 3284 | |
| 3285 | /* drop a statue or rock and remove monster */ |
| 3286 | void |
no test coverage detected