From 3da49abe32d3db91bca61bb367921603397bccd7 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 23 Jul 2008 20:22:35 +0000 Subject: Trunk->0.4 r6642,6644: Only bolt of cold gets freezing cloud, cloud duration is much reduced. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6646 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/beam.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index c44a14ea82..c7527ffc5a 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -3415,8 +3415,13 @@ static int _affect_place_clouds(bolt &beam, int x, int y) place_cloud( CLOUD_STEAM, x, y, 2 + random2(5), _whose_kill(beam) ); } - if (beam.flavour == BEAM_COLD && grid_is_watery(grd[x][y])) - place_cloud( CLOUD_COLD, x, y, 2 + random2(5), _whose_kill(beam) ); + if (grid_is_watery(grd[x][y]) && beam.flavour == BEAM_COLD + && beam.damage.num * beam.damage.size > 35) + { + place_cloud( CLOUD_COLD, x, y, + beam.damage.num * beam.damage.size / 30 + 1, + _whose_kill(beam) ); + } // GREAT BLAST OF COLD if (beam.name == "great blast of cold") -- cgit v1.2.3-54-g00ecf