summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-25 17:11:45 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-25 17:11:45 +0000
commit6297b352b077c9c5e8fdd154cc1cda620d617f71 (patch)
treeb017d96fee4be48579f2a1ce9c5f8a89af4192e4 /crawl-ref/source/decks.cc
parent7249037678b8250bbbdb59ee89b7e1852cf63b53 (diff)
downloadcrawl-ref-6297b352b077c9c5e8fdd154cc1cda620d617f71.tar.gz
crawl-ref-6297b352b077c9c5e8fdd154cc1cda620d617f71.zip
Consolidate the mutation-counting routines.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4628 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index 009d10c589..99a079490c 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -2036,7 +2036,7 @@ static void _helix_card(int power, deck_rarity_type rarity)
if ( power_level == 0 )
{
- switch ( count_mutations() ? random2(3) : 0 )
+ switch ( how_mutated() ? random2(3) : 0 )
{
case 0:
mutate(RANDOM_MUTATION);
@@ -2052,7 +2052,7 @@ static void _helix_card(int power, deck_rarity_type rarity)
}
else if ( power_level == 1 )
{
- switch ( count_mutations() ? random2(3) : 0 )
+ switch ( how_mutated() ? random2(3) : 0 )
{
case 0:
mutate(coinflip() ? RANDOM_GOOD_MUTATION : RANDOM_MUTATION);