summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/art-func.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-12 01:24:27 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-12 01:24:27 +0100
commitcb1642d116838195c66d9240ea3a203f0abd7f08 (patch)
tree99f34fcdadd6d324a8c44d4feaa839ebe017c2af /crawl-ref/source/art-func.h
parentf6ded04da5f16cbff8cdbdf760374c551f36fa80 (diff)
downloadcrawl-ref-cb1642d116838195c66d9240ea3a203f0abd7f08.tar.gz
crawl-ref-cb1642d116838195c66d9240ea3a203f0abd7f08.zip
Make the storm bow occasionally cause rain clouds.
Diffstat (limited to 'crawl-ref/source/art-func.h')
-rw-r--r--crawl-ref/source/art-func.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h
index c2e8cc5159..1c8e3dc9c4 100644
--- a/crawl-ref/source/art-func.h
+++ b/crawl-ref/source/art-func.h
@@ -21,6 +21,7 @@
#define ART_FUNC_H
+#include "cloud.h" // For storm's bow rain
#include "effects.h" // For Sceptre of Torment tormenting
#include "food.h" // For evokes
#include "mon-place.h" // For Sceptre of Asmodeus evoke
@@ -477,3 +478,14 @@ static void _ZONGULDROK_melee_effect(item_def* weapon, actor* attacker,
///////////////////////////////////////////////////
+static void _STORM_BOW_world_reacts(item_def *item)
+{
+ if (!one_chance_in(300))
+ return;
+
+ for (radius_iterator ri(you.pos(), 2); ri; ++ri)
+ if (!cell_is_solid(*ri) && env.cgrid(*ri) == EMPTY_CLOUD && one_chance_in(5))
+ place_cloud( CLOUD_RAIN, *ri, random2(20), KC_OTHER, 3);
+}
+
+///////////////////////////////////////////////////