summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-17 07:47:50 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-17 07:47:50 +0000
commit0a69a524938f8c559947685b901abdb22043925b (patch)
treeb54afdee8f5b7d1669fdd2453cd5f6fe733bb687 /crawl-ref/source/beam.cc
parentae735f39601423c88be471340dfe88dc3d3d103d (diff)
downloadcrawl-ref-0a69a524938f8c559947685b901abdb22043925b.tar.gz
crawl-ref-0a69a524938f8c559947685b901abdb22043925b.zip
Apply r6579 to 0.4.1, and revert my local makefile change (oops!)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6581 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 71cbfb8c87..b536d310a9 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -3143,7 +3143,10 @@ int affect(bolt &beam, int x, int y, item_def *item)
// If not a tracer, affect items and place clouds.
if (!beam.is_tracer)
{
- expose_items_to_element(beam.flavour, x, y);
+ const int burn_power = (beam.is_explosion) ? 5 :
+ (beam.is_beam) ? 3 : 2;
+
+ expose_items_to_element(beam.flavour, x, y, burn_power);
rangeUsed += _affect_place_clouds(beam, x, y);
}