From 4080747652bef98870bf0848cb2e62eb4151f59d Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 6 Dec 2008 02:45:10 +0000 Subject: Make titled artifact spellbooks dislay properly in inventory. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7754 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemname.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/itemname.cc') diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index a6a07a2926..6e81c530ea 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -84,13 +84,6 @@ std::string item_def::name(description_level_type descrip, if (descrip == DESC_NONE) return (""); - if (base_type == OBJ_BOOKS && (ident || item_type_known(*this)) - && book_has_title(*this)) - { - if (descrip != DESC_DBNAME) - descrip = DESC_PLAIN; - } - const bool is_artefact = (is_fixed_artefact( *this ) || (is_random_artefact( *this ))); @@ -115,6 +108,13 @@ std::string item_def::name(description_level_type descrip, descrip = DESC_CAP_A; } + if (base_type == OBJ_BOOKS && (ident || item_type_known(*this)) + && book_has_title(*this)) + { + if (descrip != DESC_DBNAME) + descrip = DESC_PLAIN; + } + if (terse && descrip != DESC_DBNAME) descrip = DESC_PLAIN; -- cgit v1.2.3-54-g00ecf