summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-05-10 19:39:54 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-10 21:38:22 -0600
commit72ef8b28170c08458c8a9a791efb6558dc9c7ef9 (patch)
treef0b64cde3ed4fea9dc4cf90b767dc2d66c423bce /crawl-ref/source/mon-abil.cc
parent6cf90bca021ffcc2dd68b5c2381efa552d5a8e7f (diff)
downloadcrawl-ref-72ef8b28170c08458c8a9a791efb6558dc9c7ef9.tar.gz
crawl-ref-72ef8b28170c08458c8a9a791efb6558dc9c7ef9.zip
Remove the special abilities of OCS and SS.
To be reimplemented more normally.
Diffstat (limited to 'crawl-ref/source/mon-abil.cc')
-rw-r--r--crawl-ref/source/mon-abil.cc84
1 files changed, 0 insertions, 84 deletions
diff --git a/crawl-ref/source/mon-abil.cc b/crawl-ref/source/mon-abil.cc
index 7ee9db409e..9b25987fb4 100644
--- a/crawl-ref/source/mon-abil.cc
+++ b/crawl-ref/source/mon-abil.cc
@@ -1086,76 +1086,6 @@ static bool _siren_movement_effect(const monster* mons)
return do_resist;
}
-static bool _silver_statue_effects(monster* mons)
-{
- actor *foe = mons->get_foe();
-
- int abjuration_duration = 5;
-
- // Tone down friendly silver statues for Zotdef.
- if (mons->attitude == ATT_FRIENDLY && !(foe && foe->is_player())
- && crawl_state.game_is_zotdef())
- {
- if (!one_chance_in(3))
- return false;
- abjuration_duration = 1;
- }
-
- if (foe && mons->can_see(foe) && !one_chance_in(3))
- {
- const string msg = "'s eyes glow " + weird_glowing_colour() + '.';
- simple_monster_message(mons, msg.c_str(), MSGCH_WARN);
-
- create_monster(
- mgen_data(
- summon_any_demon((coinflip() ? RANDOM_DEMON_COMMON
- : RANDOM_DEMON_LESSER)),
- SAME_ATTITUDE(mons), mons, abjuration_duration, 0,
- foe->pos(), mons->foe));
- return true;
- }
- return false;
-}
-
-static bool _orange_statue_effects(monster* mons)
-{
- actor *foe = mons->get_foe();
-
- int pow = random2(15);
- int fail = random2(150);
-
- if (foe && mons->can_see(foe) && !one_chance_in(3))
- {
- // Tone down friendly OCSs for Zotdef.
- if (mons->attitude == ATT_FRIENDLY && !foe->is_player()
- && crawl_state.game_is_zotdef())
- {
- if (foe->check_res_magic(120) > 0)
- return false;
- pow /= 2;
- fail /= 2;
- }
-
- if (you.can_see(foe))
- {
- if (foe->is_player())
- mprf(MSGCH_WARN, "A hostile presence attacks your mind!");
- else if (you.can_see(mons))
- mprf(MSGCH_WARN, "%s fixes %s piercing gaze on %s.",
- mons->name(DESC_THE).c_str(),
- mons->pronoun(PRONOUN_POSSESSIVE).c_str(),
- foe->name(DESC_THE).c_str());
- }
-
- MiscastEffect(foe, mons->mindex(), SPTYP_DIVINATION,
- pow, fail,
- "an orange crystal statue");
- return true;
- }
-
- return false;
-}
-
enum battlecry_type
{
BATTLECRY_ORC,
@@ -3505,20 +3435,6 @@ bool mon_special_ability(monster* mons, bolt & beem)
}
break;
- case MONS_ORANGE_STATUE:
- if (player_or_mon_in_sanct(mons))
- break;
-
- used = _orange_statue_effects(mons);
- break;
-
- case MONS_SILVER_STATUE:
- if (player_or_mon_in_sanct(mons))
- break;
-
- used = _silver_statue_effects(mons);
- break;
-
case MONS_BALL_LIGHTNING:
if (is_sanctuary(mons->pos()))
break;