diff options
Diffstat (limited to 'crawl-ref/source/cloud.cc')
-rw-r--r-- | crawl-ref/source/cloud.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc index 351f1a3773..3aa74613df 100644 --- a/crawl-ref/source/cloud.cc +++ b/crawl-ref/source/cloud.cc @@ -297,6 +297,12 @@ bool is_opaque_cloud(unsigned char cloud_idx) (ctype >= CLOUD_GREY_SMOKE && ctype <= CLOUD_STEAM) ); } +cloud_type cloud_type_at(const coord_def &c) +{ + const int cloudno = env.cgrid(c); + return (cloudno == EMPTY_CLOUD? CLOUD_NONE : env.cloud[cloudno].type); +} + cloud_type random_smoke_type() { // excludes black (reproducing existing behaviour) |