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.
This commit is contained in:
copperwater
2019-01-25 09:27:55 -05:00
committed by Patric Mueller
parent c578b9537a
commit 6b389c385d

View File

@@ -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 */