summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 924300e0c0..5e55c25f54 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1873,16 +1873,12 @@ static void _do_god_gift(bool prayed_for)
case GOD_ZIN:
//jmf: this "good" god will feed you (a la Nethack)
- if (prayed_for)
+ if (prayed_for && zin_sustenance())
{
- if (zin_sustenance())
- {
- god_speaks(you.religion, "Your stomach feels content.");
- set_hunger(6000, true);
- lose_piety(5 + random2avg(10, 2)
- + (you.gift_timeout ? 5 : 0));
- _inc_gift_timeout(30 + random2avg(10, 2));
- }
+ god_speaks(you.religion, "Your stomach feels content.");
+ set_hunger(6000, true);
+ lose_piety(5 + random2avg(10, 2) + (you.gift_timeout ? 5 : 0));
+ _inc_gift_timeout(30 + random2avg(10, 2));
}
break;