summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mutation.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-08-06 08:55:04 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-08-06 08:55:04 +0000
commitb331266740598d8513d337f61d1cd75d540a9534 (patch)
treed8f5a6fc0c67b1ae451f92ca838998a194c4a4b1 /crawl-ref/source/mutation.cc
parenteb331955f2f8adeea2b360cdad1c4dc73c009fad (diff)
downloadcrawl-ref-b331266740598d8513d337f61d1cd75d540a9534.tar.gz
crawl-ref-b331266740598d8513d337f61d1cd75d540a9534.zip
* Don't give the CHANNEL_HELL mutation to Demonspawns worshipping Trog.
* Check for mummy genus rather than species, in the can_drink_potion check. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10492 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r--crawl-ref/source/mutation.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc
index 5c006e94ee..da633db58b 100644
--- a/crawl-ref/source/mutation.cc
+++ b/crawl-ref/source/mutation.cc
@@ -2606,8 +2606,7 @@ std::string mutation_name(mutation_type mut, int level, bool colour)
return (result);
}
-// Use an attribute counter for how many demonic mutations a demonspawn
-// has.
+// Use an attribute counter for how many demonic mutations a demonspawn has.
void demonspawn()
{
mutation_type whichm = NUM_MUTATIONS;
@@ -2710,7 +2709,11 @@ void demonspawn()
howm = 1;
}
- if (you.religion != GOD_SIF_MUNA && one_chance_in(11))
+ // Theoretically, you could use this with Trog (for rods and
+ // some misc. items), but in general it's going to be much more
+ // useful for someone capable of casting spells.
+ if (you.religion != GOD_TROG
+ && you.religion != GOD_SIF_MUNA && one_chance_in(11))
{
whichm = MUT_CHANNEL_HELL;
howm = 1;