summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-30 12:22:55 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-30 12:22:55 +0000
commit13ce09cb0deb85ade0144a3b0fe668b2c6de18d4 (patch)
tree4fa29c1793896e43db37d40b04613b8e33c0780a /crawl-ref/source/spl-cast.cc
parent17d8bd89a7e6f4884334c0a8aa38907c43df5f81 (diff)
downloadcrawl-ref-13ce09cb0deb85ade0144a3b0fe668b2c6de18d4.tar.gz
crawl-ref-13ce09cb0deb85ade0144a3b0fe668b2c6de18d4.zip
Wizardry+Vehumet nerf. Or rather, wizardry and Vehumet effects applied as they
should have been applied to start with. Will need tuning. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@909 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 0b1ff598c1..83887a0464 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -342,10 +342,6 @@ int spell_fail(int spell)
default: chance += 750; break;
}
- //if (chance < 1 ) chance = 0;
- if (chance > 100)
- chance = 100;
-
chance2 = chance;
if (chance < 45)
@@ -409,14 +405,14 @@ int spell_fail(int spell)
chance2 += 10;
break;
}
-
- if (chance2 > 100)
- chance2 = 100;
}
// Apply the effects of Vehumet prayer and items of wizardry.
chance2 = apply_vehumet_wizardry_boost(spell, chance2);
+ if (chance2 > 100)
+ chance2 = 100;
+
return (chance2);
} // end spell_fail()