summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-10-25 00:08:00 +0200
committerAdam Borowski <kilobyte@angband.pl>2009-10-25 00:08:00 +0200
commite5947ad199f02a46899fbe544f0c165333915afe (patch)
tree2f533ebf9068fdb2d362c68b401d4c51f6fe04ea /crawl-ref/source/religion.cc
parent0773235a1b546eafbb369690adc9852d474ffd99 (diff)
downloadcrawl-ref-e5947ad199f02a46899fbe544f0c165333915afe.tar.gz
crawl-ref-e5947ad199f02a46899fbe544f0c165333915afe.zip
Give Cb's piety only while resting, but at much faster rate.
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 9e0a8f0e59..c2e950b5fe 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -7222,8 +7222,13 @@ void handle_god_time()
return;
case GOD_CHEIBRIADOS:
- if (you.hunger_state < HS_FULL)
+ if (you.hunger_state < HS_FULL || you.delay_queue.empty()
+ || you.delay_queue.front().type != DELAY_REST)
return;
+ if (_need_free_piety() && one_chance_in(3))
+ gain_piety(1);
+ return;
+
case GOD_SHINING_ONE:
if (_need_free_piety() && one_chance_in(15))
gain_piety(1);