From 8b989e877550fcc89c79e06905a2128537a852f0 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 22 Apr 2008 19:40:42 +0000 Subject: 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 --- crawl-ref/source/database.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/database.cc') 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); } -- cgit v1.2.3-54-g00ecf