summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/delay.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-25 07:09:56 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-25 07:09:56 +0000
commit781c1cda9ce49cec2064cbf438e52ef6aaff41a3 (patch)
tree27f2e13f6ddc8307b10efdb99935bc1fcbb2f2ab /crawl-ref/source/delay.cc
parent7a3b0b0a92e9e07200a598d743af697c9ea6aae8 (diff)
downloadcrawl-ref-781c1cda9ce49cec2064cbf438e52ef6aaff41a3.tar.gz
crawl-ref-781c1cda9ce49cec2064cbf438e52ef6aaff41a3.zip
Added some new tutorial events (not tested with the tile build):
* Auto-explore hint (200 turns after level map hint). * Explanation of the "Your equipment suddenly weighs less" message. * Explanations of trap and heap branding (non-tile builds only). * A note that monsters that have moved out of LOS haven't just vanished. * Events for gaining an ability from a mutation and gaining one from an item which was just equipped, separate from the event for the first divinely granted ability. * An explanation that shouting monsters have just noticed you, plus that their shout is likely to attract the attention of other monsters. * A "seen portal vault entrance" event, since the entry to the sewers can appear on DL 3 through 6, and there's also a very small chance of a Zigguart entrance apearing as early as DL 3. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9823 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r--crawl-ref/source/delay.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index 13e06420ca..0e9fc81352 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -13,6 +13,7 @@ REVISION("$Rev$");
#include <stdio.h>
#include <string.h>
+#include "abl-show.h"
#include "clua.h"
#include "command.h"
#include "database.h"
@@ -1417,6 +1418,8 @@ static void _finish_delay(const delay_queue_item &delay)
void armour_wear_effects(const int item_slot)
{
+ const unsigned int old_talents = your_talents(false).size();
+
item_def &arm = you.inv[item_slot];
const bool was_known = item_type_known(arm);
@@ -1592,6 +1595,9 @@ void armour_wear_effects(const int item_slot)
if (eq_slot == EQ_SHIELD)
warn_shield_penalties();
+ if (Options.tutorial_left && your_talents(false).size() > old_talents)
+ learned_something_new(TUT_NEW_ABILITY_ITEM);
+
you.redraw_armour_class = true;
you.redraw_evasion = true;
}