drop (perhaps) a cadaver and remove monster */
| 3250 | |
| 3251 | /* drop (perhaps) a cadaver and remove monster */ |
| 3252 | void |
| 3253 | mondied(struct monst *mdef) |
| 3254 | { |
| 3255 | mondead(mdef); |
| 3256 | if (!DEADMONSTER(mdef)) |
| 3257 | return; /* lifesaved */ |
| 3258 | |
| 3259 | /* this assumes that the dead monster's map coordinates remain accurate */ |
| 3260 | if (corpse_chance(mdef, (struct monst *) 0, FALSE) |
| 3261 | && (accessible(mdef->mx, mdef->my) || is_pool(mdef->mx, mdef->my))) |
| 3262 | (void) make_corpse(mdef, CORPSTAT_NONE); |
| 3263 | } |
| 3264 | |
| 3265 | /* monster disappears, not dies */ |
| 3266 | void |
no test coverage detected