From 0a39339616bebe698ef054e55db8a8e6f16c4483 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 23 Jul 2008 19:54:40 +0000 Subject: 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 --- crawl-ref/source/beam.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/beam.cc') 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) ); -- cgit v1.2.3-54-g00ecf