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

Function adj_nonconjoined_pit

src/trap.c:6603–6614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6601}
6602
6603staticfn boolean
6604adj_nonconjoined_pit(struct trap *adjtrap)
6605{
6606 struct trap *trap_with_u = t_at(u.ux0, u.uy0);
6607
6608 if (trap_with_u && adjtrap && u.utrap && u.utraptype == TT_PIT
6609 && is_pit(trap_with_u->ttyp) && is_pit(adjtrap->ttyp)) {
6610 if (xytodir(u.dx, u.dy) != DIR_ERR)
6611 return TRUE;
6612 }
6613 return FALSE;
6614}
6615
6616#if 0
6617/*

Callers 2

trapeffect_pitFunction · 0.85
dotrapFunction · 0.85

Calls 2

t_atFunction · 0.85
xytodirFunction · 0.85

Tested by

no test coverage detected