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

Function lined_up

src/mthrowu.c:1397–1401  ·  view source on GitHub ↗

is mtmp in position to use ranged attack on hero? */

Source from the content-addressed store, hash-verified

1395
1396/* is mtmp in position to use ranged attack on hero? */
1397boolean
1398lined_up(struct monst *mtmp)
1399{
1400 return m_lined_up(&gy.youmonst, mtmp) ? TRUE : FALSE;
1401}
1402
1403/* check if a monster is carrying an item of a particular type */
1404struct obj *

Callers 5

buzzmuFunction · 0.85
m_moveFunction · 0.85
find_defensiveFunction · 0.85
find_offensiveFunction · 0.85
thrwmuFunction · 0.85

Calls 1

m_lined_upFunction · 0.85

Tested by

no test coverage detected