diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-11 02:35:57 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-11 02:35:57 +0000 |
commit | 5943f95a4250cfdedd44091a1f9eac52e3cbb085 (patch) | |
tree | 3a5938ca56d31558a1bd78e73cf6651db06d259a /crawl-ref/source/itemname.cc | |
parent | ef44f8a14f413dda35df8eac4e9c2ed00b946d70 (diff) | |
download | crawl-ref-5943f95a4250cfdedd44091a1f9eac52e3cbb085.tar.gz crawl-ref-5943f95a4250cfdedd44091a1f9eac52e3cbb085.zip |
Add fixes based on ncampion's (slightly tweaked) patches:
[1910635] database lookups of autoinscribed wands fail
[1911451] mummies get a starvation warning
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3592 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 76d660a1bc..2c87e39c97 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -1270,11 +1270,13 @@ std::string item_def::name_aux( description_level_type desc, if (know_pluses) buff << " (" << it_plus << ")"; - else if (item_plus2 == ZAPCOUNT_EMPTY) - buff << " {empty}"; - else if (item_plus2 > 0) - buff << " {zapped: " << item_plus2 - << '}'; + else if (!dbname) + { + if (item_plus2 == ZAPCOUNT_EMPTY) + buff << " {empty}"; + else if (item_plus2 > 0) + buff << " {zapped: " << item_plus2 << '}'; + } break; case OBJ_POTIONS: |