diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-11 14:24:01 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-11 14:24:01 +0000 |
commit | 005372e15f4b5f69be47cdf5328899c195f54584 (patch) | |
tree | 65e9d16e49fba5b88b9e05cdfa85660ebc1f02c9 /crawl-ref/source/itemname.cc | |
parent | 7b4192f994e7c8ec7d47ad5834c59d560ea56e90 (diff) | |
download | crawl-ref-005372e15f4b5f69be47cdf5328899c195f54584.tar.gz crawl-ref-005372e15f4b5f69be47cdf5328899c195f54584.zip |
Implemented Nemelex's 'sneak peek' ability.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1453 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 7a547d3847..1605a8fd04 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -27,6 +27,7 @@ #include "externs.h" +#include "decks.h" #include "invent.h" #include "itemprop.h" #include "macro.h" @@ -1331,6 +1332,14 @@ std::string item_def::name_aux( bool terse, bool ident ) const else { buff << misc_type_name(item_typ, know_type); + if ( subtype_to_decktype(item_typ) != DECK_OF_PUNISHMENT && + this->special != 0 ) + { + // an inscribed deck! + buff << " {" + << card_name(static_cast<card_type>(this->special - 1)) + << "}"; + } } break; |