summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-dgn.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-02-26 20:52:32 -0500
committerShmuale Mark <shm.mark@gmail.com>2014-05-30 13:27:44 -0400
commit5f570ca36cc6af95c23ddfda6fe1cd5efb71661a (patch)
tree407015b2b5192d7c29a8922a6f3d28a96870c01e /crawl-ref/source/wiz-dgn.cc
parent82193a2d1ca3e754cd6b398177d6293ae9afde85 (diff)
downloadcrawl-ref-5f570ca36cc6af95c23ddfda6fe1cd5efb71661a.tar.gz
crawl-ref-5f570ca36cc6af95c23ddfda6fe1cd5efb71661a.zip
Remove dart traps.
They had minimal damage and mechanical traps hardly generate anywhere anyway. In ossuaries (the only vaults with them, thank god), they've been mostly replaced with arrow traps or the floor.
Diffstat (limited to 'crawl-ref/source/wiz-dgn.cc')
-rw-r--r--crawl-ref/source/wiz-dgn.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-dgn.cc b/crawl-ref/source/wiz-dgn.cc
index 9b8ff5b1aa..94d695b16c 100644
--- a/crawl-ref/source/wiz-dgn.cc
+++ b/crawl-ref/source/wiz-dgn.cc
@@ -419,7 +419,13 @@ bool debug_make_trap(const coord_def& pos)
if (spec == "random" || spec == "any")
trap = TRAP_RANDOM;
- for (int t = TRAP_DART; t < NUM_TRAPS; ++t)
+ for (int t =
+#if TAG_MAJOR_VERSION == 34
+ TRAP_DART
+#else
+ TRAP_ARROW
+#endif
+ ; t < NUM_TRAPS; ++t)
{
const trap_type tr = static_cast<trap_type>(t);
string tname = lowercase_string(trap_name(tr));