summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-06 16:03:52 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-06 16:03:52 +0000
commit24be3228d463d6b2501cbca9368e14e91ab42182 (patch)
tree5fd30f60a43e1e69188bce4e30646c3e89e288b2 /crawl-ref/source/travel.cc
parentf878a03c781fd57fea8447caaecee847ab576d8b (diff)
downloadcrawl-ref-24be3228d463d6b2501cbca9368e14e91ab42182.tar.gz
crawl-ref-24be3228d463d6b2501cbca9368e14e91ab42182.zip
Tutorial (JPEG) and some formatting cleanup.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@924 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index a3983a4145..4fa02e4764 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -27,6 +27,7 @@
#include "stash.h"
#include "stuff.h"
#include "travel.h"
+#include "tutorial.h"
#include "view.h"
#include <algorithm>
@@ -832,8 +833,10 @@ static void explore_find_target_square()
// No place to go? Report to the player.
const int estatus = find_explore_status(tp);
- if (!estatus)
+ if (!estatus) {
mpr("Done exploring.");
+ learned_something_new(TUT_DONE_EXPLORE);
+ }
else
{
std::vector<std::string> inacc;
@@ -3462,6 +3465,10 @@ void explore_discoveries::add_item(const item_def &i)
}
items.push_back( named_thing<item_def>(item_name(i, DESC_NOCAP_A), i) );
+
+ // first item of this type?
+ // only works when travelling
+ tutorial_first_item(i);
}
void explore_discoveries::found_item(const coord_def &pos, const item_def &i)