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

Function uteetering_at_seen_pit

src/trap.c:6647–6653  ·  view source on GitHub ↗

* Returns TRUE if you escaped a pit and are standing on the precipice. */

Source from the content-addressed store, hash-verified

6645 * Returns TRUE if you escaped a pit and are standing on the precipice.
6646 */
6647boolean
6648uteetering_at_seen_pit(struct trap *trap)
6649{
6650 return (trap && is_pit(trap->ttyp) && trap->tseen
6651 && u_at(trap->tx, trap->ty)
6652 && !(u.utrap && u.utraptype == TT_PIT));
6653}
6654
6655/*
6656 * Returns TRUE if you didn't fall through a hole or didn't

Callers 7

dositFunction · 0.85
flooreffectsFunction · 0.85
dodownFunction · 0.85
pickup_checksFunction · 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