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

Function wipeoff

src/do.c:2360–2386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2358}
2359
2360staticfn int
2361wipeoff(void)
2362{
2363 unsigned udelta = u.ucreamed;
2364 long ldelta = BlindedTimeout;
2365
2366 if (udelta > 4)
2367 udelta = 4;
2368 u.ucreamed -= udelta; /*u.ucreamed -= min(u.ucreamed,4);*/
2369 if (ldelta > 4L)
2370 ldelta = 4L;
2371 incr_itimeout(&HBlinded, -ldelta); /*HBlinded -= min(BlindedTimeout,4L);*/
2372
2373 if (!HBlinded) {
2374 pline("You've got the glop off.");
2375 u.ucreamed = 0;
2376 if (!gulp_blnd_check()) {
2377 set_itimeout(&HBlinded, 1L);
2378 make_blinded(0L, TRUE);
2379 }
2380 return 0;
2381 } else if (!u.ucreamed) {
2382 Your("%s feels clean now.", body_part(FACE));
2383 return 0;
2384 }
2385 return 1; /* still busy */
2386}
2387
2388/* the #wipe command - wipe off your face */
2389int

Callers

nothing calls this directly

Calls 7

incr_itimeoutFunction · 0.85
gulp_blnd_checkFunction · 0.85
set_itimeoutFunction · 0.85
make_blindedFunction · 0.85
YourFunction · 0.85
body_partFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected