summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-ench.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-03-22 11:15:53 +0000
committerChris Campbell <chriscampbell89@gmail.com>2014-03-22 11:15:53 +0000
commitfb3b2ccdc0fcd94e36f57d1fd1d108505ce5fcb7 (patch)
treea684699654f364114bd2d9827630eaf3947df3af /crawl-ref/source/mon-ench.cc
parentb668a250871c84abf48b590b6e89288aac4c7892 (diff)
downloadcrawl-ref-fb3b2ccdc0fcd94e36f57d1fd1d108505ce5fcb7.tar.gz
crawl-ref-fb3b2ccdc0fcd94e36f57d1fd1d108505ce5fcb7.zip
Remove the unused HOLY_LIGHT beam/zap
Confusingly it's not used by silver star's SPELL_HOLY_LIGHT. In theory it seems to be used by Zin's silver corona recite effect, but since nothing resists or is vulnerable to it it actually does nothing. Silver corona still just does sticky flame-levels of damage to all chaotic targets, as it claims to in the comment. ZAP_HOLY_LIGHT apparently existed just to make things even more confusing (if a player somehow managed to cast SPELL_HOLY_LIGHT they would get a completely different effect to the monster version!).
Diffstat (limited to 'crawl-ref/source/mon-ench.cc')
-rw-r--r--crawl-ref/source/mon-ench.cc16
1 files changed, 2 insertions, 14 deletions
diff --git a/crawl-ref/source/mon-ench.cc b/crawl-ref/source/mon-ench.cc
index a165337340..fd578756c1 100644
--- a/crawl-ref/source/mon-ench.cc
+++ b/crawl-ref/source/mon-ench.cc
@@ -1859,22 +1859,10 @@ void monster::apply_enchantment(const mon_enchant &me)
case ENCH_SILVER_CORONA:
if (is_chaotic())
{
- bolt beam;
- beam.flavour = BEAM_HOLY_LIGHT;
int dam = roll_dice(2, 4) - 1;
-
- int newdam = mons_adjust_flavoured(this, beam, dam, false);
-
- if (newdam > 0)
- {
- string msg = mons_has_flesh(this) ? "'s flesh" : "";
- msg += (dam < newdam) ? " is horribly charred!"
- : " is seared.";
- simple_monster_message(this, msg.c_str());
- }
-
+ simple_monster_message(this, " is seared!");
dprf("Zin's Corona damage: %d", dam);
- hurt(me.agent(), dam, BEAM_HOLY_LIGHT);
+ hurt(me.agent(), dam);
}
decay_enchantment(en, true);