summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-14 21:28:25 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-14 22:03:02 +0100
commit4d2c382bc72a43a84c3d7bb74b41fab002bd91f5 (patch)
tree65dc111269bc149f9b7b72695b05def1a428b294 /crawl-ref
parent8a7bf323708916f472bba2b05867c6d10c1c1cc1 (diff)
downloadcrawl-ref-4d2c382bc72a43a84c3d7bb74b41fab002bd91f5.tar.gz
crawl-ref-4d2c382bc72a43a84c3d7bb74b41fab002bd91f5.zip
Small code cleanup.
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/religion.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index e2b80c93e6..aacf5f0b55 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1169,9 +1169,9 @@ static bool _need_missile_gift(bool forced)
{
const int best_missile_skill = best_skill(SK_SLINGS, SK_THROWING);
const item_def *launcher = _find_missile_launcher(best_missile_skill);
- return ((you.piety > 80
- && random2( you.piety ) > 70
- && one_chance_in(8) || forced)
+ return ((forced || you.piety > 80
+ && random2( you.piety ) > 70
+ && one_chance_in(8))
&& you.skills[ best_missile_skill ] >= 8
&& (launcher || best_missile_skill == SK_THROWING));
}