From 5f60ed597af609f91882a0fcb2d80494c418f5fa Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 13 Mar 2009 22:58:32 +0000 Subject: Simplify. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9453 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/religion.cc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/religion.cc') 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; -- cgit v1.2.3-54-g00ecf