From 9f6def7c5dbe99977cce9f974b12303433f013b7 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Fri, 30 May 2008 05:16:55 +0000 Subject: 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 --- crawl-ref/source/religion.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/religion.cc') 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 -- cgit v1.2.3-54-g00ecf