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

Function u_stuck_cannot_go

src/do.c:1109–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107}
1108
1109staticfn boolean
1110u_stuck_cannot_go(const char *updn)
1111{
1112 if (u.ustuck) {
1113 if (u.uswallow || !sticks(gy.youmonst.data)) {
1114 You("are %s, and cannot go %s.",
1115 !u.uswallow ? "being held"
1116 : digests(u.ustuck->data) ? "swallowed"
1117 : "engulfed", updn);
1118 return TRUE;
1119 } else {
1120 struct monst *mtmp = u.ustuck;
1121
1122 set_ustuck((struct monst *) 0);
1123 You("release %s.", mon_nam(mtmp));
1124 }
1125 }
1126 return FALSE;
1127}
1128
1129/* the #down command */
1130int

Callers 2

dodownFunction · 0.85
doupFunction · 0.85

Calls 4

sticksFunction · 0.85
YouFunction · 0.85
set_ustuckFunction · 0.85
mon_namFunction · 0.85

Tested by

no test coverage detected