summaryrefslogtreecommitdiff
path: root/src/melee2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:09 +0200
committerBardur Arantsson <bardur@scientician.net>2016-10-05 18:49:38 +0200
commitcbafbc638c2e1d5bb40ee6bc419007062e9615e4 (patch)
tree0a4644c9c935a2a54d8b52613c67a09fc2fbf4be /src/melee2.cc
parent551339813797a9b274ccf5f3f0c4f0d0b44cbf64 (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/melee2.cc')
-rw-r--r--src/melee2.cc30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/melee2.cc b/src/melee2.cc
index 415fd478..df9ee6d3 100644
--- a/src/melee2.cc
+++ b/src/melee2.cc
@@ -44,7 +44,6 @@
#include "spells2.hpp"
#include "stats.hpp"
#include "tables.hpp"
-#include "traps.hpp"
#include "util.hpp"
#include "variable.hpp"
#include "xtra2.hpp"
@@ -2126,12 +2125,6 @@ static bool_ monst_spell_monst(int m_idx)
break;
}
- case SF_TRAPS_IDX:
- {
- /* Not implemented */
- break;
- }
-
case SF_FORGET_IDX:
{
/* Not implemented */
@@ -3628,15 +3621,6 @@ static bool_ make_attack_spell(int m_idx)
break;
}
- case SF_TRAPS_IDX:
- {
- disturb(1);
- if (blind) msg_format("%^s mumbles, and then cackles evilly.", m_name);
- else msg_format("%^s casts a spell and cackles evilly.", m_name);
- (void)trap_creation();
- break;
- }
-
case SF_FORGET_IDX:
{
disturb(1);
@@ -5683,13 +5667,6 @@ static void process_monster(int m_idx, bool_ is_frien)
do_move = TRUE;
}
- /* Floor is trapped? */
- else if (c_ptr->feat == FEAT_MON_TRAP)
- {
- /* Go ahead and move */
- do_move = TRUE;
- }
-
/* Hack -- check for Glyph of Warding */
if ((c_ptr->feat == FEAT_GLYPH) &&
!(r_ptr->flags & RF_NEVER_BLOW))
@@ -6158,12 +6135,7 @@ static void process_monster(int m_idx, bool_ is_frien)
disturb(0);
}
- /* Check for monster trap */
- if (c_ptr->feat == FEAT_MON_TRAP)
- {
- if (mon_hit_trap(m_idx)) return;
- }
- else
+
{
/* Copy list of objects; we need a copy because we're mutating the list. */
auto const object_idxs(c_ptr->o_idxs);