MCPcopy Index your code
hub / github.com/NetHack/NetHack / feeltrap

Function feeltrap

src/trap.c:3587–3594  ·  view source on GitHub ↗

like seetrap() but overrides vision */

Source from the content-addressed store, hash-verified

3585
3586/* like seetrap() but overrides vision */
3587void
3588feeltrap(struct trap *trap)
3589{
3590 trap->tseen = 1;
3591 map_trap(trap, 1);
3592 /* in case it's beneath something, redisplay the something */
3593 newsym(trap->tx, trap->ty);
3594}
3595
3596/* try to find a random coordinate where launching a rolling boulder
3597 could work. return TRUE if found, with coordinate in cc. */

Callers 14

moverock_coreFunction · 0.85
domove_swap_with_petFunction · 0.85
digactualholeFunction · 0.85
dospinwebFunction · 0.85
fall_throughFunction · 0.85
trapeffect_rocktrapFunction · 0.85
trapeffect_bear_trapFunction · 0.85
trapeffect_pitFunction · 0.85
trapeffect_webFunction · 0.85
trapeffect_landmineFunction · 0.85
trapeffect_magic_portalFunction · 0.85

Calls 2

map_trapFunction · 0.85
newsymFunction · 0.85

Tested by

no test coverage detected