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
2020-01-04 22:54:14 +01:00
committed by Patric Mueller
parent c578b9537a
commit 6b389c385d
+10 -1
View File
@@ -1210,11 +1210,20 @@ const char *txt;
const char *bottlenames[] = { "bottle", "phial", "flagon", "carafe", const char *bottlenames[] = { "bottle", "phial", "flagon", "carafe",
"flask", "jar", "vial" }; "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 * const char *
bottlename() 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 */ /* handle item dipped into water potion or steed saddle splashed by same */