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

Function overexert_hp

src/hack.c:3034–3047  ·  view source on GitHub ↗

HP loss or passing out from overexerting yourself */

Source from the content-addressed store, hash-verified

3032
3033/* HP loss or passing out from overexerting yourself */
3034void
3035overexert_hp(void)
3036{
3037 int *hp = (!Upolyd ? &u.uhp : &u.mh);
3038
3039 if (*hp > 1) {
3040 *hp -= 1;
3041 disp.botl = TRUE;
3042 } else {
3043 You("pass out from exertion!");
3044 exercise(A_CON, FALSE);
3045 fall_asleep(-10, FALSE);
3046 }
3047}
3048
3049/* combat increases metabolism */
3050boolean

Callers 2

allmain.cFile · 0.85
overexertionFunction · 0.85

Calls 3

YouFunction · 0.85
exerciseFunction · 0.85
fall_asleepFunction · 0.85

Tested by

no test coverage detected