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

Function Hear_again

src/eat.c:1800–1809  ·  view source on GitHub ↗

called when waking up after fainting */

Source from the content-addressed store, hash-verified

1798
1799/* called when waking up after fainting */
1800int
1801Hear_again(void)
1802{
1803 /* Chance of deafness going away while fainted/sleeping/etc. */
1804 if (!rn2(2)) {
1805 make_deaf(0L, FALSE);
1806 disp.botl = TRUE;
1807 }
1808 return 0;
1809}
1810
1811/* called on the "first bite" of rotten food */
1812staticfn int

Callers 2

gain_guardian_angelFunction · 0.85
unfaintFunction · 0.85

Calls 2

rn2Function · 0.85
make_deafFunction · 0.85

Tested by

no test coverage detected