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

Function leashable

src/apply.c:760–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758#define MAXLEASHED 2
759
760boolean
761leashable(struct monst *mtmp)
762{
763 return (boolean) (mtmp->mnum != PM_LONG_WORM
764 && !unsolid(mtmp->data)
765 && (!nolimbs(mtmp->data) || has_head(mtmp->data)));
766}
767
768staticfn int
769use_leash(struct obj *obj)

Callers 2

newchamFunction · 0.85
use_leash_coreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected