diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-03 09:36:13 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:30 -0600 |
commit | e0f46aed7f2287adf618c18a06ee583ec6c2a6ba (patch) | |
tree | 2c31390296f0ce28aa3a9a2a6352cbe7c49ff334 /crawl-ref/source/godpassive.cc | |
parent | 40d39615d783f634406a390fde91a9836737ccd7 (diff) | |
download | crawl-ref-e0f46aed7f2287adf618c18a06ee583ec6c2a6ba.tar.gz crawl-ref-e0f46aed7f2287adf618c18a06ee583ec6c2a6ba.zip |
Don't place Q flame clouds over water.
We don't want the player to get too steamed, after all.
Diffstat (limited to 'crawl-ref/source/godpassive.cc')
-rw-r--r-- | crawl-ref/source/godpassive.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/crawl-ref/source/godpassive.cc b/crawl-ref/source/godpassive.cc index bc76873425..dc01ba6101 100644 --- a/crawl-ref/source/godpassive.cc +++ b/crawl-ref/source/godpassive.cc @@ -741,10 +741,15 @@ void qazlal_storm_clouds() if (skip) continue; - place_cloud( - random_choose(CLOUD_FIRE, CLOUD_COLD, CLOUD_STORM, - CLOUD_DUST_TRAIL, -1), - candidates[i], random_range(3, 5), &you); + // No flame clouds over water to avoid steam generation. + cloud_type ctype; + do + { + ctype = random_choose(CLOUD_FIRE, CLOUD_COLD, CLOUD_STORM, + CLOUD_DUST_TRAIL, -1); + } while (feat_is_watery(grd(candidates[i])) && ctype == CLOUD_FIRE); + + place_cloud(ctype, candidates[i], random_range(3, 5), &you); placed++; } } |