summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-02-29 20:11:21 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-02-29 20:11:21 +0000
commit82fd8b10b5d975349ddb4088f205401687d75f7b (patch)
treeab44ea237731ac2a88648e98f2dcca93d1b8af47 /crawl-ref/source/tutorial.cc
parent6b1ce5dda57255e4f6bc166a27b3b071739ac5d1 (diff)
downloadcrawl-ref-82fd8b10b5d975349ddb4088f205401687d75f7b.tar.gz
crawl-ref-82fd8b10b5d975349ddb4088f205401687d75f7b.zip
Fix trunk compile, and a bit of code clean-up.
Oh, and filter MSGCH_PROMPT from message history. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3488 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index cbf885a235..0208067c95 100644
--- a/crawl-ref/source/tutorial.cc
+++ b/crawl-ref/source/tutorial.cc
@@ -663,6 +663,7 @@ void tutorial_finished()
text = "Congrats! You survived until the end of this tutorial - be sure to "
"try the other ones as well. Note that the help screen (<w>?</w>) "
"will look different from now on. Here's a last playing hint:";
+
formatted_message_history(text, MSGCH_TUTORIAL, 0, get_tutorial_cols());
more();
@@ -932,6 +933,7 @@ void tutorial_first_monster(const monsters &mon)
"bow. If you have a look at your bow with <w>v</w>, you'll "
"find an explanation of how to do this. First <w>w</w>ield "
"it, then follow the instructions.";
+
formatted_message_history(text, MSGCH_TUTORIAL, 0, get_tutorial_cols());
}
else if (Options.tutorial_type == TUT_MAGIC_CHAR)
@@ -939,6 +941,7 @@ void tutorial_first_monster(const monsters &mon)
text = "However, as a conjurer you will want to deal with it using magic. "
"If you have a look at your spellbook with <w>v</w>, you'll "
"find an explanation of how to do this.";
+
formatted_message_history(text, MSGCH_TUTORIAL, 0, get_tutorial_cols());
}
}
@@ -966,12 +969,13 @@ void tutorial_first_item(const item_def &item)
get_item_glyph(&item, &ch, &col);
text += colourize_glyph(col, ch);
+ text += " ";
#else
// highlight item
const coord_def ep = grid2view(coord_def(item.x, item.y));
tile_place_cursor(ep.x-1,ep.y-1,true);
#endif
- text += " is an item. If you move there and press <w>g</w> or "
+ text += "is an item. If you move there and press <w>g</w> or "
"<w>,</w> you will pick it up. "
#ifndef USE_TILE
"Generally, items are shown by "
@@ -982,6 +986,7 @@ void tutorial_first_item(const item_def &item)
"automatically."
"\nAny time you <w>v</w>iew an item, you can read about its "
"properties and description.";
+
formatted_message_history(text, MSGCH_TUTORIAL, 0, get_tutorial_cols());
}