summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-15 23:20:44 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-15 23:20:44 +0000
commitc5f460f024c071a1c56980dc89ab15b2cf860f8c (patch)
tree0538c9d2a0b9c8dff1b95331f1e12b68f645f1fc /crawl-ref/source/xom.cc
parentb845b3611b4c5cb1798618320211e0532de969ae (diff)
downloadcrawl-ref-c5f460f024c071a1c56980dc89ab15b2cf860f8c.tar.gz
crawl-ref-c5f460f024c071a1c56980dc89ab15b2cf860f8c.zip
Add various beam explosion-related cleanups. Also, make cleansing flame
an explosion of BEAM_HOLY around the player instead of an aimable effect. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8467 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index de3c69fa54..b6cf9f9300 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -1086,18 +1086,20 @@ static bool _xom_throw_divine_lightning()
god_speaks(GOD_XOM, "The area is suffused with divine lightning!");
bolt beam;
- beam.beam_source = NON_MONSTER;
+
+ beam.flavour = BEAM_ELECTRICITY;
beam.type = dchar_glyph(DCHAR_FIRED_BURST);
beam.damage = dice_def(3, 30);
- beam.flavour = BEAM_ELECTRICITY;
beam.target = you.pos();
beam.name = "blast of lightning";
beam.colour = LIGHTCYAN;
beam.thrower = KILL_MISC;
+ beam.beam_source = NON_MONSTER;
beam.aux_source = "Xom's lightning strike";
beam.ex_size = 2;
beam.is_tracer = false;
beam.is_explosion = true;
+
beam.explode();
if (you.attribute[ATTR_DIVINE_LIGHTNING_PROTECTION])