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

Function bury_monst

src/dig.c:2192–2209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2190
2191#if 0
2192void
2193bury_monst(struct monst *mtmp)
2194{
2195 debugpline1("bury_monst: %s", mon_nam(mtmp));
2196 if (canseemon(mtmp)) {
2197 if (is_flyer(mtmp->data) || is_floater(mtmp->data)) {
2198 pline_The("%s opens up, but %s is not swallowed!",
2199 surface(mtmp->mx, mtmp->my), mon_nam(mtmp));
2200 return;
2201 } else
2202 pline_The("%s opens up and swallows %s!",
2203 surface(mtmp->mx, mtmp->my), mon_nam(mtmp));
2204 }
2205
2206 mtmp->mburied = TRUE;
2207 wakeup(mtmp, FALSE); /* at least give it a chance :-) */
2208 newsym(mtmp->mx, mtmp->my);
2209}
2210
2211void
2212bury_you(void)

Callers

nothing calls this directly

Calls 6

mon_namFunction · 0.85
canseemonFunction · 0.85
pline_TheFunction · 0.85
surfaceFunction · 0.85
wakeupFunction · 0.85
newsymFunction · 0.85

Tested by

no test coverage detected