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

@@ -7,7 +7,6 @@
#include "hack.h"
static void polymorph_sink(void);
static boolean teleport_sink(void);
static void dosinkring(struct obj *);
static int drop(struct obj *);
@@ -352,7 +351,7 @@ trycall(struct obj *obj)
/* Transforms the sink at the player's position into
a fountain, throne, altar or grave. */
static void
void
polymorph_sink(void)
{
uchar sym = S_sink;