summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-29 04:25:29 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-29 04:25:29 +0000
commit070e8e31875e8f43b5cd14d2385111f3b38cb4ee (patch)
tree071251ca7c6e9432c10bddd0ba907847b07d2d9a /crawl-ref/source/misc.cc
parentd3bec380204bd43c7981fc3423ecfcb0f80afd12 (diff)
downloadcrawl-ref-070e8e31875e8f43b5cd14d2385111f3b38cb4ee.tar.gz
crawl-ref-070e8e31875e8f43b5cd14d2385111f3b38cb4ee.zip
Fire TUT_SEEN_TRAP when a trap is detected, in addition to when a trap
is triggered. Give info on avoid mechanical and natural traps by leviating or flying, and that natural and magical traps can't be disarmed. Give hint resting on up-stairs to make quick escape from monsters, and note that monsters can't follow up up unless they're right next to you. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5322 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 357b97a80c..039d908e2c 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -1194,6 +1194,8 @@ void search_around( bool only_adjacent )
{
grd[srx][sry] = trap_category(env.trap[i].type);
mpr("You found a trap!");
+ learned_something_new(TUT_SEEN_TRAP, srx, sry);
+
exercise(SK_TRAPS_DOORS, (coinflip() ? 2 : 1));
}
else