summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-02 18:36:08 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-02 18:36:08 +0000
commit0d31b1337f7557390cf0ef3e929f90599faaf6ae (patch)
treec240e002c1f238fdfa2e10c5cea8ea162400bdca /crawl-ref/source/itemname.cc
parent8148e4b2159d857790803b82b484f20e8bb9a981 (diff)
downloadcrawl-ref-0d31b1337f7557390cf0ef3e929f90599faaf6ae.tar.gz
crawl-ref-0d31b1337f7557390cf0ef3e929f90599faaf6ae.zip
Decks are now annotated with the list of cards drawn from them in the
examine screen. Tightened up lines a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2981 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 08b505f846..0e25c80fde 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -1425,15 +1425,12 @@ std::string item_def::name_aux( description_level_type desc,
if(top_card_is_known(*this))
buff << ", ";
- buff << abs(this->plus2) << " card";
-
- if (abs(this->plus2) > 1)
- buff << "s";
-
if (this->plus2 > 0)
- buff << " drawn";
+ buff << "drawn: ";
else
- buff << " left";
+ buff << "left: ";
+
+ buff << abs(this->plus2);
}
buff << "}";