diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-18 22:45:49 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-18 22:45:49 +0000 |
commit | 25586f037e96b929a63ab34fe451d43b3823efef (patch) | |
tree | 1e8eaf7b27fdca74aa0f55a4a10f3729bd3540a7 /crawl-ref/source/decks.cc | |
parent | 77025c5c65c95fce61d342d488b9cb4c9d51d25e (diff) | |
download | crawl-ref-25586f037e96b929a63ab34fe451d43b3823efef.tar.gz crawl-ref-25586f037e96b929a63ab34fe451d43b3823efef.zip |
Ensure the the Helix card only removes bad mutations, and that Zin's
retribution only removes good mutations, by adding a parameter to
delete_mutation() to disallow mismatches of random good and bad
mutations.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10287 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r-- | crawl-ref/source/decks.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index 825ce9601f..ff625495de 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -2195,7 +2195,8 @@ static void _experience_card(int power, deck_rarity_type rarity) static void _remove_bad_mutation() { - if (!delete_mutation(RANDOM_BAD_MUTATION, false)) + // Ensure that only bad mutations are removed. + if (!delete_mutation(RANDOM_BAD_MUTATION, false, false, false, true)) mpr("You feel transcendent for a moment."); } |