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

Function unturn_you

src/zap.c:1224–1235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222}
1223
1224void
1225unturn_you(void)
1226{
1227 (void) unturn_dead(&gy.youmonst); /* hit carried corpses and eggs */
1228
1229 if (is_undead(gy.youmonst.data)) {
1230 You_feel("frightened and %sstunned.", Stunned ? "even more " : "");
1231 make_stunned((HStun & TIMEOUT) + (long) rnd(30), FALSE);
1232 } else {
1233 You("shudder in dread.");
1234 }
1235}
1236
1237/* cancel obj, possibly carried by you or a monster */
1238void

Callers 2

zapyourselfFunction · 0.85
mbhitmFunction · 0.85

Calls 5

unturn_deadFunction · 0.85
You_feelFunction · 0.85
make_stunnedFunction · 0.85
rndFunction · 0.85
YouFunction · 0.85

Tested by

no test coverage detected