diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-21 07:30:33 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-21 07:30:33 +0000 |
commit | 9b55168648a4ddc1887d0ae560ec00d8f1ff3b23 (patch) | |
tree | e4c268b925a397f19f74cb6e4bbc3f6378a12c01 /crawl-ref/source/mutation.cc | |
parent | 98e3c24887ee5a4670cf58eaa614084a720b5853 (diff) | |
download | crawl-ref-9b55168648a4ddc1887d0ae560ec00d8f1ff3b23.tar.gz crawl-ref-9b55168648a4ddc1887d0ae560ec00d8f1ff3b23.zip |
Fix 1941612: Zapping wands known to be empty shouldn't cost a turn, but
empty wands with unknown charges should cost a turn.
Experimentally add a "Really fire through friendly creature?" prompt
when a beam tracer passes through a friend. This currently uses the
existing monster tracer and probably has huge problems because of this.
In any case, it appears to only work sometimes, though consistently for
wands in my testing, possibly because the range is fixed (?) when
compared to spells. (This is part of FR 1962548.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5171 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r-- | crawl-ref/source/mutation.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index ca2013223c..23ee151116 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -1655,11 +1655,11 @@ bool mutate(mutation_type which_mutation, bool failMsg, { // God gifts override all sources of mutation resistance other // than the mutation resistance mutation and divine protection. - if ((wearing_amulet(AMU_RESIST_MUTATION) - && !one_chance_in(10) && !god_gift) + if (wearing_amulet(AMU_RESIST_MUTATION) + && !one_chance_in(10) && !god_gift || player_mutation_level(MUT_MUTATION_RESISTANCE) == 3 || player_mutation_level(MUT_MUTATION_RESISTANCE) - && !one_chance_in(3)) + && !one_chance_in(3)) { if (failMsg) mpr("You feel odd for a moment.", MSGCH_MUTATION); |