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

Function dountrap

src/trap.c:5247–5254  ·  view source on GitHub ↗

the #untrap command - disarm a trap */

Source from the content-addressed store, hash-verified

5245
5246/* the #untrap command - disarm a trap */
5247int
5248dountrap(void)
5249{
5250 if (!could_untrap(TRUE, FALSE))
5251 return ECMD_OK;
5252
5253 return untrap(FALSE, 0, 0, (struct obj *) 0) ? ECMD_TIME : ECMD_OK;
5254}
5255
5256/* preliminary checks for dountrap(); also used for autounlock */
5257int

Callers

nothing calls this directly

Calls 2

could_untrapFunction · 0.85
untrapFunction · 0.85

Tested by

no test coverage detected