summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-28 18:22:47 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-28 20:20:40 +1000
commit1f482e4025a81d46a44479d85c53daa503cb5a11 (patch)
tree403e27c9ee3a38b8432f1b58961af330c554e404 /crawl-ref/source
parent7c39d1c666a9cc984915bcf87e80e9dde98d215d (diff)
downloadcrawl-ref-1f482e4025a81d46a44479d85c53daa503cb5a11.tar.gz
crawl-ref-1f482e4025a81d46a44479d85c53daa503cb5a11.zip
Give Lua access to DESC_QUALNAME and DESC_BASENAME.
These do not seem to leak any information. If so, they can be limited to dlua implementations of item->name.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/libutil.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc
index ce7fcbb429..26243f405c 100644
--- a/crawl-ref/source/libutil.cc
+++ b/crawl-ref/source/libutil.cc
@@ -69,6 +69,10 @@ description_level_type description_type_by_name(const char *desc)
return DESC_INVENTORY;
else if (!strcmp("none", desc))
return DESC_NONE;
+ else if (!strcmp("base", desc))
+ return DESC_BASENAME;
+ else if (!strcmp("qual", desc))
+ return DESC_QUALNAME;
return DESC_PLAIN;
}