summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-23 19:54:40 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-23 19:54:40 +0000
commit0a39339616bebe698ef054e55db8a8e6f16c4483 (patch)
tree97ef144ac2c6d2d71332bdb14014fee0292865c7 /crawl-ref/source/beam.cc
parentef2bdf86e4887e46058787ab976695a1d3ac3af2 (diff)
downloadcrawl-ref-0a39339616bebe698ef054e55db8a8e6f16c4483.tar.gz
crawl-ref-0a39339616bebe698ef054e55db8a8e6f16c4483.zip
Add short duration freezing cloud for high-damage cold beams (bolt of cold at reasonable power).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6644 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 7d5c22df6c..53f243b776 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -3411,6 +3411,13 @@ static int _affect_place_clouds(bolt &beam, const coord_def& p)
place_cloud( CLOUD_STEAM, p, 2 + random2(5), _whose_kill(beam) );
}
+ if (grid_is_watery(grd(p)) && beam.flavour == BEAM_COLD
+ && beam.damage.num * beam.damage.size > 35)
+ {
+ place_cloud( CLOUD_COLD, p, beam.damage.num * beam.damage.size / 30 + 1,
+ _whose_kill(beam) );
+ }
+
// GREAT BLAST OF COLD
if (beam.name == "great blast of cold")
place_cloud( CLOUD_COLD, p, random2(5) + 3, _whose_kill(beam) );