summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-04 13:43:02 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-04 13:43:02 +0000
commitfafea5560e78c676dc477c01a6e03d8d2e0bb2ee (patch)
treeb7b344322fd9f27561ccee3044021ab6c374d7b8
parentef3ec6727e3da2c7b8180df7231b6f8ed92171c4 (diff)
downloadcrawl-ref-fafea5560e78c676dc477c01a6e03d8d2e0bb2ee.tar.gz
crawl-ref-fafea5560e78c676dc477c01a6e03d8d2e0bb2ee.zip
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
-rw-r--r--crawl-ref/source/decks.cc7
1 files changed, 7 insertions, 0 deletions
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))