summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/traps.h
diff options
context:
space:
mode:
authorAlex MacDonald <alex@alexjmacdonald.com>2009-11-14 18:45:17 -0500
committerDavid Ploog <dploog@users.sourceforge.net>2009-11-18 00:21:21 +0100
commit60739d905fb591cbab819d6b56a5a510584d25ee (patch)
treeb00520d905f32a0ca9965c2d4f58a9d542eb64b9 /crawl-ref/source/traps.h
parent905d7f0ef50939e92d20a5798ccd3ba12350c738 (diff)
downloadcrawl-ref-60739d905fb591cbab819d6b56a5a510584d25ee.tar.gz
crawl-ref-60739d905fb591cbab819d6b56a5a510584d25ee.zip
Shaft trap behavior modified. They now are one-time use and pre-knowledge of shaft traps (i.e. using them intentionally) will improve the chances of the player landing fewer levels away. Shaft traps also now randomly determine their destination. Monsters cannot follow the player through shaft traps.
Signed-off-by: David Ploog <dploog@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/traps.h')
-rw-r--r--crawl-ref/source/traps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/traps.h b/crawl-ref/source/traps.h
index bd25c0c9a8..1fe167040f 100644
--- a/crawl-ref/source/traps.h
+++ b/crawl-ref/source/traps.h
@@ -33,7 +33,7 @@ trap_def* find_trap(const coord_def& where);
trap_type get_trap_type(const coord_def& where);
bool is_valid_shaft_level(const level_id &place = level_id::current());
-level_id generic_shaft_dest(coord_def pos);
+level_id generic_shaft_dest(coord_def pos, bool known);
void handle_items_on_shaft(const coord_def& where, bool open_shaft);
int num_traps_for_place(int level_number = -1,