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

Function slept_monst

src/mhitm.c:1249–1257  ·  view source on GitHub ↗

sleeping grabber releases, engulfer doesn't; don't use for paralysis! */

Source from the content-addressed store, hash-verified

1247
1248/* sleeping grabber releases, engulfer doesn't; don't use for paralysis! */
1249void
1250slept_monst(struct monst *mon)
1251{
1252 if (helpless(mon) && mon == u.ustuck
1253 && !sticks(gy.youmonst.data) && !u.uswallow) {
1254 pline_mon(mon, "%s grip relaxes.", s_suffix(Monnam(mon)));
1255 unstuck(mon);
1256 }
1257}
1258
1259void
1260rustm(struct monst *mdef, struct obj *obj)

Callers 5

potionhitFunction · 0.85
mhitm_ad_sleeFunction · 0.85
put_monsters_to_sleepFunction · 0.85
bhitmFunction · 0.85
dobuzzFunction · 0.85

Calls 5

sticksFunction · 0.85
pline_monFunction · 0.85
s_suffixFunction · 0.85
MonnamFunction · 0.85
unstuckFunction · 0.85

Tested by

no test coverage detected