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:
10
src/potion.c
10
src/potion.c
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user