summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-26 13:56:55 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-26 13:56:55 +0000
commit7341a7d51c8437d5a5edff6df6a3604c28358f6f (patch)
treef65f5f65fce8dc43f6b759988a0badd37ee5163c
parent133c453e3fa5778b1f7f1e7dfcff8e6d7d169778 (diff)
downloadcrawl-ref-7341a7d51c8437d5a5edff6df6a3604c28358f6f.tar.gz
crawl-ref-7341a7d51c8437d5a5edff6df6a3604c28358f6f.zip
Make Zin skip his mutation removal retribution if you have the full
mutation resistance mutation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4664 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/religion.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index d88b6679a4..664f008488 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -2923,8 +2923,9 @@ static bool _zin_retribution()
// angels/creeping doom theme
int punishment = random2(10);
- // if little mutated, do something else instead
- if (punishment < 2 && how_mutated() <= random2(3))
+ // if little mutated or can't unmutate, do something else instead
+ if ((punishment < 2 && how_mutated() <= random2(3))
+ || player_mutation_level(MUT_MUTATION_RESISTANCE) == 3)
{
punishment = random2(8)+2;
}