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

Function o_unleash

src/apply.c:710–722  ·  view source on GitHub ↗

otmp is about to be destroyed or stolen */

Source from the content-addressed store, hash-verified

708
709/* otmp is about to be destroyed or stolen */
710void
711o_unleash(struct obj *otmp)
712{
713 struct monst *mtmp;
714
715 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon)
716 if (mtmp->m_id == (unsigned) otmp->leashmon) {
717 mtmp->mleashed = 0;
718 break;
719 }
720 otmp->leashmon = 0;
721 update_inventory();
722}
723
724/* mtmp is about to die, or become untame */
725void

Callers 5

stealFunction · 0.85
bury_an_objFunction · 0.85
eatspecialFunction · 0.85
poly_objFunction · 0.85
obfreeFunction · 0.85

Calls 1

update_inventoryFunction · 0.85

Tested by

no test coverage detected