summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-10 20:24:12 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-10 20:24:30 -0800
commit4d643d58d1bf0743476db82965db22a29516f258 (patch)
treeb5f0d48c542f761343b69981eb29a2c3d59895fa /crawl-ref/source/tutorial.cc
parent4a2e918c73a0f9e7486204a7722097a68186f7db (diff)
downloadcrawl-ref-4d643d58d1bf0743476db82965db22a29516f258.tar.gz
crawl-ref-4d643d58d1bf0743476db82965db22a29516f258.zip
tutorial.cc: Description for bloodstains
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc23
1 files changed, 22 insertions, 1 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index aaa8ce3372..8e4a02f207 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -25,6 +25,7 @@
#include "describe.h"
#include "food.h"
#include "format.h"
+#include "fprop.h"
#include "invent.h"
#include "itemname.h"
#include "itemprop.h"
@@ -4249,6 +4250,8 @@ static void _tutorial_describe_feature(int x, int y)
std::ostringstream ostr;
ostr << "\n\n<" << colour_to_str(channel_to_colour(MSGCH_TUTORIAL)) << ">";
+ bool boring = false;
+
switch (feat)
{
case DNGN_ORCISH_IDOL:
@@ -4441,8 +4444,26 @@ static void _tutorial_describe_feature(int x, int y)
break;
}
else
- return;
+ {
+ // Describe blood-stains even for boring features.
+ if (!is_bloodcovered(where))
+ return;
+ boring = true;
+ }
}
+
+ if (is_bloodcovered(where))
+ {
+ if (!boring)
+ ostr << "\n\n";
+
+ ostr << "Many forms of combat and some forms of magical attack "
+ "will splatter the surrounings with blood (if the victim has "
+ "any blood, that is). Some monsters can smell blood from "
+ "a distance and will come looking for whatever the blood "
+ "was spilled from.";
+ }
+
ostr << "</" << colour_to_str(channel_to_colour(MSGCH_TUTORIAL)) << ">";
std::string broken = ostr.str();