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

Function uescaped_shaft

src/trap.c:6659–6664  ·  view source on GitHub ↗

* Returns TRUE if you didn't fall through a hole or didn't * release a trap door */

Source from the content-addressed store, hash-verified

6657 * release a trap door
6658 */
6659boolean
6660uescaped_shaft(struct trap *trap)
6661{
6662 return (trap && is_hole(trap->ttyp) && trap->tseen
6663 && u_at(trap->tx, trap->ty));
6664}
6665
6666/* Destroy a trap that emanates from the floor. */
6667boolean

Callers 6

dositFunction · 0.85
flooreffectsFunction · 0.85
dodownFunction · 0.85
use_pick_axe2Function · 0.85
can_reach_floorFunction · 0.85
pickupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected