summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-08 15:37:55 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-08 15:37:55 +0000
commitc84f84be2b096efaaa85fda38f31609d8179c2c2 (patch)
tree791ffad97ec07c88d9342464c42e83c1b0f42726 /crawl-ref
parent478afcf7b5699f76606f90c2e2546b3cd3a32475 (diff)
downloadcrawl-ref-c84f84be2b096efaaa85fda38f31609d8179c2c2.tar.gz
crawl-ref-c84f84be2b096efaaa85fda38f31609d8179c2c2.zip
1822496: saprovore mutation shouldn't be given except at birth.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2809 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/mutation.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc
index 9ef79f7ef5..3a65ec0694 100644
--- a/crawl-ref/source/mutation.cc
+++ b/crawl-ref/source/mutation.cc
@@ -1561,6 +1561,10 @@ bool mutate(mutation_type which_mutation, bool failMsg, bool force_mutation,
return false;
}
+ // Saprovorous can't be randomly acquired
+ if (mutat == MUT_SAPROVOROUS)
+ return false;
+
if (you.mutation[mutat] > 13 && !force_mutation)
return false;