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

Function freehand

src/engrave.c:472–477  ·  view source on GitHub ↗

* freehand - returns true if player has a free hand */

Source from the content-addressed store, hash-verified

470 * freehand - returns true if player has a free hand
471 */
472int
473freehand(void)
474{
475 return (!uwep || !welded(uwep)
476 || (!bimanual(uwep) && (!uarms || !uarms->cursed)));
477}
478
479/* getobj callback for an object to engrave with */
480staticfn int

Callers 10

in_troubleFunction · 0.85
fix_worst_troubleFunction · 0.85
doengraveFunction · 0.85
able_to_lootFunction · 0.85
u_handsyFunction · 0.85
rejectcastingFunction · 0.85
u_catch_thrown_objFunction · 0.85
use_towelFunction · 0.85
use_stethoscopeFunction · 0.85
do_break_wandFunction · 0.85

Calls 1

weldedFunction · 0.85

Tested by

no test coverage detected