diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-11-12 01:24:27 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-12 01:24:27 +0100 |
commit | cb1642d116838195c66d9240ea3a203f0abd7f08 (patch) | |
tree | 99f34fcdadd6d324a8c44d4feaa839ebe017c2af | |
parent | f6ded04da5f16cbff8cdbdf760374c551f36fa80 (diff) | |
download | crawl-ref-cb1642d116838195c66d9240ea3a203f0abd7f08.tar.gz crawl-ref-cb1642d116838195c66d9240ea3a203f0abd7f08.zip |
Make the storm bow occasionally cause rain clouds.
-rw-r--r-- | crawl-ref/source/art-func.h | 12 |
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); +} + +/////////////////////////////////////////////////// |