From 8b9d48402b36f994893ab627cf9cf7b0be632d20 Mon Sep 17 00:00:00 2001 From: haranp Date: Fri, 11 May 2007 23:21:30 +0000 Subject: Deck stacking implemented. Five cards (or less, if there are less) are drawn, you get to stack them in any order, and the rest of the deck is discarded. The next card is inscribed on the deck; the remainder can be seen with 'v'. This is now Nemelex's top ability. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1467 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'crawl-ref/source/describe.cc') diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index e6b330cf1f..510d3c5441 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -35,6 +35,7 @@ #include "abl-show.h" #include "debug.h" +#include "decks.h" #include "fight.h" #include "itemname.h" #include "itemprop.h" @@ -3055,6 +3056,20 @@ static std::string describe_misc_item( const item_def &item ) description += "$"; + if ( is_deck(item) && item.plus2 != 0 ) + { + description += "$Next card(s): "; + description += card_name(static_cast(item.plus2 - 1)); + long spec = item.special; + while ( spec ) + { + description += ", "; + description += card_name(static_cast((spec & 0xFF)-1)); + spec >>= 8; + } + description += "$"; + } + return (description); } -- cgit v1.2.3-54-g00ecf