From 21a20c8edf221604f77decc0430145d13f305e5b Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 15 May 2007 07:53:50 +0000 Subject: 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 --- crawl-ref/source/decks.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/decks.cc') 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(deck.plus2 - 1)); + card_effect(static_cast(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() +} -- cgit v1.2.3-54-g00ecf