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

Function overexertion

src/hack.c:3050–3061  ·  view source on GitHub ↗

combat increases metabolism */

Source from the content-addressed store, hash-verified

3048
3049/* combat increases metabolism */
3050boolean
3051overexertion(void)
3052{
3053 /* this used to be part of domove() when moving to a monster's
3054 position, but is now called by do_attack() so that it doesn't
3055 execute if you decline to attack a peaceful monster */
3056 gethungry();
3057 if ((svm.moves % 3L) != 0L && near_capacity() >= HVY_ENCUMBER) {
3058 overexert_hp();
3059 }
3060 return (boolean) (gm.multi < 0); /* might have fainted (forced to sleep) */
3061}
3062
3063void
3064invocation_message(void)

Callers 3

do_attackFunction · 0.85
maybe_kick_monsterFunction · 0.85
use_poleFunction · 0.85

Calls 3

gethungryFunction · 0.85
near_capacityFunction · 0.85
overexert_hpFunction · 0.85

Tested by

no test coverage detected