summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-28 18:22:41 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-28 18:22:41 +0000
commit2b335fe17e827aa4b3d756c5f5340767d002572e (patch)
treea58e4ebe7d81ffb97bbd1e4e239ee8479fc1aac3 /crawl-ref/source/religion.cc
parente63eb3df328287de6c6562fd60366894097ec17a (diff)
downloadcrawl-ref-2b335fe17e827aa4b3d756c5f5340767d002572e.tar.gz
crawl-ref-2b335fe17e827aa4b3d756c5f5340767d002572e.zip
When sacrificing items to a god, display the message indicating the
god's favor before the sacrifice, not after. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9287 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 4c209a512d..54e0bd70b2 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -2205,13 +2205,6 @@ void pray()
was_praying ? "renew your" : "offer a",
god_name(you.religion).c_str());
- // Beoghites and Nemelexites offer the items they're standing on.
- if (altar_god == GOD_NO_GOD
- && (you.religion == GOD_BEOGH || you.religion == GOD_NEMELEX_XOBEH))
- {
- offer_items();
- }
-
you.duration[DUR_PRAYER] = 9 + (random2(you.piety) / 20)
+ (random2(you.piety) / 20);
@@ -2233,8 +2226,13 @@ void pray()
you.duration[DUR_PRAYER] = 1;
}
else if (you.religion == GOD_YREDELEMNUL || you.religion == GOD_ELYVILON)
- {
you.duration[DUR_PRAYER] = 20;
+
+ // Beoghites and Nemelexites offer the items they're standing on.
+ if (altar_god == GOD_NO_GOD
+ && (you.religion == GOD_BEOGH || you.religion == GOD_NEMELEX_XOBEH))
+ {
+ offer_items();
}
if (!was_praying)