summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use3.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-19 21:59:56 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-19 21:59:56 +0000
commitf2e1abc584a801b0ebf3c595d63752f5eda7708b (patch)
tree5660c08bc834b0287238d4f5e5eba5d9d1e8c91f /crawl-ref/source/it_use3.cc
parent96edac1d649d50f9cfacf317c88007783657c55f (diff)
downloadcrawl-ref-f2e1abc584a801b0ebf3c595d63752f5eda7708b.tar.gz
crawl-ref-f2e1abc584a801b0ebf3c595d63752f5eda7708b.zip
Expand immolation and cleansing flame as well, so that monsters may be
able to use scrolls of immolation or holy word in the future. Also, add a power parameter to immolation, so that it can be reused for an exploding Tome of Destruction. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8599 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r--crawl-ref/source/it_use3.cc16
1 files changed, 1 insertions, 15 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc
index 05163765e5..29ca64e595 100644
--- a/crawl-ref/source/it_use3.cc
+++ b/crawl-ref/source/it_use3.cc
@@ -885,21 +885,7 @@ void tome_of_power(int slot)
dec_inv_item_quantity( slot, 1 );
}
- bolt beam;
-
- beam.flavour = BEAM_FIRE;
- beam.type = dchar_glyph(DCHAR_FIRED_BURST);
- beam.damage = dice_def(3, 15);
- beam.target = you.pos();
- beam.name = "fiery explosion";
- beam.colour = RED;
- beam.beam_source = NON_MONSTER;
- beam.thrower = KILL_YOU;
- beam.aux_source = "an exploding Tome of Destruction";
- beam.ex_size = 2;
- beam.is_explosion = true;
-
- beam.explode();
+ immolation(15, IMMOLATION_TOME, you.pos(), false, &you);
xom_is_stimulated(255);
}