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

@@ -472,6 +472,7 @@ extern int dodrop(void);
extern boolean boulder_hits_pool(struct obj *, coordxy, coordxy, boolean);
extern boolean flooreffects(struct obj *, coordxy, coordxy, const char *);
extern void doaltarobj(struct obj *);
extern void polymorph_sink(void);
extern void trycall(struct obj *);
extern boolean canletgo(struct obj *, const char *);
extern void dropx(struct obj *);
@@ -975,6 +976,7 @@ extern void dipfountain(struct obj *);
extern int wash_hands(void);
extern void breaksink(coordxy, coordxy);
extern void drinksink(void);
extern void dipsink(struct obj *);
/* ### hack.c ### */