summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-18 07:05:07 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-18 07:05:07 +0000
commit3fdf3ab24ea63ecde6537ea122e2ab1cd6b8d4f1 (patch)
treea838b57e94a87f84fcdbf3e551b365aec922259d /crawl-ref/source/spl-cast.cc
parentde11c27378236139089c48ecfb0b66457cc0d67c (diff)
downloadcrawl-ref-3fdf3ab24ea63ecde6537ea122e2ab1cd6b8d4f1.tar.gz
crawl-ref-3fdf3ab24ea63ecde6537ea122e2ab1cd6b8d4f1.zip
Banished uniques (including ghosts) will now be sent to the Abyss. Banished
non-uniques may also get the Abyss treatment if they clear a HD roll. Crawl tries very hard not to lose banished monsters, preserving them across Abyss shifts and teleports, and saving them on the transit list when the player escapes the Abyss. Breaks savefile compatibility. Toned down Vehumet and wizardry boosts a touch. Fixed bugginess where player could get aux unarmed attacks on a monster that just teleported away (by weapon of distortion). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1052 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index ec0873abde..0eade5c58e 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -249,7 +249,7 @@ static int apply_vehumet_wizardry_boost(int spell, int chance)
{
int wizardry = player_mag_abil(false);
int fail_reduce = 100;
- int wiz_factor = 86;
+ int wiz_factor = 87;
if (you.religion == GOD_VEHUMET
&& you.duration[DUR_PRAYER]
@@ -258,8 +258,8 @@ static int apply_vehumet_wizardry_boost(int spell, int chance)
|| spell_typematch(spell, SPTYP_SUMMONING)))
{
// [dshaligram] Fail rate multiplier used to be .5, scaled
- // back to 60%.
- fail_reduce = fail_reduce * 60 / 100;
+ // back to 67%.
+ fail_reduce = fail_reduce * 67 / 100;
}
// [dshaligram] Apply wizardry factor here, rather than mixed into the
@@ -267,12 +267,12 @@ static int apply_vehumet_wizardry_boost(int spell, int chance)
while (wizardry-- > 0)
{
fail_reduce = fail_reduce * wiz_factor / 100;
- wiz_factor += (100 - wiz_factor) / 5;
+ wiz_factor += (100 - wiz_factor) / 3;
}
// Hard cap on fail rate reduction.
- if (fail_reduce < 40)
- fail_reduce = 40;
+ if (fail_reduce < 50)
+ fail_reduce = 50;
return (chance * fail_reduce / 100);
}