From efbd13d291da6a5f5f6fa6b3dfe20d8e4b77fcff Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 31 Mar 2007 10:18:24 +0000 Subject: Zin food/gift change. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.2@1140 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/religion.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 0556b26ad1..f0f2d59fd8 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -380,7 +380,8 @@ static void do_god_gift() { // Consider a gift if we don't have a timeout and weren't // already praying when we prayed. - if (!you.penance[you.religion] && !you.gift_timeout) + if (!you.penance[you.religion] + && (!you.gift_timeout || you.religion == GOD_ZIN)) { bool success = false; @@ -397,7 +398,7 @@ static void do_god_gift() { god_speaks(you.religion, "Your stomach feels content."); set_hunger(6000, true); - lose_piety(5 + random2avg(10, 2)); + 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