From 6b389c385d14cee090cf7ff196cba1eaed44ac99 Mon Sep 17 00:00:00 2001 From: copperwater Date: Fri, 25 Jan 2019 09:27:55 -0500 Subject: [PATCH] Call potion bottles by nonsensical names if hallucinating From SliceHack. Note that this refers to the description of the physical bottle; it's a substitute for "phial", "carafe", "flask", etc. such as are seen when a potion crashes on someone's head. They don't obscure the randomized appearance or actual potion identity. The SliceHack version evidently went through several revisions; just take the current one. --- src/potion.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/potion.c b/src/potion.c index d4058d583..5032e4e51 100644 --- a/src/potion.c +++ b/src/potion.c @@ -1210,11 +1210,20 @@ const char *txt; const char *bottlenames[] = { "bottle", "phial", "flagon", "carafe", "flask", "jar", "vial" }; +const char *hbottlenames[] = { + "jug", "pitcher", "barrel", "tin", "bag", "box", "glass", "beaker", + "tumbler", "vase", "flowerpot", "pan", "thingy", "mug", "teacup", "teapot", + "keg", "bucket", "thermos", "amphora", "wineskin", "parcel", "bowl", + "ampoule" +}; const char * bottlename() { - return bottlenames[rn2(SIZE(bottlenames))]; + if (Hallucination) + return hbottlenames[rn2(SIZE(hbottlenames))]; + else + return bottlenames[rn2(SIZE(bottlenames))]; } /* handle item dipped into water potion or steed saddle splashed by same */