summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-28 19:43:31 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-28 19:43:31 +0000
commit7fbcd22e430fcc3db5bf8e09a6dc02b80adeda77 (patch)
treedc6be651f1132a3e33a0e8b4cd8d428dfe29f10e /crawl-ref/source/spl-cast.cc
parentb30be80f8944e4ca675add68e8d769788f00cd7d (diff)
downloadcrawl-ref-7fbcd22e430fcc3db5bf8e09a6dc02b80adeda77.tar.gz
crawl-ref-7fbcd22e430fcc3db5bf8e09a6dc02b80adeda77.zip
Fix sort_menus option to let "any" override the default "pickup" setting
and still use any as "anything but those already defined" when needed. (If that makes any sense.) Remove need for prayer for Vehumet's prayer boost effects. I admit I'm not entirely convinced of this change myself, but currently the problem is that there's hardly ever any reason *not* to pray. What we'd need instead are sensible drawbacks... git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4757 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index c797a21d46..f6fa59eecd 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -242,8 +242,7 @@ static int _apply_spellcasting_success_boosts(spell_type spell, int chance)
int wiz_factor = 87;
if (you.religion == GOD_VEHUMET
- && you.duration[DUR_PRAYER]
- && (!player_under_penance() && you.piety >= 50)
+ && !player_under_penance() && you.piety >= 50
&& (spell_typematch(spell, SPTYP_CONJURATION)
|| spell_typematch(spell, SPTYP_SUMMONING)))
{
@@ -453,7 +452,7 @@ int spell_fail(spell_type spell)
}
}
- // Apply the effects of Vehumet prayer and items of wizardry.
+ // Apply the effects of Vehumet and items of wizardry.
chance2 = _apply_spellcasting_success_boosts(spell, chance2);
if (chance2 > 100)