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

Function empty_handed

src/wield.c:157–166  ·  view source on GitHub ↗

description of hands when not wielding anything; also used by #seeweapon (')'), #attributes (^X), and #takeoffall ('A') */

Source from the content-addressed store, hash-verified

155/* description of hands when not wielding anything; also used
156 by #seeweapon (')'), #attributes (^X), and #takeoffall ('A') */
157const char *
158empty_handed(void)
159{
160 return uarmg ? "empty handed" /* gloves imply hands */
161 : humanoid(gy.youmonst.data)
162 /* hands but no weapon and no gloves */
163 ? "bare handed"
164 /* alternate phrasing for paws or lack of hands */
165 : "not wielding anything";
166}
167
168staticfn int
169ready_weapon(struct obj *wep)

Callers 5

ready_weaponFunction · 0.85
doquiver_coreFunction · 0.85
do_takeoffFunction · 0.85
doprwepFunction · 0.85
weapon_insightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected