summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.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/player.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/player.cc')
-rw-r--r--crawl-ref/source/player.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 962334975b..4cd501d463 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -54,6 +54,7 @@
#include "stuff.h"
#include "transfor.h"
#include "travel.h"
+#include "tutorial.h"
#include "view.h"
/*
@@ -2069,8 +2070,10 @@ int burden_change(void)
{
you.burden_state = BS_ENCUMBERED;
- if (old_burdenstate != you.burden_state)
+ if (old_burdenstate != you.burden_state) {
mpr("You are being weighed down by all of your possessions.");
+ learned_something_new(TUT_HEAVY_LOAD);
+ }
}
else
{
@@ -2155,6 +2158,8 @@ void gain_exp( unsigned int exp_gained )
you.exp_available += exp_gained;
level_change();
+ if (Options.tutorial_left && you.experience_level == 5)
+ tutorial_finished();
} // end gain_exp()
void level_change(void)
@@ -2732,9 +2737,13 @@ void level_change(void)
if (you.religion == GOD_XOM)
Xom_acts(true, you.experience_level, true);
+
+ learned_something_new(TUT_NEW_LEVEL);
+
}
redraw_skill( you.your_name, player_title() );
+
} // end level_change()
// here's a question for you: does the ordering of mods make a difference?
@@ -4174,6 +4183,7 @@ void poison_player( int amount, bool force )
// XXX: which message channel for this message?
mpr( info );
+ learned_something_new(TUT_YOU_POISON);
}
}
@@ -4219,6 +4229,7 @@ void confuse_player( int amount, bool resistable )
// XXX: which message channel for this message?
mpr( info );
+ learned_something_new(TUT_YOU_ENCHANTED);
}
}
@@ -4256,6 +4267,7 @@ void slow_player( int amount )
if (you.slow > 100)
you.slow = 100;
+ learned_something_new(TUT_YOU_ENCHANTED);
}
}
@@ -4339,6 +4351,7 @@ void disease_player( int amount )
const int tmp = you.disease + amount;
you.disease = (tmp > 210) ? 210 : tmp;
+ learned_something_new(TUT_YOU_SICK);
}
void dec_disease_player( void )