diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-31 10:18:24 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-31 10:18:24 +0000 |
commit | efbd13d291da6a5f5f6fa6b3dfe20d8e4b77fcff (patch) | |
tree | bf2da3f4acbc82e070e236930d72ae52ddadafe6 | |
parent | fb2da9f1fff0583e6e417618d9eeace5ffe3a1e7 (diff) | |
download | crawl-ref-efbd13d291da6a5f5f6fa6b3dfe20d8e4b77fcff.tar.gz crawl-ref-efbd13d291da6a5f5f6fa6b3dfe20d8e4b77fcff.zip |
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
-rw-r--r-- | crawl-ref/source/religion.cc | 5 |
1 files 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; |