summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-behv.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-05-04 23:47:47 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-05-05 00:02:00 -0400
commita5424833455d53c6fb2d6d63a9e9feb38181cbf1 (patch)
treea7d2f09aa3374953a0b422d66c95cb0ba10abf03 /crawl-ref/source/mon-behv.cc
parent23238270265ca678ef325505d69bdba4829162bf (diff)
downloadcrawl-ref-a5424833455d53c6fb2d6d63a9e9feb38181cbf1.tar.gz
crawl-ref-a5424833455d53c6fb2d6d63a9e9feb38181cbf1.zip
Remove spriggan enchanters.
The monster. It didn't really exist anywhere, nor did the idea seem to add too much to the good-sized danger that spriggans already posed.
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r--crawl-ref/source/mon-behv.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc
index 60c5d6c47b..ac0a0a6269 100644
--- a/crawl-ref/source/mon-behv.cc
+++ b/crawl-ref/source/mon-behv.cc
@@ -256,17 +256,6 @@ static void _set_curse_skull_lurk_pos(monster* mon)
}
}
-static bool _stabber_keep_distance(const monster* mon, const actor* foe)
-{
- return mons_class_flag(mon->type, M_STABBER)
- && !mon->berserk_or_insane()
- && (mons_has_incapacitating_ranged_attack(mon, foe)
- || mons_has_incapacitating_spell(mon, foe))
- && !foe->incapacitated()
- && !adjacent(mon->pos(), foe->pos())
- && !mons_aligned(mon, foe);
-}
-
//---------------------------------------------------------------
//
// handle_behaviour
@@ -823,16 +812,6 @@ void handle_behaviour(monster* mon)
// Get to firing range even if we are close.
_set_firing_pos(mon, you.pos());
}
- else if (_stabber_keep_distance(mon, &you))
- {
- if (mon->pos().distance_from(you.pos()) < 4
- && !one_chance_in(7))
- {
- mon->firing_pos = mon->pos();
- }
- else
- _set_firing_pos(mon, you.pos());
- }
else if (mon->type == MONS_SIREN)
find_siren_water_target(mon);
else if (!mon->firing_pos.zero()
@@ -865,16 +844,6 @@ void handle_behaviour(monster* mon)
{
_set_firing_pos(mon, mon->target);
}
- else if (target && _stabber_keep_distance(mon, target))
- {
- if (mon->pos().distance_from(target->pos()) < 4
- && !one_chance_in(7))
- {
- mon->firing_pos = mon->pos();
- }
- else
- _set_firing_pos(mon, target->pos());
- }
// Hold position if we've reached our ideal range
else if (mon->type == MONS_SPELLFORGED_SERVITOR
&& (mon->pos() - target->pos()).abs()