From cbafbc638c2e1d5bb40ee6bc419007062e9615e4 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Wed, 5 Oct 2016 18:45:09 +0200 Subject: Remove traps Credit goes mostly to "miramor" who did most of the actual work. I just did a few minor tweaks and fixes + rebased onto master. --- src/q_haunted.cc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/q_haunted.cc') diff --git a/src/q_haunted.cc b/src/q_haunted.cc index df90435c..f3725830 100644 --- a/src/q_haunted.cc +++ b/src/q_haunted.cc @@ -12,7 +12,6 @@ #include "monster2.hpp" #include "monster_type.hpp" #include "player_type.hpp" -#include "traps.hpp" #include "tables.hpp" #include "util.hpp" #include "variable.hpp" @@ -86,19 +85,6 @@ static bool_ quest_haunted_gen_hook(void *, void *, void *) } } - /* Place some random traps */ - for (i = 10 + damroll(4, 4); i > 0; ) - { - y = rand_int(21) + 3; - x = rand_int(31) + 3; - auto const flags = f_info[cave[y][x].feat].flags; - if (!(flags & FF_PERMANENT) && (flags & FF_FLOOR)) - { - --i; - place_trap(y, x); - } - } - process_hooks_restart = TRUE; return TRUE; -- cgit v1.2.3