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

Function remove_mon_from_bones

src/bones.c:389–399  ·  view source on GitHub ↗

monster might need to be removed before saving a bones file, in case these characters are not in their home bases */

Source from the content-addressed store, hash-verified

387/* monster might need to be removed before saving a bones file,
388 in case these characters are not in their home bases */
389staticfn void
390remove_mon_from_bones(struct monst *mtmp)
391{
392 struct permonst *mptr = mtmp->data;
393
394 if (mtmp->iswiz || mptr == &mons[PM_MEDUSA]
395 || mptr->msound == MS_NEMESIS || mptr->msound == MS_LEADER
396 || is_Vlad(mtmp) /* mptr == &mons[VLAD_THE_IMPALER] || cham == VLAD */
397 || (mptr == &mons[PM_ORACLE] && !fixuporacle(mtmp)))
398 mongone(mtmp);
399}
400
401/* save bones and possessions of a deceased adventurer */
402void

Callers

nothing calls this directly

Calls 2

fixuporacleFunction · 0.85
mongoneFunction · 0.85

Tested by

no test coverage detected