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

Function set_ustuck

src/mon.c:3420–3435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3418}
3419
3420void
3421set_ustuck(struct monst *mtmp)
3422{
3423 if (iflags.sanity_check || iflags.debug_fuzzer) {
3424 if (mtmp && !m_next2u(mtmp))
3425 impossible("Sticking to %s at distu %d?",
3426 mon_nam(mtmp), mdistu(mtmp));
3427 }
3428
3429 disp.botl = TRUE;
3430 u.ustuck = mtmp;
3431 if (!u.ustuck) {
3432 u.uswallow = 0;
3433 u.uswldtim = 0;
3434 }
3435}
3436
3437void
3438unstuck(struct monst *mtmp)

Callers 15

attack_checksFunction · 0.85
known_hitumFunction · 0.85
mhitm_ad_stckFunction · 0.85
mhitm_ad_wrapFunction · 0.85
mhitm_ad_physFunction · 0.85
hmonasFunction · 0.85
stumble_onto_mimicFunction · 0.85
teledsFunction · 0.85
u_stuck_cannot_goFunction · 0.85
goto_levelFunction · 0.85
Mb_hitFunction · 0.85
getlevFunction · 0.85

Calls 2

mon_namFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected