MCPcopy Index your code
hub / github.com/NetHack/NetHack / nomul

Function nomul

src/hack.c:4160–4173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4158}
4159
4160void
4161nomul(int nval)
4162{
4163 if (gm.multi < nval)
4164 return; /* This is a bug fix by ab@unido */
4165 disp.botl |= (gm.multi >= 0);
4166 u.uinvulnerable = FALSE; /* Kludge to avoid ctrl-C bug -dlc */
4167 u.usleep = 0;
4168 gm.multi = nval;
4169 if (nval == 0)
4170 gm.multi_reason = NULL, gm.multireasonbuf[0] = '\0';
4171 end_running(TRUE);
4172 cmdq_clear(CQ_CANNED);
4173}
4174
4175/* called when a non-movement, multi-turn action has completed */
4176void

Callers 15

expulsionFunction · 0.85
done1Function · 0.85
done2Function · 0.85
stop_occupationFunction · 0.85
interrupt_multiFunction · 0.85
stealFunction · 0.85
ghost_from_bottleFunction · 0.85
peffect_paralysisFunction · 0.85
potionbreatheFunction · 0.85
use_crystal_ballFunction · 0.85
dosearch0Function · 0.85
armoroffFunction · 0.85

Calls 2

end_runningFunction · 0.85
cmdq_clearFunction · 0.85

Tested by 1

test_moveFunction · 0.68