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

Function dosearch

src/detect.c:2096–2104  ·  view source on GitHub ↗

the #search command -- explicit searching */

Source from the content-addressed store, hash-verified

2094
2095/* the #search command -- explicit searching */
2096int
2097dosearch(void)
2098{
2099 if (cmd_safety_prevention("Searching", "another search",
2100 "You already found a monster.",
2101 &ga.already_found_flag))
2102 return ECMD_OK;
2103 return dosearch0(0) ? ECMD_TIME : ECMD_OK;
2104}
2105
2106void
2107warnreveal(void)

Callers

nothing calls this directly

Calls 2

cmd_safety_preventionFunction · 0.85
dosearch0Function · 0.85

Tested by

no test coverage detected