summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/art-func.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/art-func.h')
-rw-r--r--crawl-ref/source/art-func.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h
index 9c75324e20..0ab242d932 100644
--- a/crawl-ref/source/art-func.h
+++ b/crawl-ref/source/art-func.h
@@ -508,3 +508,30 @@ static void _GONG_melee_effect(item_def* item, actor* wearer,
noisy(40, wearer->pos());
}
+
+///////////////////////////////////////////////////
+
+static void _RCLOUDS_world_reacts(item_def *item)
+{
+ if (one_chance_in(100))
+ return;
+
+ cloud_type cloud;
+ if (one_chance_in(4))
+ cloud = CLOUD_RAIN;
+ else
+ cloud = CLOUD_MIST;
+
+ for (radius_iterator ri(you.pos(), 2); ri; ++ri)
+ if (!cell_is_solid(*ri) && env.cgrid(*ri) == EMPTY_CLOUD
+ && one_chance_in(20))
+ {
+ place_cloud( cloud, *ri, random2(10), KC_OTHER, 1);
+ }
+}
+
+static void _RCLOUDS_equip(item_def *item, bool *show_msgs, bool unmeld)
+{
+ _equip_mpr(show_msgs, "A thin mist springs up around you!");
+}
+