summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fineff.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-02-09 17:39:19 +0000
committerChris Campbell <chriscampbell89@gmail.com>2014-02-09 19:37:44 +0000
commit2b0288b017874b531edc7170ef78c41c9fceec94 (patch)
tree2843344ad1094f8ee2b8289bfb07fcb89f902070 /crawl-ref/source/fineff.cc
parent2294cc43dd8b4ea7e92c0ebc61ceb1f27b411394 (diff)
downloadcrawl-ref-2b0288b017874b531edc7170ef78c41c9fceec94.tar.gz
crawl-ref-2b0288b017874b531edc7170ef78c41c9fceec94.zip
Don't arc electricity when attacking with an elec weapon in water
The main thing it did was cause annoying prompts when you could hit yourself or an ally with the arc. It was rarely relevant other than that, and just made elec brand a bit more complicated unnecessarily.
Diffstat (limited to 'crawl-ref/source/fineff.cc')
-rw-r--r--crawl-ref/source/fineff.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/crawl-ref/source/fineff.cc b/crawl-ref/source/fineff.cc
index da18eeac0e..61c1af8a99 100644
--- a/crawl-ref/source/fineff.cc
+++ b/crawl-ref/source/fineff.cc
@@ -36,12 +36,6 @@ void final_effect::schedule()
env.final_effects.push_back(this);
}
-bool lightning_fineff::mergeable(const final_effect &fe) const
-{
- const lightning_fineff *o = dynamic_cast<const lightning_fineff *>(&fe);
- return o && att == o->att && posn == o->posn;
-}
-
bool mirror_damage_fineff::mergeable(const final_effect &fe) const
{
const mirror_damage_fineff *o =
@@ -140,13 +134,6 @@ void deferred_damage_fineff::merge(const final_effect &fe)
damage += ddamfe->damage;
}
-void lightning_fineff::fire()
-{
- if (you.see_cell(posn))
- mpr("Electricity arcs through the water!");
- conduct_electricity(posn, attacker());
-}
-
void mirror_damage_fineff::fire()
{
actor *attack = attacker();