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

Function itsstuck

src/monmove.c:1052–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1050}
1051
1052boolean
1053itsstuck(struct monst *mtmp)
1054{
1055 if (sticks(gy.youmonst.data) && mtmp == u.ustuck && !u.uswallow) {
1056 pline_mon(mtmp, "%s cannot escape from you!", Monnam(mtmp));
1057 return TRUE;
1058 }
1059 return FALSE;
1060}
1061
1062/*
1063 * should_displace()

Callers 2

fightmFunction · 0.85
m_moveFunction · 0.85

Calls 3

sticksFunction · 0.85
pline_monFunction · 0.85
MonnamFunction · 0.85

Tested by

no test coverage detected