From 4d2c382bc72a43a84c3d7bb74b41fab002bd91f5 Mon Sep 17 00:00:00 2001 From: Johanna Ploog Date: Thu, 14 Jan 2010 21:28:25 +0100 Subject: Small code cleanup. --- crawl-ref/source/religion.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref') 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)); } -- cgit v1.2.3-54-g00ecf