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

Function endmultishot

src/dothrow.c:589–601  ·  view source on GitHub ↗

if in midst of multishot shooting/throwing, stop early */

Source from the content-addressed store, hash-verified

587
588/* if in midst of multishot shooting/throwing, stop early */
589void
590endmultishot(boolean verbose)
591{
592 if (gm.m_shot.i < gm.m_shot.n) {
593 if (verbose && !svc.context.mon_moving) {
594 You("stop %s after the %d%s %s.",
595 gm.m_shot.s ? "firing" : "throwing",
596 gm.m_shot.i, ordin(gm.m_shot.i),
597 gm.m_shot.s ? "shot" : "toss");
598 }
599 gm.m_shot.n = gm.m_shot.i; /* make current shot be the last */
600 }
601}
602
603/* Object hits floor at hero's feet.
604 Called from drop(), throwit(), hold_another_object(), litter(). */

Callers 3

savelifeFunction · 0.85
hurtleFunction · 0.85
boomhitFunction · 0.85

Calls 2

YouFunction · 0.85
ordinFunction · 0.85

Tested by

no test coverage detected