summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-20 05:21:47 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-20 05:21:47 +0000
commit23850f5478c67b109beaf9a9cf207ce75a8fc818 (patch)
treec446fe35b09901b40e202932c3be36e0a9a3955c
parentdaa47d3a8ebcbdda61f03ec1c4dcef575d59f97e (diff)
downloadcrawl-ref-23850f5478c67b109beaf9a9cf207ce75a8fc818.tar.gz
crawl-ref-23850f5478c67b109beaf9a9cf207ce75a8fc818.zip
backport from trunk to 0.3: don't give Yred-worshipping demonspawn the
"raise dead" mutation git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.3@2880 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/mutation.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc
index d001a6eb45..bfff211012 100644
--- a/crawl-ref/source/mutation.cc
+++ b/crawl-ref/source/mutation.cc
@@ -243,6 +243,8 @@ const char *mutation_descrip[][3] = {
{"You can summon demons to your aid.", "", ""},
{"You can hurl blasts of hellfire.", "", ""},
{"You can call on the torments of Hell.", "", ""},
+
+ /* Not summoners/necromancers/worshippers of Yredelemnul */
{"You can raise the dead to walk for you.", "", ""},
// 50
{"You can control demons.", "", ""},
@@ -2215,7 +2217,9 @@ void demonspawn(void)
howm = 1;
}
- if (you.skills[SK_SUMMONINGS] < 3 && you.skills[SK_NECROMANCY] < 3
+ // Yredelemnulites have the raise dead invocation
+ if (you.religion != GOD_YREDELEMNUL &&
+ you.skills[SK_SUMMONINGS] < 3 && you.skills[SK_NECROMANCY] < 3
&& one_chance_in(10))
{
whichm = MUT_RAISE_DEAD;