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

Function wash_hands

src/fountain.c:557–577  ·  view source on GitHub ↗

dipping '-' in fountain, pool, or sink */

Source from the content-addressed store, hash-verified

555
556/* dipping '-' in fountain, pool, or sink */
557int
558wash_hands(void)
559{
560 const char *hands = makeplural(body_part(HAND));
561 int res = ER_NOTHING;
562 boolean was_glib = !!Glib;
563
564 You("wash your %s%s in the %s.", uarmg ? "gloved " : "", hands,
565 hliquid("water"));
566 if (Glib) {
567 make_glib(0);
568 Your("%s are no longer slippery.", fingers_or_gloves(TRUE));
569 }
570 if (uarmg)
571 res = water_damage(uarmg, (const char *) 0, TRUE);
572 /* not what ER_GREASED is for, but the checks in dipfountain just
573 compare the result to ER_DESTROYED and ER_NOTHING, so it works */
574 if (was_glib && res == ER_NOTHING)
575 res = ER_GREASED;
576 return res;
577}
578
579/* convert a sink into a fountain */
580void

Callers 3

dodipFunction · 0.85
dipfountainFunction · 0.85
dipsinkFunction · 0.85

Calls 8

makepluralFunction · 0.85
body_partFunction · 0.85
YouFunction · 0.85
hliquidFunction · 0.85
make_glibFunction · 0.85
YourFunction · 0.85
fingers_or_glovesFunction · 0.85
water_damageFunction · 0.85

Tested by

no test coverage detected