From e0f46aed7f2287adf618c18a06ee583ec6c2a6ba Mon Sep 17 00:00:00 2001 From: Steve Melenchuk Date: Sat, 3 May 2014 09:36:13 -0600 Subject: Don't place Q flame clouds over water. We don't want the player to get too steamed, after all. --- crawl-ref/source/godpassive.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/godpassive.cc') 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++; } } -- cgit v1.2.3-54-g00ecf