summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2011-01-26 15:18:38 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2011-01-26 21:17:40 +0100
commit77105c4ee4f6e925aae9443a2f246cbbc9994325 (patch)
tree16a0e438d818c50e3a9ba9b04c50d9c3647a3648 /crawl-ref/source/tutorial.cc
parent877c75fd66518a2ef98437cca2ea96efbe0a6f55 (diff)
downloadcrawl-ref-77105c4ee4f6e925aae9443a2f246cbbc9994325.tar.gz
crawl-ref-77105c4ee4f6e925aae9443a2f246cbbc9994325.zip
Give survival hints in tutorial death message.
Also, make the wizmode death prompt work in the Tutorial.
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index f017a3b1db..09053f6c7f 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -7,11 +7,9 @@
#include "externs.h"
#include "maps.h"
-#include "mon-util.h"
+#include "message.h"
#include "mpr.h"
-#include "ng-setup.h"
#include "player.h"
-#include "random.h"
#include "state.h"
#include "tutorial.h"
@@ -44,3 +42,15 @@ void set_tutorial_hunger(int hunger)
you.hunger = hunger;
}
+
+void tutorial_death_message()
+{
+ mprnojoin("You die...");
+ mprnojoin("In Crawl, death is a sad but common occurence. "
+ "Note that there's usually something you could have done to "
+ "survive, for example by using some kind of item, running away, "
+ "resting between fights, or by avoiding combat entirely. "
+ "Keep trying, eventually you'll prevail!",
+ MSGCH_TUTORIAL);
+ more();
+}