summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.h
diff options
context:
space:
mode:
authorreaver <address.auto@gmail.com>2014-03-11 16:19:10 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-03-12 13:38:04 -0400
commitb78b54b1c70040f340716dd8dd8e29df2f54f69e (patch)
tree65c89121025f9eb2f3e4aff67a5e8cdcfdd76dee /crawl-ref/source/itemname.h
parent13ef432e70872bc2159f175ba7b173b2f0af6cdb (diff)
downloadcrawl-ref-b78b54b1c70040f340716dd8dd8e29df2f54f69e.tar.gz
crawl-ref-b78b54b1c70040f340716dd8dd8e29df2f54f69e.zip
Use potion_type_name() to note Xom potion effects.
This formerly special cased it, which meant I had to change it when I renamed potions of speed. This means future changes or additions to the potions xom used do not have to modify this function.
Diffstat (limited to 'crawl-ref/source/itemname.h')
-rw-r--r--crawl-ref/source/itemname.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h
index 80a81b150c..bc51a0c379 100644
--- a/crawl-ref/source/itemname.h
+++ b/crawl-ref/source/itemname.h
@@ -134,4 +134,6 @@ string base_type_string(const item_def &item, bool known = true);
string sub_type_string(const item_def &item, bool known = true);
string ego_type_string(const item_def &item, bool terse = false);
+
+const char* potion_type_name(int potiontype); //used in xom.cc
#endif