From 06bf811e45f13eddea2dd1c1f4b3554c68e09553 Mon Sep 17 00:00:00 2001 From: abrahamwl Date: Wed, 28 Oct 2009 11:02:12 -0700 Subject: Beams can be assigned custom hit verbs now If a beam is not, old behavior is default. --- crawl-ref/source/effects.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 6dc8b2dbcf..6d53393bbd 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -408,8 +408,6 @@ static bool _conduct_electricity_aoe(bolt& beam, const coord_def& target) void conduct_electricity(coord_def where, actor *attacker) { - const char *aux = "arcing electricity"; - bolt beam; beam.flavour = BEAM_ELECTRICITY; @@ -417,8 +415,9 @@ void conduct_electricity(coord_def where, actor *attacker) beam.damage = dice_def(1, 15); beam.target = where; beam.name = "electric current"; - beam.colour = LIGHTCYAN; - beam.aux_source = aux; + beam.hit_verb = "shocks"; + beam.colour = ETC_ELECTRICITY; + beam.aux_source = "arcing electricity"; beam.ex_size = 1; beam.is_explosion = true; beam.effect_known = true; -- cgit v1.2.3-54-g00ecf