diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:09 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:49:38 +0200 |
commit | cbafbc638c2e1d5bb40ee6bc419007062e9615e4 (patch) | |
tree | 0a4644c9c935a2a54d8b52613c67a09fc2fbf4be /src/q_haunted.cc | |
parent | 551339813797a9b274ccf5f3f0c4f0d0b44cbf64 (diff) |
Remove traps
Credit goes mostly to "miramor" <danlev@norwoodlight.com> who did most
of the actual work. I just did a few minor tweaks and fixes + rebased
onto master.
Diffstat (limited to 'src/q_haunted.cc')
-rw-r--r-- | src/q_haunted.cc | 14 |
1 files changed, 0 insertions, 14 deletions
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; |