From cb1642d116838195c66d9240ea3a203f0abd7f08 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Thu, 12 Nov 2009 01:24:27 +0100 Subject: Make the storm bow occasionally cause rain clouds. --- crawl-ref/source/art-func.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crawl-ref/source/art-func.h') 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); +} + +/////////////////////////////////////////////////// -- cgit v1.2.3-54-g00ecf