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

Function u_maybe_impaired

src/hack.c:2417–2421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2415}
2416
2417boolean
2418u_maybe_impaired(void)
2419{
2420 return (Stunned || (Confusion && !rn2(5)));
2421}
2422
2423/* change movement dir if impaired. return TRUE if can't move */
2424staticfn boolean

Callers 2

impaired_movementFunction · 0.85
confdirFunction · 0.85

Calls 1

rn2Function · 0.85

Tested by

no test coverage detected