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

Function gd_mv_monaway

src/vault.c:733–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733staticfn void
734gd_mv_monaway(struct monst *grd, int nx, int ny)
735{
736 struct monst *mtmp = m_at(nx, ny);
737
738 if (mtmp && mtmp != grd) {
739 if (!Deaf) {
740 SetVoice(grd, 0, 80, 0);
741 verbalize("Out of my way, scum!");
742 }
743 if (!rloc(mtmp, RLOC_ERR | RLOC_MSG) || MON_AT(nx, ny))
744 m_into_limbo(mtmp);
745 recalc_block_point(nx, ny);
746 }
747}
748
749/* have guard pick gold off the floor, possibly moving to the gold's
750 position before message and back to his current spot after */

Callers 2

gd_pick_corridor_goldFunction · 0.85
gd_moveFunction · 0.85

Calls 4

verbalizeFunction · 0.85
rlocFunction · 0.85
m_into_limboFunction · 0.85
recalc_block_pointFunction · 0.85

Tested by

no test coverage detected