summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-02-01 22:29:28 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-02-01 22:29:28 +0000
commit8190b0f9eafb99e6e8d8d510bcf3264dcc5ff71d (patch)
tree48bfe1f5c648ef2208878eca0ae0c068885b6f91 /crawl-ref/source/acr.cc
parent633cc4c9ff8c079b83fa27f531c320342cf26873 (diff)
downloadcrawl-ref-8190b0f9eafb99e6e8d8d510bcf3264dcc5ff71d.tar.gz
crawl-ref-8190b0f9eafb99e6e8d8d510bcf3264dcc5ff71d.zip
A few tweaks of Zin invocations, thanks to David Ramsey.
Donating money will now also affect penance (along with special messages). I just used gain_piety(1) for this - the downside is that now it also respects the slower piety growth of the actual piety gain only happening in 66% (piety > 100) or 33% (piety > 150) of piety leaking in (and out of the pool!) Zin will provide sustenance even under penance, and Recite trains Invocations now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3383 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index f5ad7402b4..77f8ea1035 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -2692,17 +2692,10 @@ static void decrement_durations()
if (you.duration[DUR_PIETY_POOL] && one_chance_in(5))
{
you.duration[DUR_PIETY_POOL]--; // decrease even if piety at maximum
- if (you.piety < 200)
- {
-#if DEBUG_DIAGNOSTICS || DEBUG_SACRIFICE || DEBUG_PIETY
- mpr("Piety increases by 1 due to piety pool.", MSGCH_DIAGNOSTICS);
-#endif
- you.piety++;
- }
+ gain_piety(1);
+
#if DEBUG_DIAGNOSTICS || DEBUG_SACRIFICE || DEBUG_PIETY
- else
- mpr("Piety already at maximum and fails to increase "
- "from piety pool.", MSGCH_DIAGNOSTICS);
+ mpr("Piety increases by 1 due to piety pool.", MSGCH_DIAGNOSTICS);
if (!you.duration[DUR_PIETY_POOL])
mpr("Piety pool is now empty.", MSGCH_DIAGNOSTICS);