summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/database.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-22 19:40:42 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-22 19:40:42 +0000
commit8b989e877550fcc89c79e06905a2128537a852f0 (patch)
tree4230f4f5a5d7ad42fe1a0fa3a0dca962aa349a26 /crawl-ref/source/database.cc
parentc23deaf938ce66f6c7711a72f2c147690d486376 (diff)
downloadcrawl-ref-8b989e877550fcc89c79e06905a2128537a852f0.tar.gz
crawl-ref-8b989e877550fcc89c79e06905a2128537a852f0.zip
Modify descriptions of artefact-capable items to allow for unquoted
descriptions for artefacts, so as not to drown the actually important information in flavour quotes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4483 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/database.cc')
-rw-r--r--crawl-ref/source/database.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/database.cc b/crawl-ref/source/database.cc
index af43a29c76..140051b4db 100644
--- a/crawl-ref/source/database.cc
+++ b/crawl-ref/source/database.cc
@@ -591,11 +591,17 @@ static std::string _query_database(DBM *db, std::string key,
/////////////////////////////////////////////////////////////////////////////
// Description DB specific functions.
-std::string getLongDescription(const std::string &key)
+std::string getLongDescription(const std::string &key, bool noquote)
{
if (!DescriptionDB.get())
return ("");
+ if (noquote)
+ {
+ return _query_database(DescriptionDB.get(), key + " noquote",
+ true, true);
+ }
+
return _query_database(DescriptionDB.get(), key, true, true);
}