summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-01-07 22:03:23 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-01-07 22:03:23 +0100
commitb4f11b1704b772a2d206ab58c6fc00ba61eb490c (patch)
tree7eab7488746a15a8a84426695a6b502a09de0e8c /crawl-ref/source/decks.cc
parentf536c278597be3ae8664785ba1997085f177e89b (diff)
downloadcrawl-ref-b4f11b1704b772a2d206ab58c6fc00ba61eb490c.tar.gz
crawl-ref-b4f11b1704b772a2d206ab58c6fc00ba61eb490c.zip
Make the Swine card always last at least 1 turn. In fact, let's make that 50% max at the minimum.
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index d645b13ea5..3834bdbbd9 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -2956,7 +2956,7 @@ bool card_effect(card_type which_card, deck_rarity_type rarity,
break;
case CARD_SWINE:
- if (!transform(random2(power), TRAN_PIG, true))
+ if (!transform(1 + power/2 + random2(power/2), TRAN_PIG, true))
{
mpr("You feel like a pig.");
break;