From f2e1abc584a801b0ebf3c595d63752f5eda7708b Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 19 Jan 2009 21:59:56 +0000 Subject: 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 --- crawl-ref/source/it_use3.cc | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'crawl-ref/source/it_use3.cc') 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); } -- cgit v1.2.3-54-g00ecf