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

Function mnum_leashable

src/dogmove.c:1461–1469  ·  view source on GitHub ↗

* variation of leashable() that takes a PM_ index */

Source from the content-addressed store, hash-verified

1459/*
1460 * variation of leashable() that takes a PM_ index */
1461staticfn boolean
1462mnum_leashable(int mnum)
1463{
1464 return ((mnum >= LOW_PM && mnum <= HIGH_PM)
1465 && mnum != PM_LONG_WORM && !unsolid(&mons[mnum])
1466 && (!nolimbs(&mons[mnum]) || has_head(&mons[mnum])))
1467 ? TRUE
1468 : FALSE;
1469}
1470
1471void
1472quickmimic(struct monst *mtmp)

Callers 1

quickmimicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected