diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-30 22:29:10 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-30 22:29:10 +0000 |
commit | a57cca76a917863b82323b0c61d3dae2dfe8d64a (patch) | |
tree | 2072041bc2386c8bb0dc1298dc42000735282312 /crawl-ref/source/decks.h | |
parent | 6fa5b18a9ef1bb0656923fa3bf9e1118e1e2ecef (diff) | |
download | crawl-ref-a57cca76a917863b82323b0c61d3dae2dfe8d64a.tar.gz crawl-ref-a57cca76a917863b82323b0c61d3dae2dfe8d64a.zip |
'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
Diffstat (limited to 'crawl-ref/source/decks.h')
-rw-r--r-- | crawl-ref/source/decks.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |