summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/art-func.h
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-11-28 16:47:26 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-28 16:48:23 +1000
commit1ae80c393d7062179b3478d8294655bf2c6fe6c5 (patch)
tree3a5fa38deb8a7ab8858313499354ea676a9dacde /crawl-ref/source/art-func.h
parentf7d19cfa767ea3114d9f9f39253510a20cb8a8ba (diff)
downloadcrawl-ref-1ae80c393d7062179b3478d8294655bf2c6fe6c5.tar.gz
crawl-ref-1ae80c393d7062179b3478d8294655bf2c6fe6c5.zip
New unrand: +3 robe of Clouds (rElec, +Lev)
It creates clouds of rain and thin mist around the player (very occasionally). Provides insulation and evocable levitation. Also has a tile!
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!");
+}
+