diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-30 05:16:55 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-30 05:16:55 +0000 |
commit | 9f6def7c5dbe99977cce9f974b12303433f013b7 (patch) | |
tree | d18c9bb29ecffb54df9b9596e92f65b2dc5d7c57 /crawl-ref/source/tutorial.cc | |
parent | 38ebcee4627305ea124f2802fc9498e1acb97764 (diff) | |
download | crawl-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/tutorial.cc')
-rw-r--r-- | crawl-ref/source/tutorial.cc | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc index d7cf5b96c8..a90bbf1508 100644 --- a/crawl-ref/source/tutorial.cc +++ b/crawl-ref/source/tutorial.cc @@ -52,7 +52,7 @@ static void _tutorial_describe_cloud(int x, int y); static bool _water_is_disturbed(int x, int y); //#define TUTORIAL_DEBUG -#define TUTORIAL_VERSION 112 +#define TUTORIAL_VERSION 113 static int _get_tutorial_cols() { @@ -411,6 +411,8 @@ static std::string _tut_debug_list(int event) return "seen first friendly monster"; case TUT_CONVERT: return "converted to a god"; + case TUT_GOD_DISPLEASED: + return "piety ran low"; case TUT_EXCOMMUNICATE: return "excommunicated by a god"; case TUT_SPELL_MISCAST: @@ -2465,6 +2467,24 @@ void learned_something_new(tutorial_event_type seen_what, int x, int y) _new_god_conduct(); break; + case TUT_GOD_DISPLEASED: + text << "Uh-oh, " << god_name(you.religion) << " is growing displead " + "because your piety is running low. This can be caused by " + "you doing things to annoy him"; + + if (!is_good_god(you.religion)) + { + // Piety decreases over time for non-good gods + text << ", not doing things to please him frequently enough, or " + "a combination of the two"; + } + text << ". "; + + text << "If your piety goes to zero then you'll be excomunnicated. " + "Better get cracking on raising your piety and/or stop " + "annoying annoying your god."; + break; + case TUT_EXCOMMUNICATE: { const god_type new_god = (god_type) x; |