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

Function setuswapwep

src/wield.c:284–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void
285setuswapwep(struct obj *obj)
286{
287 setworn(obj, W_SWAPWEP);
288 return;
289}
290
291/* getobj callback for object to ready for throwing/shooting;
292 this filter lets worn items through so that caller can reject them */

Callers 14

dowieldFunction · 0.85
doswapweaponFunction · 0.85
doquiver_coreFunction · 0.85
wield_toolFunction · 0.85
Ring_onFunction · 0.85
glibrFunction · 0.85
do_takeoffFunction · 0.85
ballreleaseFunction · 0.85
dropFunction · 0.85
dropzFunction · 0.85
return_throw_to_invFunction · 0.85
in_containerFunction · 0.85

Calls 1

setwornFunction · 0.85

Tested by

no test coverage detected