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

Function mwelded

src/wield.c:1077–1084  ·  view source on GitHub ↗

test whether monster's wielded weapon is stuck to hand/paw/whatever */

Source from the content-addressed store, hash-verified

1075
1076/* test whether monster's wielded weapon is stuck to hand/paw/whatever */
1077boolean
1078mwelded(struct obj *obj)
1079{
1080 /* caller is responsible for making sure this is a monster's item */
1081 if (obj && (obj->owornmask & W_WEP) && will_weld(obj))
1082 return TRUE;
1083 return FALSE;
1084}
1085
1086/*wield.c*/

Callers 7

select_rwepFunction · 0.85
possibly_unwieldFunction · 0.85
mon_wield_itemFunction · 0.85
m_digweapon_checkFunction · 0.85
mcould_eat_tinFunction · 0.85
thrwmuFunction · 0.85
use_whipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected