MCPcopy Index your code
hub / github.com/NetHack/NetHack / mongone

Function mongone

src/mon.c:3266–3283  ·  view source on GitHub ↗

monster disappears, not dies */

Source from the content-addressed store, hash-verified

3264
3265/* monster disappears, not dies */
3266void
3267mongone(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 */
3286void

Callers 15

remove_mon_from_bonesFunction · 0.85
getbonesFunction · 0.85
mongrantswishFunction · 0.85
djinni_from_bottleFunction · 0.85
mhitm_ad_healFunction · 0.85
nhl_debug_flagsFunction · 0.85
newmailFunction · 0.85
makemap_unmakemonFunction · 0.85
demon_talkFunction · 0.85
lose_guardian_angelFunction · 0.85
restfakecorrFunction · 0.85
invaultFunction · 0.85

Calls 5

grddeadFunction · 0.85
unstuckFunction · 0.85
mdrop_special_objsFunction · 0.85
discard_minventFunction · 0.85
m_detachFunction · 0.85

Tested by

no test coverage detected