summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-23 20:22:35 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-23 20:22:35 +0000
commit3da49abe32d3db91bca61bb367921603397bccd7 (patch)
treeed664b34900cd60b8b590f44ff47719e09e1243a
parent2e894fa1cd35df617de76c8857fe8de68a58fc45 (diff)
downloadcrawl-ref-3da49abe32d3db91bca61bb367921603397bccd7.tar.gz
crawl-ref-3da49abe32d3db91bca61bb367921603397bccd7.zip
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
-rw-r--r--crawl-ref/source/beam.cc9
1 files 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")