From fafea5560e78c676dc477c01a6e03d8d2e0bb2ee Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 4 Nov 2007 13:43:02 +0000 Subject: Cut chance of Damnation for plain, but not ornate or legendary, decks of escape (this is a hack.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.3@2747 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/decks.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index eaf0070a25..e344e21cf9 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -222,6 +222,13 @@ static card_type choose_one_card(const item_def& item, bool message) card_type chosen = (*pdeck)[random2(pdeck->size())]; + // Cut the probability of Damnation on common decks... + // too much of a killer otherwise. + if ( chosen == CARD_DAMNATION && + pdeck != &deck_of_punishment && + deck_rarity(item) == DECK_RARITY_COMMON ) + chosen = (*pdeck)[random2(pdeck->size())]; + // High Evocations gives you another shot (but not at being punished...) if (pdeck != &deck_of_punishment && chosen == CARD_BLANK && you.skills[SK_EVOCATIONS] > random2(30)) -- cgit v1.2.3-54-g00ecf