MCPcopy Create free account
hub / github.com/NetHack/NetHack / bury_you

Function bury_you

src/dig.c:2211–2227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2209}
2210
2211void
2212bury_you(void)
2213{
2214 debugpline0("bury_you");
2215 if (!Levitation && !Flying) {
2216 if (u.uswallow)
2217 You_feel("a sensation like falling into a trap!");
2218 else
2219 pline_The("%s opens beneath you and you fall in!",
2220 surface(u.ux, u.uy));
2221
2222 u.uburied = TRUE;
2223 if (!Strangled && !Breathless)
2224 Strangled = 6;
2225 under_ground(1);
2226 }
2227}
2228
2229void
2230unearth_you(void)

Callers

nothing calls this directly

Calls 4

You_feelFunction · 0.85
pline_TheFunction · 0.85
surfaceFunction · 0.85
under_groundFunction · 0.85

Tested by

no test coverage detected