diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-15 07:53:50 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-15 07:53:50 +0000 |
commit | 21a20c8edf221604f77decc0430145d13f305e5b (patch) | |
tree | bad911506f69e87d6b98f111e30a8f459be897c1 /crawl-ref/source/decks.cc | |
parent | 9b09694770ae4724f3f264603b8ba7ff3865b06a (diff) | |
download | crawl-ref-21a20c8edf221604f77decc0430145d13f305e5b.tar.gz crawl-ref-21a20c8edf221604f77decc0430145d13f305e5b.zip |
Added a debug card command.
Documented some of the debug commands in the help.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1475 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r-- | crawl-ref/source/decks.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index 23c0d64c9d..3e995593ae 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -260,7 +260,6 @@ static card_type choose_one_card(deck_type which_deck, bool message) chosen = deck[random2(max_card)]; return chosen; } -static void cards(card_type which_card); // returns the deck type, of DECK_OF_PUNISHMENT if none deck_type subtype_to_decktype(int subtype) @@ -413,7 +412,7 @@ bool deck_triple_draw() else canned_msg(MSG_HUH); } - cards(draws[selected]); + card_effect(draws[selected]); // remove the cards from the deck item.plus -= num_to_draw; @@ -443,7 +442,7 @@ void evoke_deck( item_def& deck ) else { // draw the marked card - cards(static_cast<card_type>(deck.plus2 - 1)); + card_effect(static_cast<card_type>(deck.plus2 - 1)); // If there are more marked cards, shift them up if ( deck.special ) @@ -485,10 +484,10 @@ void evoke_deck( item_def& deck ) void deck_of_cards(deck_type which_deck) { - cards(choose_one_card(which_deck, true)); + card_effect(choose_one_card(which_deck, true)); } -static void cards(card_type which_card) +void card_effect(card_type which_card) { FixedVector < int, 5 > dvar; FixedVector < int, 5 > mvar; @@ -1058,4 +1057,4 @@ static void cards(card_type which_card) } return; -} // end cards() +} |