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

Function unresponsive

src/steal.c:132–142  ·  view source on GitHub ↗

checks whether hero can be responsive to seduction attempts; similar to Unaware but also includes paralysis */

Source from the content-addressed store, hash-verified

130/* checks whether hero can be responsive to seduction attempts; similar to
131 Unaware but also includes paralysis */
132boolean
133unresponsive(void)
134{
135 if (gm.multi >= 0)
136 return FALSE;
137
138 return (unconscious() || is_fainted()
139 || (gm.multi_reason
140 && (!strncmp(gm.multi_reason, "frozen", 6)
141 || !strncmp(gm.multi_reason, "paralyzed", 9))));
142}
143
144/* called via (*ga.afternmv)() when hero finishes taking off armor that
145 was slated to be stolen but the thief died in the interim */

Callers 2

stealFunction · 0.85
doseduceFunction · 0.85

Calls 2

unconsciousFunction · 0.85
is_faintedFunction · 0.85

Tested by

no test coverage detected