summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-30 05:16:55 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-30 05:16:55 +0000
commit9f6def7c5dbe99977cce9f974b12303433f013b7 (patch)
treed18c9bb29ecffb54df9b9596e92f65b2dc5d7c57 /crawl-ref/source/religion.cc
parent38ebcee4627305ea124f2802fc9498e1acb97764 (diff)
downloadcrawl-ref-9f6def7c5dbe99977cce9f974b12303433f013b7.tar.gz
crawl-ref-9f6def7c5dbe99977cce9f974b12303433f013b7.zip
Added a "your god is growing displeased" tutorial event, so that turorial
players will get a warning about piety growing low before they get excommunicated. Breaks tutorial compatibility, but otherwise maintains savefile compatibilty. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5338 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 7ac6aa2350..347e230057 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -2943,6 +2943,9 @@ void lose_piety(int pgn)
}
}
+ if (you.piety > 0 && you.piety <= 5)
+ learned_something_new(TUT_GOD_DISPLEASED);
+
if ( you.religion == GOD_BEOGH )
{
// every piety level change also affects AC from orcish gear