diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-02-06 16:03:52 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-02-06 16:03:52 +0000 |
commit | 24be3228d463d6b2501cbca9368e14e91ab42182 (patch) | |
tree | 5fd30f60a43e1e69188bce4e30646c3e89e288b2 /crawl-ref/source/misc.cc | |
parent | f878a03c781fd57fea8447caaecee847ab576d8b (diff) | |
download | crawl-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/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index 3c9f0755fa..b3dd260423 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -61,6 +61,7 @@ #include "stuff.h" #include "transfor.h" #include "travel.h" +#include "tutorial.h" #include "view.h" extern FixedVector<char, 10> Visible_Statue; // defined in acr.cc @@ -1370,6 +1371,7 @@ void handle_traps(char trt, int i, bool trap_known) 75 + random2(100), 3, "a Zot trap" ); break; } + learned_something_new(TUT_SEEN_TRAPS); } // end handle_traps() void disarm_trap( struct dist &disa ) @@ -1687,6 +1689,8 @@ bool go_berserk(bool intentional) return false; } + if (Options.tutorial_left) + Options.tut_berserk_counter++; mpr("A red film seems to cover your vision as you go berserk!"); mpr("You feel yourself moving faster!"); mpr("You feel mighty!"); @@ -1918,13 +1922,15 @@ bool i_feel_safe(bool announce) { if (announce) mons.push_back(mon); - else + else { + tutorial_first_monster(*mon); return false; } } } } } + } if (announce) { |