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

Function autoreturn_weapon

src/weapon.c:519–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517};
518
519const struct throw_and_return_weapon *
520autoreturn_weapon(struct obj *otmp)
521{
522 int i;
523
524 for (i = 0; i < SIZE(arwep); i++) {
525 if (otmp->otyp == arwep[i].otyp)
526 return &arwep[i];
527 }
528 return (struct throw_and_return_weapon *) 0;
529}
530
531/* select a ranged weapon for the monster */
532struct obj *

Callers 5

mon_wield_itemFunction · 0.85
throwitFunction · 0.85
m_balks_at_approachingFunction · 0.85
mthrowu.cFile · 0.85
thrwmuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected