Add basic sink #dipping effects

This is largely taken from xNetHack with a few minor changes.  Dipping a
potion into a sink can help with item identification by producing the
potionbreathe effect (or a sink-specific effect, for a couple potions).
Dipping other items will just run water over them.  I also added the
capability to wash your hands at a sink.
This commit is contained in:
Michael Meyer
2023-10-24 19:36:06 -04:00
committed by PatR
parent 5af1fad398
commit 3fac63749a
4 changed files with 56 additions and 2 deletions

View File

@@ -2269,6 +2269,16 @@ dodip(void)
return ECMD_TIME;
}
++drink_ok_extra;
} else if (IS_SINK(here)) {
Snprintf(qbuf, sizeof(qbuf), "%s%s into the sink?", Dip_,
flags.verbose ? obuf : shortestname);
if (y_n(qbuf) == 'y') {
if (!is_hands)
obj->pickup_prev = 0;
dipsink(obj);
return ECMD_TIME;
}
++drink_ok_extra;
} else if (is_pool(u.ux, u.uy)) {
const char *pooltype = waterbody_name(u.ux, u.uy);