diff options
-rw-r--r-- | crawl-ref/source/itemname.cc | 14 |
1 files changed, 7 insertions, 7 deletions
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; |