summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-13 22:58:32 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-13 22:58:32 +0000
commit5f60ed597af609f91882a0fcb2d80494c418f5fa (patch)
tree71f8775cd387b85d7fe1c8a52fe68c3018e45c47 /crawl-ref/source/religion.cc
parent42daa4ad68114f6950c6ff4fc744b3eb7e1617fd (diff)
downloadcrawl-ref-5f60ed597af609f91882a0fcb2d80494c418f5fa.tar.gz
crawl-ref-5f60ed597af609f91882a0fcb2d80494c418f5fa.zip
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9453 c06c8d41-db1a-0410-9941-cceddc491573
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;