From a57cca76a917863b82323b0c61d3dae2dfe8d64a Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 30 Oct 2007 22:29:10 +0000 Subject: 'v' now describes decks properly. There is a small information leak: if you know (from Peek Deck) that the deck contains a card X somewhere, and then you draw card X which happens not to be the seen card X in the internal structure, you can still see from the 'v' output that there is another X card hiding in there. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2692 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/decks.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/decks.h') diff --git a/crawl-ref/source/decks.h b/crawl-ref/source/decks.h index e028d822c8..299cbb391f 100644 --- a/crawl-ref/source/decks.h +++ b/crawl-ref/source/decks.h @@ -137,4 +137,8 @@ deck_rarity_type deck_rarity(const item_def &item); unsigned char deck_rarity_to_color(deck_rarity_type rarity); void init_deck(item_def &item); +int cards_in_deck(const item_def &deck); +card_type get_card_and_flags(const item_def& deck, int idx, + unsigned char& _flags); + #endif -- cgit v1.2.3-54-g00ecf