summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-dgn.cc
diff options
context:
space:
mode:
authorAlex MacDonald <alex@alexjmacdonald.com>2009-11-17 15:38:23 -0500
committerDavid Ploog <dploog@users.sourceforge.net>2009-11-18 00:21:21 +0100
commitb9a8bf470ada7bda89d43d38ca443196c0a0d39c (patch)
tree457bbb069eb9daa56e4ea6eeee3c4e40f3c39c78 /crawl-ref/source/wiz-dgn.cc
parented68368fe1c0ab6d048934ec94509750ba2eafb6 (diff)
downloadcrawl-ref-b9a8bf470ada7bda89d43d38ca443196c0a0d39c.tar.gz
crawl-ref-b9a8bf470ada7bda89d43d38ca443196c0a0d39c.zip
Added wizard command to reveal all traps on level ('}').
Signed-off-by: David Ploog <dploog@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/wiz-dgn.cc')
-rw-r--r--crawl-ref/source/wiz-dgn.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/wiz-dgn.cc b/crawl-ref/source/wiz-dgn.cc
index 69f5e1ec2a..cbecfbdfd5 100644
--- a/crawl-ref/source/wiz-dgn.cc
+++ b/crawl-ref/source/wiz-dgn.cc
@@ -412,6 +412,12 @@ void wizard_list_branches()
}
}
+void wizard_reveal_traps()
+{
+ int traps_revealed = reveal_traps(1000);
+ mprf("Revealed %d traps.", traps_revealed);
+}
+
void wizard_map_level()
{
if (testbits(env.level_flags, LFLAG_NOT_MAPPABLE)